net.sf.jtreemap.swing.example
Class BuilderTM3

java.lang.Object
  extended by net.sf.jtreemap.swing.example.BuilderTM3
All Implemented Interfaces:
java.io.Serializable

public class BuilderTM3
extends java.lang.Object
implements java.io.Serializable

Parse a TM3 file to build the tree.
See how to create your own TM3 data file from hcil Treemap site.

See Also:
Serialized Form
 

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

DATE

public static final java.lang.String DATE
label "DATE" to identify Date in TM3 data file

See Also:
Constant Field Values

FLOAT

public static final java.lang.String FLOAT
label "FLOAT" to identify float in TM3 data file

See Also:
Constant Field Values

INTEGER

public static final java.lang.String INTEGER
label "INTEGER" to identify int in TM3 data file

See Also:
Constant Field Values

STRING

public static final java.lang.String STRING
label "STRING" to identify String in TM3 data file

See Also:
Constant Field Values
Constructor Detail

BuilderTM3

public BuilderTM3(java.io.File tm3File)
           throws java.io.IOException
Constructor

Throws:
java.io.IOException
Parameters:
tm3File - tm3 file

BuilderTM3

public BuilderTM3(java.io.BufferedReader reader)
           throws java.io.IOException
Constructor

Throws:
java.io.IOException
Parameters:
reader - reader associated with tm3 file
Method Detail

getNumberFields

public java.lang.String[] getNumberFields()
Returns:
the number fields (ie INTEGER and FLOAT)

getRoot

public TreeMapNode getRoot()
get the build root.

Returns:
the build root

setValues

public void setValues(java.lang.String fieldName)
Set the VALUES of all the JTreeMapNode with the VALUES of the fieldName.

Parameters:
fieldName - name of the field to set the VALUES

setWeights

public void setWeights(java.lang.String fieldName)
Set the weights of all the JTreeMapNode with the VALUES of the fieldName.

Parameters:
fieldName - name of the field to set the weights