public abstract class ChartSeriesModel<T extends DataPoint> extends ChartElement
Modifier and Type | Class and Description |
---|---|
static interface |
ChartSeriesModel.DataPointsChangedListener |
ChartElement.Predicate<T>
Modifier and Type | Field and Description |
---|---|
static int |
DATA_POINTS_MODIFIED_MESSAGE_KEY |
children
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
ChartSeriesModel() |
Modifier and Type | Method and Description |
---|---|
abstract DataPointCollection<T> |
dataPoints()
Gets a
DataPointCollection instance that holds the currently created data points in this series. |
CombinedSeriesPlotStrategy |
getCombinedPlotStrategy()
Gets the strategy that will be used when series of this type are combined - for example Stacked - on the plot area.
|
CombinedSeriesRoundLayoutStrategy |
getCombinedRoundLayoutStrategy()
Gets the strategy that will apply layout rounding for combined series of this type.
|
ChartSeriesModel.DataPointsChangedListener |
getDataPointsChangedListener() |
AxisPlotMode |
getDefaultPlotMode()
Gets the default
AxisPlotMode for this series. |
static AxisPlotMode |
selectPlotMode(Iterable<ChartSeriesModel> series)
Attempts to select the correct plot mode depending on the plot modes of the series provided.
|
void |
setDataPointsChangedListener(ChartSeriesModel.DataPointsChangedListener listener) |
abstract void |
updateVisibleDataPoints()
Used to trigger the update of the currently visible points according to the current pan and zoom values.
|
abstract List<T> |
visibleDataPoints()
Gets the current range of visible data points according to the current pan and zoom values.
|
canAddChild, enumDescendants, enumDescendants, enumDescendants, findAncestor, findDescendant, getPresenter, isAncestorOf, setPresenter
applyLayoutRounding, arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public static final int DATA_POINTS_MODIFIED_MESSAGE_KEY
public abstract DataPointCollection<T> dataPoints()
DataPointCollection
instance that holds the currently created data points in this series.public abstract List<T> visibleDataPoints()
public abstract void updateVisibleDataPoints()
public AxisPlotMode getDefaultPlotMode()
AxisPlotMode
for this series.public static AxisPlotMode selectPlotMode(Iterable<ChartSeriesModel> series)
series
- The series based on which the overall plot mode will be decided.AxisPlotMode.ON_TICKS_PADDED
if any of the series has it as the default plot mode.
Otherwise, if any series is set to AxisPlotMode.BETWEEN_TICKS
the value returned will be between ticks.
Finally, if none of the above are true, AxisPlotMode.ON_TICKS
is returned.public CombinedSeriesPlotStrategy getCombinedPlotStrategy()
public CombinedSeriesRoundLayoutStrategy getCombinedRoundLayoutStrategy()
public void setDataPointsChangedListener(ChartSeriesModel.DataPointsChangedListener listener)
public ChartSeriesModel.DataPointsChangedListener getDataPointsChangedListener()