public class LineChart<X,Y> extends XYChart<X,Y>
Type | Property and Description |
---|---|
<any> |
axisSortingPolicy
Indicates whether the data passed to LineChart should be sorted by natural order of one of the axes.
|
BooleanProperty |
createSymbols
When true, CSS styleable symbols are created for any data items that don't have a symbol node specified.
|
alternativeColumnFillVisibleProperty, alternativeRowFillVisibleProperty, dataProperty, horizontalGridLinesVisibleProperty, horizontalZeroLineVisibleProperty, verticalGridLinesVisibleProperty, verticalZeroLineVisibleProperty
animatedProperty, legendProperty, legendSideProperty, legendVisibleProperty, titleProperty, titleSideProperty
Modifier and Type | Class and Description |
---|---|
static class |
LineChart.SortingPolicy
This enum defines a policy for
axisSortingPolicyProperty() . |
private static class |
LineChart.StyleableProperties |
XYChart.Data<X,Y>, XYChart.Series<X,Y>
Modifier and Type | Field and Description |
---|---|
private <any> |
axisSortingPolicy
Indicates whether the data passed to LineChart should be sorted by natural order of one of the axes.
|
private BooleanProperty |
createSymbols
When true, CSS styleable symbols are created for any data items that don't have a symbol node specified.
|
private XYChart.Data<X,Y> |
dataItemBeingRemoved |
private Timeline |
dataRemoveTimeline |
private FadeTransition |
fadeSymbolTransition |
private XYChart.Series<X,Y> |
seriesOfDataRemoved |
private Timeline |
seriesRemoveTimeline |
private java.util.Map<XYChart.Series<X,Y>,DoubleProperty> |
seriesYMultiplierMap
A multiplier for the Y values that we store for each series, it is used to animate in a new series
|
private java.util.Map<XYChart.Data<X,Y>,java.lang.Double> |
XYValueMap |
DEFAULT_COLOR, seriesColorMap
useChartContentMirroring
Constructor and Description |
---|
LineChart(Axis<X> xAxis,
Axis<Y> yAxis)
Construct a new LineChart with the given axis.
|
LineChart(Axis<X> xAxis,
Axis<Y> yAxis,
<any> data)
Construct a new LineChart with the given axis and data.
|
Modifier and Type | Method and Description |
---|---|
<any> |
axisSortingPolicyProperty()
Indicates whether the data passed to LineChart should be sorted by natural order of one of the axes.
|
private Timeline |
createDataRemoveTimeline(XYChart.Data<X,Y> item,
Node symbol,
XYChart.Series<X,Y> series) |
(package private) LegendItem |
createLegendItemForSeries(XYChart.Series<X,Y> series,
int seriesIndex)
Called by the updateLegend for each series in the chart in order to
create new legend item
|
private Node |
createSymbol(XYChart.Series<X,Y> series,
int seriesIndex,
XYChart.Data<X,Y> item,
int itemIndex) |
BooleanProperty |
createSymbolsProperty()
When true, CSS styleable symbols are created for any data items that don't have a symbol node specified.
|
(package private) void |
dataBeingRemovedIsAdded(XYChart.Data item,
XYChart.Series series)
This method is called when there is an attempt to add a Data item that was
set to be removed, and the removal might not have completed.
|
protected void |
dataItemAdded(XYChart.Series<X,Y> series,
int itemIndex,
XYChart.Data<X,Y> item)
Called when a data item has been added to a series.
|
protected void |
dataItemChanged(XYChart.Data<X,Y> item)
Called when a data item has changed, ie its xValue, yValue or extraValue has changed.
|
protected void |
dataItemRemoved(XYChart.Data<X,Y> item,
XYChart.Series<X,Y> series)
Called when a data item has been removed from data model but it is still visible on the chart.
|
LineChart.SortingPolicy |
getAxisSortingPolicy()
Gets the value of the property axisSortingPolicy.
|
static java.util.List<<any>> |
getClassCssMetaData() |
boolean |
getCreateSymbols()
Indicates whether symbols for data points will be created or not.
|
java.util.List<<any>> |
getCssMetaData() |
protected void |
layoutPlotChildren()
Called to update and layout the plot children.
|
protected void |
seriesAdded(XYChart.Series<X,Y> series,
int seriesIndex)
A series has been added to the charts data model.
|
(package private) void |
seriesBeingRemovedIsAdded(XYChart.Series<X,Y> series)
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(<any> c)
Called when each atomic change is made to the list of series for this chart
|
protected void |
seriesRemoved(XYChart.Series<X,Y> series)
A series has been removed from the data model but it is still visible on the chart.
|
void |
setAxisSortingPolicy(LineChart.SortingPolicy value)
Sets the value of the property axisSortingPolicy.
|
void |
setCreateSymbols(boolean value)
Sets the value of the property createSymbols.
|
protected void |
updateAxisRange()
This is called when the range has been invalidated and we need to update it.
|
alternativeColumnFillVisibleProperty, alternativeRowFillVisibleProperty, createSeriesRemoveTimeLine, currentDisplayedExtraValueProperty, currentDisplayedXValueProperty, currentDisplayedYValueProperty, dataProperty, getCurrentDisplayedExtraValue, getCurrentDisplayedXValue, getCurrentDisplayedYValue, getData, getDataSize, getDisplayedDataIterator, getDisplayedSeriesIterator, getPlotChildren, getSeriesIndex, getSeriesSize, getVerticalGridLinesVisible, getXAxis, getYAxis, horizontalGridLinesVisibleProperty, horizontalZeroLineVisibleProperty, isAlternativeColumnFillVisible, isAlternativeRowFillVisible, isHorizontalGridLinesVisible, isHorizontalZeroLineVisible, isVerticalZeroLineVisible, layoutChartChildren, removeDataItemFromDisplay, removeSeriesFromDisplay, setAlternativeColumnFillVisible, setAlternativeRowFillVisible, setCurrentDisplayedExtraValue, setCurrentDisplayedXValue, setCurrentDisplayedYValue, setData, setHorizontalGridLinesVisible, setHorizontalZeroLineVisible, setVerticalGridLinesVisible, setVerticalZeroLineVisible, updateLegend, verticalGridLinesVisibleProperty, verticalZeroLineVisibleProperty
animate, animate, animatedProperty, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAnimated, getChartChildren, getLegend, getLegendSide, getTitle, getTitleSide, isLegendVisible, layoutChildren, legendProperty, legendSideProperty, legendVisibleProperty, requestChartLayout, setAnimated, setLegend, setLegendSide, setLegendVisible, setTitle, setTitleSide, shouldAnimate, titleProperty, titleSideProperty
public final BooleanProperty createSymbolsProperty
getCreateSymbols()
,
setCreateSymbols(boolean)
public final <any> axisSortingPolicyProperty
LineChart.SortingPolicy.NONE
, the order in XYChart.dataProperty()
will be used.getAxisSortingPolicy()
,
setAxisSortingPolicy(SortingPolicy)
private java.util.Map<XYChart.Series<X,Y>,DoubleProperty> seriesYMultiplierMap
private Timeline dataRemoveTimeline
private XYChart.Series<X,Y> seriesOfDataRemoved
private XYChart.Data<X,Y> dataItemBeingRemoved
private FadeTransition fadeSymbolTransition
private java.util.Map<XYChart.Data<X,Y>,java.lang.Double> XYValueMap
private Timeline seriesRemoveTimeline
private BooleanProperty createSymbols
private <any> axisSortingPolicy
LineChart.SortingPolicy.NONE
, the order in XYChart.dataProperty()
will be used.LineChart.SortingPolicy
public LineChart(Axis<X> xAxis, Axis<Y> yAxis)
xAxis
- The x axis to useyAxis
- The y axis to usepublic final boolean getCreateSymbols()
public final void setCreateSymbols(boolean value)
public final BooleanProperty createSymbolsProperty()
getCreateSymbols()
,
setCreateSymbols(boolean)
public final LineChart.SortingPolicy getAxisSortingPolicy()
public final void setAxisSortingPolicy(LineChart.SortingPolicy value)
public final <any> axisSortingPolicyProperty()
LineChart.SortingPolicy.NONE
, the order in XYChart.dataProperty()
will be used.getAxisSortingPolicy()
,
setAxisSortingPolicy(SortingPolicy)
protected void updateAxisRange()
updateAxisRange
in class XYChart<X,Y>
protected void dataItemAdded(XYChart.Series<X,Y> series, int itemIndex, XYChart.Data<X,Y> item)
XYChart
dataItemAdded
in class XYChart<X,Y>
series
- The series the data item was added toitemIndex
- The index of the new item within the seriesitem
- The new data item that was addedprotected void dataItemRemoved(XYChart.Data<X,Y> item, XYChart.Series<X,Y> series)
XYChart
dataItemRemoved
in class XYChart<X,Y>
item
- The item that has been removed from the seriesseries
- The series the item was removed fromprotected void dataItemChanged(XYChart.Data<X,Y> item)
dataItemChanged
in class XYChart<X,Y>
item
- The data item who was changedprotected void seriesChanged(<any> c)
XYChart
seriesChanged
in class XYChart<X,Y>
c
- a Change instance representing the changes to the seriesprotected void seriesAdded(XYChart.Series<X,Y> series, int seriesIndex)
XYChart
seriesAdded
in class XYChart<X,Y>
series
- The series that has been addedseriesIndex
- The index of the new seriesprotected void seriesRemoved(XYChart.Series<X,Y> series)
XYChart
seriesRemoved
in class XYChart<X,Y>
series
- The series that has been removedprotected void layoutPlotChildren()
layoutPlotChildren
in class XYChart<X,Y>
void dataBeingRemovedIsAdded(XYChart.Data item, XYChart.Series series)
dataBeingRemovedIsAdded
in class XYChart<X,Y>
void seriesBeingRemovedIsAdded(XYChart.Series<X,Y> series)
seriesBeingRemovedIsAdded
in class XYChart<X,Y>
private Timeline createDataRemoveTimeline(XYChart.Data<X,Y> item, Node symbol, XYChart.Series<X,Y> series)
private Node createSymbol(XYChart.Series<X,Y> series, int seriesIndex, XYChart.Data<X,Y> item, int itemIndex)
LegendItem createLegendItemForSeries(XYChart.Series<X,Y> series, int seriesIndex)
XYChart
createLegendItemForSeries
in class XYChart<X,Y>
series
- the series for this legend itemseriesIndex
- the index of the seriespublic static java.util.List<<any>> getClassCssMetaData()
public java.util.List<<any>> getCssMetaData()
getCssMetaData
in class XYChart<X,Y>