Treeviz 0.37 2010-10-17

ch.randelshofer.tree.demo
Class XMLDateInfoWeighter

java.lang.Object
  extended by 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

Constructor Summary
XMLDateInfoWeighter(XMLNodeInfo info, java.lang.String key)
          Creates a new instance.
 
Method Summary
 int[] getHistogram()
           
 java.lang.String getHistogramLabel(int index)
           
 java.lang.String getMaximumWeightLabel()
           
 float getMedianWeight()
           
 java.lang.String getMinimumWeightLabel()
           
 float getWeight(TreePath2 path)
           
 void init(TreeNode root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDateInfoWeighter

public XMLDateInfoWeighter(XMLNodeInfo info,
                           java.lang.String key)
Creates a new instance.

Method Detail

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

Copyright 2007-2008 (c) Werner Randelshofer.
All rights reserved.