Interface MultiSeriesInternal<T extends DataSeriesInternal>
- All Superinterfaces:
MultiSeries
,PlotExceptionCause
,Serializable
,Series
,SeriesInternal
- All Known Implementing Classes:
AbstractMultiSeries
,AbstractSwappableMultiSeries
,AbstractTableMapHandleMultiSeries
,MultiCatErrorBarSeries
,MultiCatErrorBarSeriesSwappable
,MultiCatSeries
,MultiCatSeriesSwappable
,MultiOHLCSeries
,MultiOHLCSeriesSwappable
,MultiXYErrorBarSeries
,MultiXYErrorBarSeriesSwappable
,MultiXYSeries
,MultiXYSeriesSwappable
,TransformedMultiSeries
public interface MultiSeriesInternal<T extends DataSeriesInternal>
extends MultiSeries, SeriesInternal, PlotExceptionCause
A parent data series that spawns a
DataSeries
for each unique key in the parent series.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the given series to this MultiSeriesvoid
addSeriesChangeListener
(DataChangeListener listener) Add a series change listener.void
Initialization will only be allowed after a Figure show() or save()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)axes()
Gets the axes on which this data will be plotted.chart()
Gets the chart on which this data will be plotted.Create a copy of the series on a different set of axes.createSeries
(String seriesName, BaseTable t) Creates a new series for this multi-series.createSeries
(String seriesName, BaseTable t, DynamicSeriesNamer dynamicSeriesNamer) Creates a new series for this multi-series.get
(int series) Gets the specified series from this multi-series.String[]
Gets the by columns for the multi-series.Gets a utility to make certain that all dynamic series have unique names.default PlotInfo
int
Gets the number of series in this multi-series.getX()
getY()
int
id()
Gets the id for the multi series.default void
init
(DynamicSeriesNamer dynamicSeriesNamer) Initializes this multi-series.void
init
(DynamicSeriesNamer dynamicSeriesNamer, Runnable optional) void
initializeSeries
(T series) Assigns series modifiers, e.g.boolean
name()
Gets the name of this data set.void
notifySeriesChangeListeners
(boolean incremental) Fire a series change event.void
setDynamicSeriesNamer
(DynamicSeriesNamer seriesNamer) Methods inherited from interface com.illumon.iris.db.plot.datasets.multiseries.MultiSeries
errorBarColor, errorBarColor, errorBarColor, gradientVisible, group, lineColor, lineColor, lineColor, lineStyle, linesVisible, 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, toolTipPattern, xToolTipPattern, yToolTipPattern
Methods inherited from interface com.illumon.iris.db.plot.SeriesInternal
addSwappableTable, addTableHandle, addTableMapHandle, dataChangeListener, getSwappableTables, getTableHandles, getTableMapHandles, onClose, onInflate, removeTableHandle
-
Method Details
-
copy
Description copied from interface:SeriesInternal
Create a copy of the series on a different set of axes.- Specified by:
copy
in interfaceSeriesInternal
- Parameters:
axes
- new axes.- Returns:
- copy of the series on a different set of axes.
-
name
Comparable name()Gets the name of this data set.- Specified by:
name
in interfaceSeriesInternal
- Returns:
- name of this data set
-
chart
ChartImpl chart()Gets the chart on which this data will be plotted.- Returns:
- chart on which this data will be plotted
-
axes
AxesImpl axes()Gets the axes on which this data will be plotted.- Specified by:
axes
in interfaceSeriesInternal
- Returns:
- axes on which this data will be plotted
-
id
int id()Gets the id for the multi series.- Specified by:
id
in interfaceSeriesInternal
-
getByColumns
String[] getByColumns()Gets the by columns for the multi-series.- Returns:
- by columns for the multi-series.
-
init
Initializes this multi-series. -
init
-
allowInitialization
void allowInitialization()Initialization will only be allowed after a Figure show() or save() -
getSeriesCount
int getSeriesCount()Gets the number of series in this multi-series.- Returns:
- number of series in this multi-series
-
get
Gets the specified series from this multi-series.- Parameters:
series
- series index- Returns:
- specified series
-
createSeries
Creates a new series for this multi-series.- Parameters:
seriesName
- name for the seriest
- client side source table- Returns:
- new series for this multi-series
-
createSeries
Creates a new series for this multi-series.- Parameters:
seriesName
- name for the seriest
- client side source tabledynamicSeriesNamer
- creates the name for the newly generated series. Ensures unique names.- Returns:
- new series for this multi-series
-
getDynamicSeriesNamer
DynamicSeriesNamer getDynamicSeriesNamer()Gets a utility to make certain that all dynamic series have unique names.- Returns:
- utility to make certain that all dynamic series have unique names.
-
setDynamicSeriesNamer
-
notifySeriesChangeListeners
void notifySeriesChangeListeners(boolean incremental) Fire a series change event.- Parameters:
incremental
- whether the series change is additive
-
addSeriesChangeListener
Add a series change listener.- Parameters:
listener
- series change listener
-
initializeSeries
Assigns series modifiers, e.g. point color, to the givenseries
- Parameters:
series
- series to initialize
-
getTableMap
TableMap getTableMap()- Returns:
- the underlying
TableMap
-
addSeries
Add the given series to this MultiSeries- Parameters:
series
- serieskey
- key used to determine the name of theseries
-
getPlotInfo
- Specified by:
getPlotInfo
in interfacePlotExceptionCause
-
applyTransform
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)- 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
-
getX
String getX()- Returns:
- the x-axis data column
-
getY
String getY()- Returns:
- the y-axis data column
-
getQueryProcessorConnection
QueryProcessorConnection getQueryProcessorConnection() -
isInitialized
boolean isInitialized()
-