net.sf.jtreemap.ktreemap.example
Class XMLTreeMapProvider

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

public class XMLTreeMapProvider
extends java.lang.Object
implements ITreeMapProvider

TreeMapProvider for a XML file

 

Constructor Summary
XMLTreeMapProvider()
           
 
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
 java.lang.String getValueLabel(java.lang.Object value)
          Get the label of the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTreeMapProvider

public XMLTreeMapProvider()
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