|
|||||||||
| 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 java.lang.String |
DATE
label "DATE" to identify Date in TM3 data file |
static java.lang.String |
FLOAT
label "FLOAT" to identify float in TM3 data file |
static java.lang.String |
INTEGER
label "INTEGER" to identify int in TM3 data file |
static java.lang.String |
STRING
label "STRING" to identify String in TM3 data file |
| Constructor Summary | |
|---|---|
BuilderTM3(java.io.BufferedReader reader)
Constructor |
|
BuilderTM3(java.io.File tm3File)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getNumberFields()
|
TreeMapNode |
getRoot()
get the build root. |
void |
setValues(java.lang.String fieldName)
Set the VALUES of all the JTreeMapNode with the VALUES of the fieldName. |
void |
setWeights(java.lang.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 java.lang.String DATE
public static final java.lang.String FLOAT
public static final java.lang.String INTEGER
public static final java.lang.String STRING
| Constructor Detail |
|---|
public BuilderTM3(java.io.File tm3File)
throws java.io.IOException
java.io.IOExceptiontm3File - tm3 file
public BuilderTM3(java.io.BufferedReader reader)
throws java.io.IOException
java.io.IOExceptionreader - reader associated with tm3 file| Method Detail |
|---|
public java.lang.String[] getNumberFields()
public TreeMapNode getRoot()
public void setValues(java.lang.String fieldName)
fieldName - name of the field to set the VALUESpublic void setWeights(java.lang.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 | ||||||||