ch.randelshofer.tree.demo
Class XMLDateInfoWeighter
java.lang.Object
ch.randelshofer.tree.demo.XMLDateInfoWeighter
- All Implemented Interfaces:
- Weighter
public class XMLDateInfoWeighter
- extends java.lang.Object
- implements Weighter
XMLDateInfoWeighter.
- Version:
- 1.0 23. Juni 2008 Created.
- Author:
- Werner Randelshofer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLDateInfoWeighter
public XMLDateInfoWeighter(XMLNodeInfo info,
java.lang.String key)
- Creates a new instance.
init
public void init(TreeNode root)
- Specified by:
init in interface Weighter
getWeight
public float getWeight(TreePath2 path)
- Specified by:
getWeight in interface Weighter
getHistogram
public int[] getHistogram()
- Specified by:
getHistogram in interface Weighter
getMinimumWeightLabel
public java.lang.String getMinimumWeightLabel()
- Specified by:
getMinimumWeightLabel in interface Weighter
getMaximumWeightLabel
public java.lang.String getMaximumWeightLabel()
- Specified by:
getMaximumWeightLabel in interface Weighter
getHistogramLabel
public java.lang.String getHistogramLabel(int index)
- Specified by:
getHistogramLabel in interface Weighter
getMedianWeight
public float getMedianWeight()
- Specified by:
getMedianWeight in interface Weighter