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:
- Serialized Form
-
Field Summary
Fields inherited from class com.illumon.iris.db.plot.datasets.multiseries.AbstractMultiSeries
byColumns, EMPTY_TABLE_MAP, initialized, tableMap, tableMapLock
-
Method Summary
Modifier and Type Method Description void
addTableHandle(TableHandle tableHandle)
Add a table that drives this series.protected void
applyFunction(Function function, String columnName, String functionInput, Class resultClass)
Applies thefunction
to the byColumns of the underlying table to create a new columncolumnName
.void
applyTransform(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)QueryProcessorConnection
getQueryProcessorConnection()
SwappableTable
getSwappableTable()
TableMap
getTableMap()
String
getX()
String
getY()
void
onLocalTableUpdate(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, yToolTipPattern
Methods inherited from class com.illumon.iris.db.plot.AbstractSeriesInternal
addSwappableTable, addTableMapHandle, axes, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, id, name, removeTableHandle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.plot.datasets.multiseries.MultiSeriesInternal
axes, copy, createSeries, getPlotInfo, id, name
Methods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onInflate, removeTableHandle
Methods inherited from interface com.illumon.iris.db.plot.util.tables.SwappableTable.LocalTableUpdateListener
onInitialSnapshot
Methods inherited from interface com.illumon.iris.db.plot.TableSnapshotSeries
notifyTableSnapshotChanged
-
Method Details
-
getX
- Specified by:
getX
in interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>
- Returns:
- the x-axis data column
-
getY
- Specified by:
getY
in interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>
- Returns:
- the y-axis data column
-
getTableMap
- Specified by:
getTableMap
in interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>
- Returns:
- the underlying
TableMap
-
getQueryProcessorConnection
- Specified by:
getQueryProcessorConnection
in interfaceMultiSeriesInternal<SERIES extends DataSeriesInternal>
-
addTableHandle
Description copied from interface:SeriesInternal
Add a table that drives this series.- Specified by:
addTableHandle
in interfaceSeriesInternal
- Overrides:
addTableHandle
in classAbstractSeriesInternal
- Parameters:
tableHandle
- table handle.
-
onLocalTableUpdate
Updates this listener with the new table.- Specified by:
onLocalTableUpdate
in interfaceSwappableTable.LocalTableUpdateListener
- Parameters:
localTable
- table
-
getSwappableTable
-
applyFunction
protected void applyFunction(Function function, String columnName, String functionInput, Class resultClass)Description copied from class:AbstractMultiSeries
Applies thefunction
to the byColumns of the underlying table to create a new columncolumnName
.- Overrides:
applyFunction
in classAbstractMultiSeries<SERIES extends DataSeriesInternal>
-
applyTransform
public void applyTransform(String columnName, String update, Class[] classesToImport, Map<String,Object> params, boolean columnTypesPreserved)Description copied from interface:MultiSeriesInternal
Calls a .update() on the underlying table with the given formula: underlyingTable.update(columnName = update)- Specified by:
applyTransform
in 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
-