Class CategoryDataSeriesTableMap
java.lang.Object
com.illumon.iris.db.plot.AbstractSeriesInternal
com.illumon.iris.db.plot.datasets.AbstractDataSeries
com.illumon.iris.db.plot.datasets.category.AbstractCategoryDataSeries
com.illumon.iris.db.plot.datasets.category.AbstractTableBasedCategoryDataSeries
com.illumon.iris.db.plot.datasets.category.CategoryDataSeriesTableMap
- All Implemented Interfaces:
CategoryDataSeries,CategoryDataSeriesInternal,CategoryTableDataSeriesInternal,DataSeries,DataSeriesInternal,PlotExceptionCause,Series,SeriesInternal,TableSnapshotSeries,TableSnapshotChangeListener,Serializable
public class CategoryDataSeriesTableMap
extends AbstractTableBasedCategoryDataSeries
implements CategoryTableDataSeriesInternal, TableSnapshotSeries
A dataset for table-based categorical data.
- See Also:
-
Field Summary
Fields inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
dataChangeListener -
Constructor Summary
ConstructorsConstructorDescriptionCategoryDataSeriesTableMap(AxesImpl axes, int id, Comparable<?> name, TableHandle tableHandle, String categories, String values) Creates a new CategoryDataSeriesTableMap instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the categories of the dataset.Create a copy of the series on a different set of axes.Returns a snapshot of this dataset which will not update.longgetCategoryLocation(Comparable category) Get the row key of the specified series.protected TablegetTable()getValue(Comparable category) Gets the numeric value corresponding to the givencategory.org.jfree.data.RangeGets the y range of this dataset.voidinit()Do any required initialization before data may be read from the series.voidonClose()Series shut down after the plot is closed.intsize()Gets the size of this data set.Methods inherited from class com.illumon.iris.db.plot.datasets.category.AbstractTableBasedCategoryDataSeries
constructTableFromFunction, pointColor, pointColorByY, pointColorInteger, pointLabel, pointShape, pointSizeMethods inherited from class com.illumon.iris.db.plot.datasets.category.AbstractCategoryDataSeries
colorsSetSpecific, errorBarColor, errorBarColor, errorBarColor, getColor, getGroup, getLabel, getPiePercentLabelFormat, getPointShape, getPointSize, getSeriesColor, gradientVisible, group, labelsSetSpecific, lineColor, lineColor, lineColor, lineStyle, linesVisible, piePercentLabelFormat, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColorByY, pointColorByY, pointColorInteger, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabelFormat, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointsVisible, seriesColor, seriesColor, seriesColor, setPiePercentLabelFormat, shapesSetSpecific, sizesSetSpecific, snapshotModifiers, toolTipPattern, xToolTipPattern, yToolTipPatternMethods inherited from class com.illumon.iris.db.plot.datasets.AbstractDataSeries
chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPointLabelFormat, getPointsVisible, getXToolTipPattern, getYToolTipPattern, setErrorBarColor, setErrorBarColor, setErrorBarColor, setGradientVisible, setLineColor, setLineColor, setLineColor, setLineStyle, setLinesVisible, setPointLabelFormat, setPointsVisible, setXToolTipPattern, setYToolTipPatternMethods inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, axes, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, id, name, removeTableHandleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.plot.datasets.category.CategoryDataSeries
errorBarColor, errorBarColor, errorBarColor, gradientVisible, group, lineColor, lineColor, lineColor, lineStyle, linesVisible, piePercentLabelFormat, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColorByY, pointColorInteger, pointColorInteger, pointColorInteger, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointsVisibleMethods inherited from interface com.illumon.iris.db.plot.datasets.category.CategoryDataSeriesInternal
drawYError, getColor, getEndY, getGroup, getLabel, getPiePercentLabelFormat, getPointShape, getPointSize, getStartYMethods inherited from interface com.illumon.iris.db.plot.datasets.category.CategoryTableDataSeriesInternal
onInflateMethods inherited from interface com.illumon.iris.db.plot.datasets.DataSeries
pointColorByY, pointColorByY, pointLabel, pointLabelFormat, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, seriesColor, seriesColor, seriesColor, toolTipPattern, xToolTipPattern, yToolTipPatternMethods inherited from interface com.illumon.iris.db.plot.datasets.DataSeriesInternal
axes, chart, getErrorBarColor, getGradientVisible, getLineColor, getLineStyle, getLinesVisible, getPlotInfo, getPointLabelFormat, getPointsVisible, getSeriesColor, getXToolTipPattern, getYToolTipPattern, id, nameMethods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, removeTableHandleMethods inherited from interface com.illumon.iris.db.plot.TableSnapshotSeries
notifyTableSnapshotChanged
-
Constructor Details
-
CategoryDataSeriesTableMap
public CategoryDataSeriesTableMap(AxesImpl axes, int id, Comparable<?> name, TableHandle tableHandle, String categories, String values) Creates a new CategoryDataSeriesTableMap instance.- Type Parameters:
T- type of the categorical data- Parameters:
axes-AxesImplon which this dataset is being plottedid- data series idname- series nametableHandle- holds the underlying tablecategories- column in the underlying table containing the categorical datavalues- column in the underlying table containing the numerical data- Throws:
com.fishlib.base.verify.RequirementFailure-chart,tableHandle,categories, andvaluesmust not be nullRuntimeException-categoriescolumn must be either time, char/Character,Comparable, or numericvaluescolumn must be numeric
-
-
Method Details
-
copy
Description copied from interface:SeriesInternalCreate a copy of the series on a different set of axes.- Specified by:
copyin interfaceCategoryDataSeriesInternal- Specified by:
copyin interfaceDataSeriesInternal- Specified by:
copyin interfaceSeriesInternal- Parameters:
axes- new axes.- Returns:
- copy of the series on a different set of axes.
-
init
public void init()Description copied from interface:CategoryDataSeriesInternalDo any required initialization before data may be read from the series.- Specified by:
initin interfaceCategoryDataSeriesInternal
-
onClose
public void onClose()Description copied from interface:SeriesInternalSeries shut down after the plot is closed.- Specified by:
onClosein interfaceSeriesInternal- Overrides:
onClosein classAbstractCategoryDataSeries
-
size
public int size()Description copied from interface:DataSeriesInternalGets the size of this data set.- Specified by:
sizein interfaceDataSeriesInternal- Returns:
- size of this data set
-
categories
Description copied from interface:CategoryDataSeriesInternalGets the categories of the dataset.- Specified by:
categoriesin interfaceCategoryDataSeriesInternal- Returns:
- all categories in the dataset
-
getValue
Description copied from interface:CategoryDataSeriesInternalGets the numeric value corresponding to the givencategory.- Specified by:
getValuein interfaceCategoryDataSeriesInternal- Parameters:
category- category- Returns:
- numeric value corresponding to the given
category
-
getCategoryLocation
Description copied from interface:CategoryDataSeriesInternalGet the row key of the specified series.- Specified by:
getCategoryLocationin interfaceCategoryDataSeriesInternal- Returns:
-
getYRange
public org.jfree.data.Range getYRange()Description copied from interface:CategoryDataSeriesInternalGets the y range of this dataset.- Specified by:
getYRangein interfaceCategoryDataSeriesInternal- Returns:
- y range of this dataset
-
getTableHandle
-
getCategoryCol
- Specified by:
getCategoryColin classAbstractTableBasedCategoryDataSeries
-
getValueCol
- Specified by:
getValueColin classAbstractTableBasedCategoryDataSeries
-
getTable
- Specified by:
getTablein classAbstractTableBasedCategoryDataSeries
-
createSnapshot
Description copied from interface:DataSeriesInternalReturns a snapshot of this dataset which will not update.- Specified by:
createSnapshotin interfaceCategoryDataSeriesInternal- Specified by:
createSnapshotin interfaceDataSeriesInternal
-