|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jtreemap.ktreemap.TreeMapNodeBuilder
net.sf.jtreemap.ktreemap.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.
Constructor Summary | |
---|---|
BuilderTM3(java.io.File tm3File)
Constructor |
Method Summary | |
---|---|
static java.lang.String |
getFieldWeight()
|
double |
getWeight(java.lang.Object value)
Return the weight of an Object. |
static void |
setFieldWeight(java.lang.String fieldWeight)
|
void |
setWeights()
Set the weights of all the TreeMapNode with the values of the fieldName. |
Methods inherited from class net.sf.jtreemap.ktreemap.TreeMapNodeBuilder |
---|
buildBranch, buildLeaf, getRoot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuilderTM3(java.io.File tm3File) throws java.io.IOException
java.io.IOException
tm3File
- tm3 fileMethod Detail |
---|
public void setWeights()
fieldName
- name of the field to set the weightspublic double getWeight(java.lang.Object value)
TreeMapNodeBuilder
getWeight
in class TreeMapNodeBuilder
value
- the object (generaly, the TreeMapNode.getValue())
public static java.lang.String getFieldWeight()
public static void setFieldWeight(java.lang.String fieldWeight)
fieldWeight
- the fieldWeight to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |