public class TreevizFileSystemXMLByYearInfoWeighter extends TreevizFileSystemXMLInfoWeighter
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxYear |
protected int |
medianYear |
protected int |
minYear |
histogram, info, intFormat, isoDateFormatter, isoDateFormatter2, key, max, median, min, shortWeightFormat, size, sizeHistogram, sizeKey| Constructor and Description |
|---|
TreevizFileSystemXMLByYearInfoWeighter(TreevizFileSystemXMLNodeInfo info,
java.lang.String key)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHistogramLabel(int index) |
float |
getMedianWeight() |
float |
getWeight(TreePath2 path) |
protected void |
histogramRecursive(TreeNode root) |
void |
init(TreeNode root) |
calculateDateHistogramRecursive, collectDatesRecursive, getHistogram, getMaximumWeightLabel, getMinimumWeightLabelprotected int minYear
protected int maxYear
protected int medianYear
public TreevizFileSystemXMLByYearInfoWeighter(TreevizFileSystemXMLNodeInfo info, java.lang.String key)
public void init(TreeNode root)
init in interface Weighterinit in class TreevizFileSystemXMLInfoWeighterprotected void histogramRecursive(TreeNode root)
public float getMedianWeight()
getMedianWeight in interface WeightergetMedianWeight in class TreevizFileSystemXMLInfoWeighterpublic float getWeight(TreePath2 path)
getWeight in interface WeightergetWeight in class TreevizFileSystemXMLInfoWeighterpublic java.lang.String getHistogramLabel(int index)
getHistogramLabel in interface WeightergetHistogramLabel in class TreevizFileSystemXMLInfoWeighter