|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jtreemap.swing.example.BuilderTM3
public class BuilderTM3
Parse a TM3 file to build the tree.
See
how to create your own TM3 data file from hcil Treemap site.
Field Summary | |
---|---|
static String |
DATE
label "DATE" to identify Date in TM3 data file |
static String |
FLOAT
label "FLOAT" to identify float in TM3 data file |
static String |
INTEGER
label "INTEGER" to identify int in TM3 data file |
static String |
STRING
label "STRING" to identify String in TM3 data file |
Constructor Summary | |
---|---|
BuilderTM3(BufferedReader reader)
Constructor |
|
BuilderTM3(File tm3File)
Constructor |
Method Summary | |
---|---|
String[] |
getNumberFields()
|
TreeMapNode |
getRoot()
get the build root. |
void |
setValues(String fieldName)
Set the VALUES of all the JTreeMapNode with the VALUES of the fieldName. |
void |
setWeights(String fieldName)
Set the weights of all the JTreeMapNode with the VALUES of the fieldName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DATE
public static final String FLOAT
public static final String INTEGER
public static final String STRING
Constructor Detail |
---|
public BuilderTM3(File tm3File) throws IOException
tm3File
- tm3 file
IOException
public BuilderTM3(BufferedReader reader) throws IOException
reader
- reader associated with tm3 file
IOException
Method Detail |
---|
public String[] getNumberFields()
public TreeMapNode getRoot()
public void setValues(String fieldName)
fieldName
- name of the field to set the VALUESpublic void setWeights(String fieldName)
fieldName
- name of the field to set the weights
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |