|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.loader.Loader pedviz.loader.RessourceGraphLoader
public class RessourceGraphLoader
This Loader class allow you to load a graph from a csv-file which is in jar-file.
Are composed of a header and data:
Id Fid Mid Sex aff trait
1 1 2 3 2 2 4.4
Id, mom and dad id are mandatory and no special field ordering is needed, because of the required initial field mapping (Method: setSettings). Additional fields (that maybe are available in the data), such as sex, traits etc. are mapped as Rules. Different field separators can be definied. Family id's are not used for the drawing process.
Field Summary | |
---|---|
static int |
DOUBLE
|
static int |
INTEGER
|
Constructor Summary | |
---|---|
RessourceGraphLoader(java.lang.String filename,
java.lang.String separator)
Constructs a CsvGraphLoader |
Method Summary | |
---|---|
java.util.ArrayList<java.lang.String> |
getAttributes()
Returns a collection of all attributes. |
java.util.Vector<java.lang.String> |
getColumns()
Returns a array of all columns. |
void |
load(Graph graph)
Loads data in the given Graph object. |
void |
setColumnType(java.lang.String column,
int type)
Sets the type for the given column. |
Methods inherited from class pedviz.loader.Loader |
---|
getDadColumn, getIdColumn, getMomColumn, setSettings |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INTEGER
public static final int DOUBLE
Constructor Detail |
---|
public RessourceGraphLoader(java.lang.String filename, java.lang.String separator)
filename
- filenameseparator
- Character which separates the valuesMethod Detail |
---|
public void setColumnType(java.lang.String column, int type)
column
- the name of the column.type
- Type (STRING(default)/INTEGER/DOUBLE)public void load(Graph graph)
Loader
load
in class Loader
graph
- Gaph object.public java.util.ArrayList<java.lang.String> getAttributes()
public java.util.Vector<java.lang.String> getColumns()
Loader
getColumns
in class Loader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |