jsynoptic.plugins.jfreechart
Class SourceCategoryDataset.SourceHolder
java.lang.Object
jsynoptic.plugins.jfreechart.SourceCategoryDataset.SourceHolder
- All Implemented Interfaces:
- java.lang.Comparable
- Enclosing class:
- SourceCategoryDataset
public class SourceCategoryDataset.SourceHolder
- extends java.lang.Object
- implements java.lang.Comparable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
source
public DataSource source
startIndex
public long startIndex
name
public java.lang.String name
- Name override. Null => use default
categoryCount
protected int[] categoryCount
- How many data source entries in each category
needCompute
public boolean needCompute
- When set to false, categoryCount is recomputed on demand
SourceCategoryDataset.SourceHolder
public SourceCategoryDataset.SourceHolder(DataSource ds)
SourceCategoryDataset.SourceHolder
public SourceCategoryDataset.SourceHolder(DataSource ds,
long idx)
SourceCategoryDataset.SourceHolder
public SourceCategoryDataset.SourceHolder(DataSource ds,
long idx,
java.lang.String name,
int[] categoryCount,
boolean needCompute)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getCategoryValue
public int getCategoryValue(java.lang.String category)
getCategoryValue
public int getCategoryValue(int category)
compute
public void compute()
- Compute the number of data source entries in each catagory
reset
public void reset()
update
public void update()