AreaChart that displays trends of the
contribution of each value. (over time e.g.) The areas are stacked so that each
series adjoins but does not overlap the preceding series. This contrasts with
the Area chart where each series overlays the preceding series.
The cumulative nature of the StackedAreaChart gives an idea of the total Y data
value at any given point along the X axis.
Since data points across multiple series may not be common, StackedAreaChart
interpolates values along the line joining the data points whenever necessary.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static enum | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private BooleanProperty | createSymbols
When true, CSS styleable symbols are created for any data items that don't have a symbol node specified. |
| private Map | seriesYMultiplierMap
A multiplier for teh Y values that we store for each series, it is used to animate in a new series |
| private Timeline |
| Access | Constructor and Description |
|---|---|
| public | StackedAreaChart(Axis<X>
The x axis to use xAxis, Axis<Y> The y axis to use yAxis)Construct a new Area Chart with the given axis |
| public | StackedAreaChart(Axis<X>
The x axis to use xAxis, Axis<Y> The y axis to use yAxis, ObservableList<XYChart.The data to use, this is the actual list used so any changes to it will be reflected in the chart dataConstruct a new Area Chart with the given axis and data. |
| Modifier and Type | Method and Description |
|---|---|
| private void | addDropDown(ArrayList<StackedAreaChart.
|
| private void | addPoint(ArrayList<StackedAreaChart.
|
| pack-priv Legend. | createLegendItemForSeries(XYChart.
the series for this legend item series,the index of the series seriesIndex)Overrides javafx. Called by the updateLegend for each series in the chart in order to create new legend item |
| private Node | createSymbol(XYChart.
|
| public final BooleanProperty | |
| protected void | dataItemAdded(XYChart.
The series the data item was added to series,The index of the new item within the series itemIndex, XYChart.The new data item that was added itemImplements abstract javafx. Called when a data item has been added to a series. |
| protected void | dataItemChanged(XYChart.
The data item who was changed itemImplements abstract javafx. Called when a data item has changed, ie its xValue, yValue or extraValue has changed. |
| protected void | dataItemRemoved(final XYChart.
The item that has been removed from the series item,The series the item was removed from seriesImplements abstract javafx. Called when a data item has been removed from data model but it is still visible on the chart. |
| private static double | |
| private static double | |
| private int | |
| private int | |
| private int | |
| private int | |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| public final boolean | Returns: true if symbols for data points will be created and false otherwise.Indicates whether symbols for data points will be created or not. |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| private double | |
| protected void | layoutPlotChildren()
Implements abstract javafx. Called to update and layout the plot children. |
| protected void | seriesAdded(XYChart.
The series that has been added series,The index of the new series seriesIndex)Implements abstract javafx. A series has been added to the charts data model. |
| pack-priv void | seriesBeingRemovedIsAdded(XYChart.
Overrides javafx. This method is called when there is an attempt to add series that was set to be removed, and the removal might not have completed. |
| protected void | seriesChanged(ListChangeListener.
a Change instance representing the changes to the series cOverrides javafx. Called when each atomic change is made to the list of series for this chart |
| protected void | seriesRemoved(final XYChart.
The series that has been removed seriesImplements abstract javafx. A series has been removed from the data model but it is still visible on the chart. |
| public final void | |
| private void | |
| protected void | updateAxisRange()
Overrides javafx. This is called when the range has been invalidated and we need to update it. |
| createSymbols | back to summary |
|---|---|
| private BooleanProperty createSymbols When true, CSS styleable symbols are created for any data items that don't have a symbol node specified.
| |
| seriesYMultiplierMap | back to summary |
|---|---|
| private Map<XYChart. A multiplier for teh Y values that we store for each series, it is used to animate in a new series | |
| timeline | back to summary |
|---|---|
| private Timeline timeline | |
| StackedAreaChart | back to summary |
|---|---|
| public StackedAreaChart(Axis<X> xAxis, Axis<Y> yAxis) Construct a new Area Chart with the given axis | |
| StackedAreaChart | back to summary |
|---|---|
| public StackedAreaChart(Axis<X> xAxis, Axis<Y> yAxis, ObservableList<XYChart. Construct a new Area Chart with the given axis and data. Note yAxis must be a ValueAxis, otherwise
| |
| addDropDown | back to summary |
|---|---|
| private void addDropDown(ArrayList<StackedAreaChart. | |
| addPoint | back to summary |
|---|---|
| private void addPoint(ArrayList<StackedAreaChart. | |
| createLegendItemForSeries | back to summary |
|---|---|
| pack-priv Legend. Overrides javafx. Doc from javafx. Called by the updateLegend for each series in the chart in order to create new legend item
| |
| createSymbol | back to summary |
|---|---|
| private Node createSymbol(XYChart. | |
| createSymbolsProperty | back to summary |
|---|---|
| public final BooleanProperty createSymbolsProperty() | |
| dataItemAdded | back to summary |
|---|---|
| protected void dataItemAdded(XYChart. Implements abstract javafx. Doc from javafx. Called when a data item has been added to a series. This is where implementations of XYChart can create/add new nodes to getPlotChildren to represent this data item. They also may animate that data add with a fade in or similar if animated = true. | |
| dataItemChanged | back to summary |
|---|---|
| protected void dataItemChanged(XYChart. Implements abstract javafx. Doc from javafx. Called when a data item has changed, ie its xValue, yValue or extraValue has changed. | |
| dataItemRemoved | back to summary |
|---|---|
| protected void dataItemRemoved(final XYChart. Implements abstract javafx. Doc from javafx. Called when a data item has been removed from data model but it is still visible on the chart. Its still visible so that you can handle animation for removing it in this method. After you are done animating the data item you must call removeDataItemFromDisplay() to remove the items node from being displayed on the chart. | |
| doubleValue | back to summary |
|---|---|
| private static double doubleValue(Number number) | |
| doubleValue | back to summary |
|---|---|
| private static double doubleValue(Number number, double nullDefault) | |
| findNextCurrent | back to summary |
|---|---|
| private int findNextCurrent(ArrayList<StackedAreaChart. | |
| findNextPrevious | back to summary |
|---|---|
| private int findNextPrevious(ArrayList<StackedAreaChart. | |
| findPreviousCurrent | back to summary |
|---|---|
| private int findPreviousCurrent(ArrayList<StackedAreaChart. | |
| findPreviousPrevious | back to summary |
|---|---|
| private int findPreviousPrevious(ArrayList<StackedAreaChart. | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Gets the
| |
| getCreateSymbols | back to summary |
|---|---|
| public final boolean getCreateSymbols() Indicates whether symbols for data points will be created or not.
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Implements javafx. Doc from javafx. This method should delegate to
| |
| interpolate | back to summary |
|---|---|
| private double interpolate(double lowX, double lowY, double highX, double highY, double x) | |
| layoutPlotChildren | back to summary |
|---|---|
| protected void layoutPlotChildren() Implements abstract javafx. Doc from javafx. Called to update and layout the plot children. This should include all work to updates nodes representing the plot on top of the axis and grid lines etc. The origin is the top left of the plot area, the plot area with can be got by getting the width of the x axis and its height from the height of the y axis.
| |
| seriesAdded | back to summary |
|---|---|
| protected void seriesAdded(XYChart. Implements abstract javafx. Doc from javafx. A series has been added to the charts data model. This is where implementations of XYChart can create/add new nodes to getPlotChildren to represent this series. Also you have to handle adding any data items that are already in the series. You may simply call dataItemAdded() for each one or provide some different animation for a whole series being added. | |
| seriesBeingRemovedIsAdded | back to summary |
|---|---|
| pack-priv void seriesBeingRemovedIsAdded(XYChart. Overrides javafx. Doc from javafx. This method is called when there is an attempt to add series that was set to be removed, and the removal might not have completed.
| |
| seriesChanged | back to summary |
|---|---|
| protected void seriesChanged(ListChangeListener. Overrides javafx. Doc from javafx. Called when each atomic change is made to the list of series for this chart
| |
| seriesRemoved | back to summary |
|---|---|
| protected void seriesRemoved(final XYChart. Implements abstract javafx. Doc from javafx. A series has been removed from the data model but it is still visible on the chart. Its still visible so that you can handle animation for removing it in this method. After you are done animating the data item you must call removeSeriesFromDisplay() to remove the series from the display list. | |
| setCreateSymbols | back to summary |
|---|---|
| public final void setCreateSymbols(boolean value) | |
| sortAggregateList | back to summary |
|---|---|
| private void sortAggregateList(ArrayList<StackedAreaChart. | |
| updateAxisRange | back to summary |
|---|---|
| protected void updateAxisRange() Overrides javafx. Doc from javafx. This is called when the range has been invalidated and we need to update it. If the axis are auto ranging then we compile a list of all data that the given axis has to plot and call invalidateRange() on the axis passing it that data.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv XYChart. | |
| pack-priv double | |
| pack-priv double | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv StackedAreaChart. | |
| pack-priv boolean | |
| pack-priv X | |
| pack-priv Y |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final X | |
| public final Y | |
| pack-priv void | setValues(XYChart.
|
| dataItem | back to summary |
|---|---|
| pack-priv XYChart. | |
| displayX | back to summary |
|---|---|
| pack-priv double displayX | |
| displayY | back to summary |
|---|---|
| pack-priv double displayY | |
| dropDown | back to summary |
|---|---|
| pack-priv boolean dropDown | |
| lineTo | back to summary |
|---|---|
| pack-priv boolean lineTo | |
| partOf | back to summary |
|---|---|
| pack-priv StackedAreaChart. | |
| skipSymbol | back to summary |
|---|---|
| pack-priv boolean skipSymbol | |
| x | back to summary |
|---|---|
| pack-priv X x | |
| y | back to summary |
|---|---|
| pack-priv Y y | |
| DataPointInfo | back to summary |
|---|---|
| pack-priv DataPointInfo() | |
| DataPointInfo | back to summary |
|---|---|
| pack-priv DataPointInfo(XYChart. | |
| DataPointInfo | back to summary |
|---|---|
| pack-priv DataPointInfo(boolean dropDown) | |
| getX | back to summary |
|---|---|
| public final X getX() | |
| getY | back to summary |
|---|---|
| public final Y getY() | |
| setValues | back to summary |
|---|---|
| pack-priv void setValues(XYChart. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final StackedAreaChart. | |
| public static final StackedAreaChart. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StackedAreaChart. | |
| public static StackedAreaChart. |
| CURRENT | back to summary |
|---|---|
| public static final StackedAreaChart. | |
| PREVIOUS | back to summary |
|---|---|
| public static final StackedAreaChart. | |
| PartOf | back to summary |
|---|---|
| private PartOf() | |
| valueOf | back to summary |
|---|---|
| public static StackedAreaChart. | |
| values | back to summary |
|---|---|
| public static StackedAreaChart. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| CREATE_SYMBOLS | back to summary |
|---|---|
| private static final CssMetaData<StackedAreaChart<?, ?>, Boolean> CREATE_SYMBOLS | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |