Treeviz 0.33 2010-06-20

ch.randelshofer.tree.demo
Class XMLInfoWeighter

java.lang.Object
  extended by ch.randelshofer.tree.demo.XMLInfoWeighter
All Implemented Interfaces:
Weighter

public class XMLInfoWeighter
extends java.lang.Object
implements Weighter

InfoWeighter.

Version:
1.0 23. Juni 2008 Created.
Author:
Werner Randelshofer

Constructor Summary
XMLInfoWeighter(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

XMLInfoWeighter

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

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