Class CategoryDataSetCollection
java.lang.Object
org.jfree.data.general.AbstractDataset
com.illumon.iris.db.plot.datasets.AbstractDataSetCollection<CategoryDataSeriesInternal>
com.illumon.iris.db.plot.datasets.category.CategoryDataSetCollection
- All Implemented Interfaces:
DataSetCollection<CategoryDataSeriesInternal>,LabeledDataSetCollection,PlotExceptionCause,DataChangeListener,ObjectInputValidation,Serializable,Cloneable,org.jfree.data.category.CategoryDataset,org.jfree.data.general.Dataset,org.jfree.data.KeyedValues2D,org.jfree.data.Values2D
- Direct Known Subclasses:
TransformedCategoryDataSetCollection
public class CategoryDataSetCollection
extends AbstractDataSetCollection<CategoryDataSeriesInternal>
implements org.jfree.data.category.CategoryDataset, LabeledDataSetCollection
Collection of categorical datasets.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.plot.datasets.AbstractDataSetCollection
AbstractDataSetCollection.FireDatasetChangeListener -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCategoryDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, CategoryIndex categoryIndex, PlotInfo plotInfo, boolean notifyDataChanged) Creates an instance of CategoryDataSetCollection. -
Method Summary
Modifier and TypeMethodDescriptionvoidConstructs a snapshot of this dataset collection.getColor(int row, int col) Gets thePaintfor the specified data pointintintgetColumnIndex(Comparable category) getColumnKey(int category) Returns a snapshot of this dataset collection in which no series which will update.getEndY(int row, int column) getEndY(Comparable series, Comparable category) getLabel(int row, int col) Gets the label for the specified data pointgetPointShape(int row, int col) Gets the point shape for the specified data pointgetPointSize(int row, int col) Gets the point size for the specified data pointintintgetRowIndex(Comparable series) getRowKey(int series) getStartY(int row, int column) getStartY(Comparable series, Comparable category) getValue(int row, int column) getValue(Comparable series, Comparable category) org.jfree.data.RangevoidnotifyDataChanged(RunnableFuture callback) Notifies this listener that the underlying data has changed.voidnotifySeriesChanged(boolean incremental) Notifies this listener that the underlying data has a new series.voidIf we are not being removed on a one click; tell us about it anyway.protected voidreindexSeriesSync(boolean incremental, boolean onlyIfGuiClient, boolean notify) Methods inherited from class com.illumon.iris.db.plot.datasets.AbstractDataSetCollection
add, add, addFireDatasetChangeListener, addMultiSeries, addSeries, axes, dimension, fireDatasetChanged, get, getDynamicSeriesNamer, getGovernor, getPlotInfo, getSeriesNames, id, isNotifyDataChanged, multiSeries, notifyDataChanged, remove, removeFireDatasetChangeListener, series, setSnapshotsEnabled, testIfSwingDispatchThreadIfNotTestModeMethods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.plot.util.tables.DataChangeListener
onFailed, onOneClickRemoved, removeOnOneClickMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Field Details
-
CAT_SERIES_ORDER_COLUMN
- See Also:
-
-
Constructor Details
-
CategoryDataSetCollection
public CategoryDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, CategoryIndex categoryIndex, PlotInfo plotInfo, boolean notifyDataChanged) Creates an instance of CategoryDataSetCollection.Jobs such as fireDatasetChanged are scheduled by the
governor.Categories are shared across CategoryDataSetCollections via the
categoryIndex. This must be used if multiple CategoryDataSetCollections share the same discrete axis.- Parameters:
axes- corresponding axes for datasetcollectiongovernor- schedules tasksdynamicSeriesNamer- utility to name dynamically generated seriescategoryIndex- holds all categoriesplotInfo- plot informationnotifyDataChanged-
-
-
Method Details
-
onOneClick
public void onOneClick()Description copied from interface:DataChangeListenerIf we are not being removed on a one click; tell us about it anyway.- Specified by:
onOneClickin interfaceDataChangeListener
-
reindexSeriesSync
protected void reindexSeriesSync(boolean incremental, boolean onlyIfGuiClient, boolean notify) - Overrides:
reindexSeriesSyncin classAbstractDataSetCollection<CategoryDataSeriesInternal>
-
notifyDataChanged
Description copied from interface:DataChangeListenerNotifies this listener that the underlying data has changed.- Specified by:
notifyDataChangedin interfaceDataChangeListener- Overrides:
notifyDataChangedin classAbstractDataSetCollection<CategoryDataSeriesInternal>- Parameters:
callback- to call once done
-
notifySeriesChanged
public void notifySeriesChanged(boolean incremental) Description copied from interface:DataChangeListenerNotifies this listener that the underlying data has a new series.- Specified by:
notifySeriesChangedin interfaceDataChangeListener- Overrides:
notifySeriesChangedin classAbstractDataSetCollection<CategoryDataSeriesInternal>- Parameters:
incremental- whether the series change is additive
-
constructSnapshot
public void constructSnapshot()Description copied from interface:DataSetCollectionConstructs a snapshot of this dataset collection.- Specified by:
constructSnapshotin interfaceDataSetCollection<CategoryDataSeriesInternal>
-
getAllSeries
- Specified by:
getAllSeriesin interfaceDataSetCollection<CategoryDataSeriesInternal>- Overrides:
getAllSeriesin classAbstractDataSetCollection<CategoryDataSeriesInternal>- Returns:
- all series from this collection
-
getCurrentSnapshot
Description copied from interface:DataSetCollectionReturns a snapshot of this dataset collection in which no series which will update.- Specified by:
getCurrentSnapshotin interfaceDataSetCollection<CategoryDataSeriesInternal>
-
getRowKey
- Specified by:
getRowKeyin interfaceorg.jfree.data.KeyedValues2D
-
getRowIndex
- Specified by:
getRowIndexin interfaceorg.jfree.data.KeyedValues2D
-
getRowKeys
- Specified by:
getRowKeysin interfaceorg.jfree.data.KeyedValues2D
-
getColumnKey
- Specified by:
getColumnKeyin interfaceorg.jfree.data.KeyedValues2D
-
getColumnIndex
- Specified by:
getColumnIndexin interfaceorg.jfree.data.KeyedValues2D
-
getColumnKeys
- Specified by:
getColumnKeysin interfaceorg.jfree.data.KeyedValues2D
-
getValue
- Specified by:
getValuein interfaceorg.jfree.data.KeyedValues2D
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceorg.jfree.data.Values2D
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceorg.jfree.data.Values2D
-
getValue
- Specified by:
getValuein interfaceorg.jfree.data.Values2D
-
getStartY
-
getStartY
-
getEndY
-
getEndY
-
getYRange
public org.jfree.data.Range getYRange() -
getColor
Gets thePaintfor the specified data point- Parameters:
row- index of the series in this collectioncol- index of the data point in the series- Returns:
Paintof the specified data point
-
getLabel
Gets the label for the specified data point- Specified by:
getLabelin interfaceLabeledDataSetCollection- Parameters:
row- index of the series in this collectioncol- index of the data point in the series- Returns:
- label of the specified data point
-
getPointSize
Gets the point size for the specified data point- Parameters:
row- index of the series in this collectioncol- index of the data point in the series- Returns:
- point size of the specified data point
-
getPointShape
Gets the point shape for the specified data point- Parameters:
row- index of the series in this collectioncol- index of the data point in the series- Returns:
- point shape of the specified data point
-