Class AbstractSwappableMultiSeries<SERIES extends DataSeriesInternal>
java.lang.Object
io.deephaven.plot.AbstractSeriesInternal
io.deephaven.plot.datasets.multiseries.AbstractMultiSeries<SERIES>
io.deephaven.plot.datasets.multiseries.AbstractSwappableMultiSeries<SERIES>
- All Implemented Interfaces:
MultiSeries
,MultiSeriesInternal<SERIES>
,PlotExceptionCause
,Series
,SeriesInternal
,TableSnapshotSeries
,Serializable
- Direct Known Subclasses:
MultiCatErrorBarSeriesSwappable
,MultiCatSeriesSwappable
,MultiOHLCSeriesSwappable
,MultiXYErrorBarSeriesSwappable
,MultiXYSeriesSwappable
public abstract class AbstractSwappableMultiSeries<SERIES extends DataSeriesInternal>
extends AbstractMultiSeries<SERIES>
- See Also:
-
Field Summary
Fields inherited from class io.deephaven.plot.datasets.multiseries.AbstractMultiSeries
byColumns, EMPTY_PARTITIONED_TABLE, initialized, partitionedTable, partitionedTableLock
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTableHandle
(TableHandle tableHandle) Add a table that drives this series.protected <T,
R> void applyFunction
(Function<? super T, ? extends R> function, String columnName, String functionInput, Class<R> resultClass) Applies thefunction
to thebyColumns
of the underlying table to create a new column namedcolumnName
.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)getX()
getY()
Methods inherited from class io.deephaven.plot.datasets.multiseries.AbstractMultiSeries
addSeries, applyNamingFunction, chart, createSeries, errorBarColor, errorBarColor, errorBarColor, get, getByColumns, getDynamicSeriesNamer, getSeriesCount, gradientVisible, group, initializeSeries, lineColor, lineColor, lineColor, lineStyle, linesVisible, piePercentLabelFormat, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, pointColor, 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, setDynamicSeriesNamer, toolTipPattern, xToolTipPattern, yToolTipPattern
Methods inherited from class io.deephaven.plot.AbstractSeriesInternal
addPartitionedTableHandle, addSwappableTable, axes, getPartitionedTableHandles, getSwappableTables, getTableHandles, 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 io.deephaven.plot.datasets.multiseries.MultiSeriesInternal
axes, copy, createSeries, getPlotInfo, id, name
Methods inherited from interface io.deephaven.plot.SeriesInternal
addPartitionedTableHandle, addSwappableTable, getPartitionedTableHandles, getSwappableTables, getTableHandles, removeTableHandle
-
Method Details
-
getX
- Returns:
- the x-axis data column
-
getY
- Returns:
- the y-axis data column
-
getPartitionedTable
- Returns:
- the underlying
PartitionedTable
-
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.
-
getSwappableTable
-
applyFunction
protected <T,R> void applyFunction(Function<? super T, ? extends R> function, String columnName, String functionInput, Class<R> resultClass) Description copied from class:AbstractMultiSeries
Applies thefunction
to thebyColumns
of the underlying table to create a new column namedcolumnName
.- Overrides:
applyFunction
in classAbstractMultiSeries<SERIES extends DataSeriesInternal>
- Parameters:
function
- The function to applycolumnName
- The column name to createfunctionInput
- The formula string to use for gathering input tofunction
resultClass
- The expected result type offunction
-
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)- 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
-