Class AbstractSwappableMultiSeries<SERIES extends DataSeriesInternal>
java.lang.Object
com.illumon.iris.db.plot.AbstractSeriesInternal
com.illumon.iris.db.plot.datasets.multiseries.AbstractMultiSeries<SERIES>
com.illumon.iris.db.plot.datasets.multiseries.AbstractSwappableMultiSeries<SERIES>
- All Implemented Interfaces:
MultiSeries,MultiSeriesInternal<SERIES>,PlotExceptionCause,Series,SeriesInternal,TableSnapshotSeries,SwappableTable.LocalTableUpdateListener,TableSnapshotChangeListener,Serializable
- Direct Known Subclasses:
MultiCatErrorBarSeriesSwappable,MultiCatSeriesSwappable,MultiOHLCSeriesSwappable,MultiXYErrorBarSeriesSwappable,MultiXYSeriesSwappable
public abstract class AbstractSwappableMultiSeries<SERIES extends DataSeriesInternal>
extends AbstractMultiSeries<SERIES>
implements SwappableTable.LocalTableUpdateListener
- See Also:
-
Field Summary
Fields inherited from class com.illumon.iris.db.plot.datasets.multiseries.AbstractMultiSeries
byColumns, EMPTY_TABLE_MAP, initialized, tableMap, tableMapLockFields inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
dataChangeListener -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTableHandle(TableHandle tableHandle) Add a table that drives this series.protected voidapplyFunction(Function function, String columnName, String functionInput, Class resultClass) Applies thefunctionto the byColumns of the underlying table to create a new columncolumnName.voidapplyTransform(String columnName, String update, Class[] classesToImport, Map<String, Object> params, boolean columnTypesPreserved) Calls a .update() on the underlying table with the given formula: underlyingTable.update(columnName = update)getX()getY()voidonLocalTableUpdate(Table localTable) Updates this listener with the new table.Methods inherited from class com.illumon.iris.db.plot.datasets.multiseries.AbstractMultiSeries
addSeries, addSeriesChangeListener, allowInitialization, applyFunction, applyNamingFunction, chart, createSeries, errorBarColor, errorBarColor, errorBarColor, get, getByColumns, getDynamicSeriesNamer, getSeriesCount, gradientVisible, group, init, init, initializeSeries, isInitialized, lineColor, lineColor, lineColor, lineStyle, linesVisible, notifySeriesChangeListeners, onClose, piePercentLabelFormat, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColorByY, pointColorByY, pointColorByY, pointColorInteger, pointColorInteger, pointColorInteger, pointColorInteger, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabel, pointLabelFormat, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointShape, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointSize, pointsVisible, seriesColor, seriesColor, seriesColor, seriesNamingFunction, seriesNamingFunction, setAddTo, setDynamicSeriesNamer, setUpSnapshot, toolTipPattern, xToolTipPattern, yToolTipPatternMethods inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
addSwappableTable, 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.multiseries.MultiSeriesInternal
axes, copy, createSeries, getPlotInfo, id, nameMethods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onInflate, removeTableHandleMethods inherited from interface com.illumon.iris.db.plot.util.tables.SwappableTable.LocalTableUpdateListener
onInitialSnapshotMethods inherited from interface com.illumon.iris.db.plot.TableSnapshotSeries
notifyTableSnapshotChanged
-
Method Details
-
getX
- Specified by:
getXin interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>- Returns:
- the x-axis data column
-
getY
- Specified by:
getYin interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>- Returns:
- the y-axis data column
-
getTableMap
- Specified by:
getTableMapin interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>- Returns:
- the underlying
TableMap
-
getQueryProcessorConnection
- Specified by:
getQueryProcessorConnectionin interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>
-
addTableHandle
Description copied from interface:SeriesInternalAdd a table that drives this series.- Specified by:
addTableHandlein interfaceSeriesInternal- Overrides:
addTableHandlein classAbstractSeriesInternal- Parameters:
tableHandle- table handle.
-
onLocalTableUpdate
Updates this listener with the new table.- Specified by:
onLocalTableUpdatein interfaceSwappableTable.LocalTableUpdateListener- Parameters:
localTable- table
-
getSwappableTable
-
applyFunction
protected void applyFunction(Function function, String columnName, String functionInput, Class resultClass) Description copied from class:AbstractMultiSeriesApplies thefunctionto the byColumns of the underlying table to create a new columncolumnName.- Overrides:
applyFunctionin classAbstractMultiSeries<SERIES extends DataSeriesInternal>
-
applyTransform
public void applyTransform(String columnName, String update, Class[] classesToImport, Map<String, Object> params, boolean columnTypesPreserved) Description copied from interface:MultiSeriesInternalCalls a .update() on the underlying table with the given formula: underlyingTable.update(columnName = update)- Specified by:
applyTransformin interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>- Parameters:
columnName- the resulting columnupdate- the formula insideclassesToImport- classes to import into the query scopeparams- parameters to add to the query scopecolumnTypesPreserved- set to true if the update clause is 'add only' with respect to columns. This allows the copying of ACLs
-