java.lang.Object
javafx.scene.chart.XYChart.Series<X,Y>
A named series of data items
- Since:
- JavaFX 2.0
-
Property Summary
PropertiesTypePropertyDescriptionfinal ReadOnlyObjectProperty<XYChart<X,Y>> Reference to the chart this series belongs tofinal ObjectProperty<ObservableList<XYChart.Data<X,Y>>> ObservableList of data items that make up this seriesfinal StringPropertyThe user displayable name for this seriesfinal ObjectProperty<Node>The node to display for this series. -
Constructor Summary
ConstructorsConstructorDescriptionSeries()Construct a empty seriesSeries(String name, ObservableList<XYChart.Data<X, Y>> data) Constructs a named Series and populates it with the givenObservableListdata.Series(ObservableList<XYChart.Data<X, Y>> data) Constructs a Series and populates it with the givenObservableListdata. -
Method Summary
Modifier and TypeMethodDescriptionfinal ReadOnlyObjectProperty<XYChart<X,Y>> Reference to the chart this series belongs tofinal ObjectProperty<ObservableList<XYChart.Data<X,Y>>> ObservableList of data items that make up this seriesgetChart()Gets the value of thechartproperty.final ObservableList<XYChart.Data<X,Y>> getData()Gets the value of thedataproperty.final StringgetName()Gets the value of thenameproperty.final NodegetNode()Gets the value of thenodeproperty.final StringPropertyThe user displayable name for this seriesfinal ObjectProperty<Node>The node to display for this series.final voidsetData(ObservableList<XYChart.Data<X, Y>> value) Sets the value of thedataproperty.final voidSets the value of thenameproperty.final voidSets the value of thenodeproperty.toString()Returns a string representation of thisSeriesobject.
-
Property Details
-
chart
Reference to the chart this series belongs to- See Also:
-
name
The user displayable name for this series- See Also:
-
node
The node to display for this series. This is created by the chart if it uses nodes to represent the whole series. For example line chart uses this for the line but scatter chart does not use it. This node will be set as soon as the series is added to the chart. You can then get it to add mouse listeners etc.- See Also:
-
data
ObservableList of data items that make up this series- See Also:
-
-
Constructor Details
-
Series
public Series()Construct a empty series -
Series
Constructs a Series and populates it with the givenObservableListdata.- Parameters:
data- ObservableList of XYChart.Data
-
Series
Constructs a named Series and populates it with the givenObservableListdata.- Parameters:
name- a name for the seriesdata- ObservableList of XYChart.Data
-
-
Method Details
-
getChart
Gets the value of thechartproperty.- Property description:
- Reference to the chart this series belongs to
- Returns:
- the value of the
chartproperty - See Also:
-
chartProperty
Reference to the chart this series belongs to- Returns:
- the
chartproperty - See Also:
-
getName
Gets the value of thenameproperty.- Property description:
- The user displayable name for this series
- Returns:
- the value of the
nameproperty - See Also:
-
setName
Sets the value of thenameproperty.- Property description:
- The user displayable name for this series
- Parameters:
value- the value for thenameproperty- See Also:
-
nameProperty
The user displayable name for this series- Returns:
- the
nameproperty - See Also:
-
getNode
Gets the value of thenodeproperty.- Property description:
- The node to display for this series. This is created by the chart if it uses nodes to represent the whole series. For example line chart uses this for the line but scatter chart does not use it. This node will be set as soon as the series is added to the chart. You can then get it to add mouse listeners etc.
- Returns:
- the value of the
nodeproperty - See Also:
-
setNode
Sets the value of thenodeproperty.- Property description:
- The node to display for this series. This is created by the chart if it uses nodes to represent the whole series. For example line chart uses this for the line but scatter chart does not use it. This node will be set as soon as the series is added to the chart. You can then get it to add mouse listeners etc.
- Parameters:
value- the value for thenodeproperty- See Also:
-
nodeProperty
The node to display for this series. This is created by the chart if it uses nodes to represent the whole series. For example line chart uses this for the line but scatter chart does not use it. This node will be set as soon as the series is added to the chart. You can then get it to add mouse listeners etc.- Returns:
- the
nodeproperty - See Also:
-
getData
Gets the value of thedataproperty.- Property description:
- ObservableList of data items that make up this series
- Returns:
- the value of the
dataproperty - See Also:
-
setData
Sets the value of thedataproperty.- Property description:
- ObservableList of data items that make up this series
- Parameters:
value- the value for thedataproperty- See Also:
-
dataProperty
ObservableList of data items that make up this series- Returns:
- the
dataproperty - See Also:
-
toString
Returns a string representation of thisSeriesobject.
-