net.sf.jtreemap.ktreemap.example
Class TM3TreeMapProvider

java.lang.Object
  extended by net.sf.jtreemap.ktreemap.example.TM3TreeMapProvider
All Implemented Interfaces:
ITreeMapProvider

public class TM3TreeMapProvider
extends java.lang.Object
implements ITreeMapProvider

TreeMapProvider for a TM3 file

 

Constructor Summary
TM3TreeMapProvider()
           
 
Method Summary
 double getDoubleValue(java.lang.Object value)
          Get the double value of the value
 java.lang.String getLabel(TreeMapNode node)
          get the label of the node
static java.lang.String getValueField()
           
 java.lang.String getValueLabel(java.lang.Object value)
          Get the label of the value
static void setValueField(java.lang.String valueField)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TM3TreeMapProvider

public TM3TreeMapProvider()
Method Detail

getDoubleValue

public double getDoubleValue(java.lang.Object value)
Description copied from interface: ITreeMapProvider
Get the double value of the value

Specified by:
getDoubleValue in interface ITreeMapProvider
Parameters:
value - value of the node (TreeMapNode.getValue())
Returns:
the double value of the value

getLabel

public java.lang.String getLabel(TreeMapNode node)
Description copied from interface: ITreeMapProvider
get the label of the node

Specified by:
getLabel in interface ITreeMapProvider
Parameters:
node - TreeMapNode
Returns:
the label of the node

getValueLabel

public java.lang.String getValueLabel(java.lang.Object value)
Description copied from interface: ITreeMapProvider
Get the label of the value

Specified by:
getValueLabel in interface ITreeMapProvider
Parameters:
value - value of the node (TreeMapNode.getValue())
Returns:
the label of the value

getValueField

public static java.lang.String getValueField()
Returns:
the valueField

setValueField

public static void setValueField(java.lang.String valueField)
Parameters:
valueField - the valueField to set