Treeviz 0.37 2010-10-17

ch.randelshofer.tree.demo
Class LastModifiedByYearWeighter

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

public class LastModifiedByYearWeighter
extends LastModifiedWeighter

LastModifiedByYearWeighter.

Version:
1.0 2010-01-11 Created.
Author:
Werner Randelshofer

Field Summary
protected  int maxYear
           
protected  int medianYear
           
protected  int minYear
           
 
Fields inherited from class ch.randelshofer.tree.demo.LastModifiedWeighter
histogram, intFormat, max, median, min, shortWeightFormat
 
Constructor Summary
LastModifiedByYearWeighter()
           
 
Method Summary
 java.lang.String getHistogramLabel(int index)
           
 float getMedianWeight()
           
 float getWeight(TreePath2 path)
           
protected  void histogramRecursive(TreeNode root)
           
 void init(TreeNode root)
           
 
Methods inherited from class ch.randelshofer.tree.demo.LastModifiedWeighter
collectDatesRecursive, getHistogram, getHistogramLabel_old, getMaximumWeightLabel, getMinimumWeightLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minYear

protected int minYear

maxYear

protected int maxYear

medianYear

protected int medianYear
Constructor Detail

LastModifiedByYearWeighter

public LastModifiedByYearWeighter()
Method Detail

init

public void init(TreeNode root)
Specified by:
init in interface Weighter
Overrides:
init in class LastModifiedWeighter

histogramRecursive

protected void histogramRecursive(TreeNode root)
Overrides:
histogramRecursive in class LastModifiedWeighter

getMedianWeight

public float getMedianWeight()
Specified by:
getMedianWeight in interface Weighter
Overrides:
getMedianWeight in class LastModifiedWeighter

getWeight

public float getWeight(TreePath2 path)
Specified by:
getWeight in interface Weighter
Overrides:
getWeight in class LastModifiedWeighter

getHistogramLabel

public java.lang.String getHistogramLabel(int index)
Specified by:
getHistogramLabel in interface Weighter
Overrides:
getHistogramLabel in class LastModifiedWeighter

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