Package com.illumon.iris.db.tables.utils
Class DBCategoryDataset
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.category.DefaultCategoryDataset
com.illumon.iris.db.tables.utils.DBCategoryDataset
- All Implemented Interfaces:
DBDataset,ObjectInputValidation,Serializable,Cloneable,org.jfree.data.category.CategoryDataset,org.jfree.data.general.Dataset,org.jfree.data.KeyedValues2D,org.jfree.data.Values2D,org.jfree.util.PublicCloneable
public class DBCategoryDataset
extends org.jfree.data.category.DefaultCategoryDataset
implements DBDataset
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDBCategoryDataset(ReplicatedTable localTable, com.illumon.iris.db.tables.utils.XYChartType chartType) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddSeriesFromOtherAxis(String series) Series on other axes may have different x-variables.voidNotifies this DBDataset that the data in the table used as its data source has changed, or that the entire source table itself has changed (such as withDBDataset.setLocalTable(ReplicatedTable).intintgetColumnIndex(Comparable key) getColumnKey(int column) intgetItemCount(int i) getMap()intintgetRowIndex(Comparable key) getRowKey(int row) getValue(int row, int column) getValue(Comparable rowKey, Comparable columnKey) voidsetLocalTable(ReplicatedTable table) Sets the table from which this DBDataset will retrieve the chart data.voidupdate()Methods inherited from class org.jfree.data.category.DefaultCategoryDataset
addValue, addValue, clear, clone, equals, hashCode, incrementValue, removeColumn, removeColumn, removeRow, removeRow, removeValue, setValue, setValueMethods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
DBCategoryDataset
public DBCategoryDataset(ReplicatedTable localTable, com.illumon.iris.db.tables.utils.XYChartType chartType)
-
-
Method Details
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceorg.jfree.data.Values2D- Overrides:
getRowCountin classorg.jfree.data.category.DefaultCategoryDataset
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceorg.jfree.data.Values2D- Overrides:
getColumnCountin classorg.jfree.data.category.DefaultCategoryDataset
-
getValue
- Specified by:
getValuein interfaceorg.jfree.data.Values2D- Overrides:
getValuein classorg.jfree.data.category.DefaultCategoryDataset
-
getRowKey
- Specified by:
getRowKeyin interfaceorg.jfree.data.KeyedValues2D- Overrides:
getRowKeyin classorg.jfree.data.category.DefaultCategoryDataset
-
getRowIndex
- Specified by:
getRowIndexin interfaceorg.jfree.data.KeyedValues2D- Overrides:
getRowIndexin classorg.jfree.data.category.DefaultCategoryDataset
-
getRowKeys
- Specified by:
getRowKeysin interfaceorg.jfree.data.KeyedValues2D- Overrides:
getRowKeysin classorg.jfree.data.category.DefaultCategoryDataset
-
getColumnKey
- Specified by:
getColumnKeyin interfaceorg.jfree.data.KeyedValues2D- Overrides:
getColumnKeyin classorg.jfree.data.category.DefaultCategoryDataset
-
getColumnIndex
- Specified by:
getColumnIndexin interfaceorg.jfree.data.KeyedValues2D- Overrides:
getColumnIndexin classorg.jfree.data.category.DefaultCategoryDataset
-
getColumnKeys
- Specified by:
getColumnKeysin interfaceorg.jfree.data.KeyedValues2D- Overrides:
getColumnKeysin classorg.jfree.data.category.DefaultCategoryDataset
-
getValue
- Specified by:
getValuein interfaceorg.jfree.data.KeyedValues2D- Overrides:
getValuein classorg.jfree.data.category.DefaultCategoryDataset
-
setLocalTable
Description copied from interface:DBDatasetSets the table from which this DBDataset will retrieve the chart data.- Specified by:
setLocalTablein interfaceDBDataset
-
getItemCount
public int getItemCount(int i) -
addSeries
-
addSeriesFromOtherAxis
Series on other axes may have different x-variables. We need the all datasets to know all x-variables. -
getMap
-
update
public void update() -
fireTableDataChanged
public void fireTableDataChanged()Description copied from interface:DBDatasetNotifies this DBDataset that the data in the table used as its data source has changed, or that the entire source table itself has changed (such as withDBDataset.setLocalTable(ReplicatedTable).If an implementation of
fireTableDataChanged()callsAbstractDataset.fireDatasetChanged(), or otherwise interacts with JFreeChart, then this method should only be called on the event dispatch thread. (SeeSwingUtilities.invokeLater().)- Specified by:
fireTableDataChangedin interfaceDBDataset
-