public class TreevizFileSystemXMLInfoWeighter extends java.lang.Object implements Weighter
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
histogram |
protected TreevizFileSystemXMLNodeInfo |
info |
protected static java.text.NumberFormat |
intFormat |
protected java.text.DateFormat |
isoDateFormatter |
protected java.text.DateFormat |
isoDateFormatter2 |
protected java.lang.String |
key |
protected java.lang.Object |
max |
protected java.lang.Object |
median |
protected java.lang.Object |
min |
protected static FileSizeFormat |
shortWeightFormat |
protected long[] |
size |
protected long[] |
sizeHistogram |
protected java.lang.String |
sizeKey |
| Constructor and Description |
|---|
TreevizFileSystemXMLInfoWeighter(TreevizFileSystemXMLNodeInfo info,
java.lang.String key)
Creates a new instance.
|
TreevizFileSystemXMLInfoWeighter(TreevizFileSystemXMLNodeInfo info,
java.lang.String key,
java.lang.String sizeKey) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateDateHistogramRecursive(TreeNode root)
Calculates the date histogram recursively.
|
protected void |
collectDatesRecursive(TreevizFileSystemXMLNode node,
java.util.List<java.util.Date> dates) |
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) |
protected TreevizFileSystemXMLNodeInfo info
protected java.lang.String key
protected java.lang.String sizeKey
protected int[] histogram
protected long[] sizeHistogram
protected long[] size
protected java.lang.Object min
protected java.lang.Object max
protected java.lang.Object median
protected java.text.DateFormat isoDateFormatter
protected java.text.DateFormat isoDateFormatter2
protected static FileSizeFormat shortWeightFormat
protected static java.text.NumberFormat intFormat
public TreevizFileSystemXMLInfoWeighter(TreevizFileSystemXMLNodeInfo info, java.lang.String key)
public TreevizFileSystemXMLInfoWeighter(TreevizFileSystemXMLNodeInfo info, java.lang.String key, java.lang.String sizeKey)
protected void collectDatesRecursive(TreevizFileSystemXMLNode node, java.util.List<java.util.Date> dates)
protected void calculateDateHistogramRecursive(TreeNode root)
root - public int[] getHistogram()
getHistogram in interface Weighterpublic java.lang.String getMinimumWeightLabel()
getMinimumWeightLabel in interface Weighterpublic java.lang.String getMaximumWeightLabel()
getMaximumWeightLabel in interface Weighterpublic java.lang.String getHistogramLabel(int index)
getHistogramLabel in interface Weighterpublic float getMedianWeight()
getMedianWeight in interface Weighter