Class XYChart.Series<X,Y>
java.lang.Object
javafx.scene.chart.XYChart.Series<X,Y>
-
Property Summary
TypePropertyDescriptionfinal 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 StringProperty
The user displayable name for this seriesfinal ObjectProperty
<Node> The node to display for this series. -
Constructor Summary
ConstructorDescriptionSeries()
Construct a empty seriesSeries
(String name, ObservableList<XYChart.Data<X, Y>> data) Constructs a named Series and populates it with the givenObservableList
data.Series
(ObservableList<XYChart.Data<X, Y>> data) Constructs a Series and populates it with the givenObservableList
data. -
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 thechart
property.final ObservableList
<XYChart.Data<X, Y>> getData()
Gets the value of thedata
property.final String
getName()
Gets the value of thename
property.final Node
getNode()
Gets the value of thenode
property.final StringProperty
The user displayable name for this seriesfinal ObjectProperty
<Node> The node to display for this series.final void
setData
(ObservableList<XYChart.Data<X, Y>> value) Sets the value of thedata
property.final void
Sets the value of thename
property.final void
Sets the value of thenode
property.toString()
Returns a string representation of thisSeries
object.
-
Property Details
-
chart
Reference to the chart this series belongs to- See Also:
-
name
-
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 givenObservableList
data.- Parameters:
data
- ObservableList of XYChart.Data
-
Series
Constructs a named Series and populates it with the givenObservableList
data.- Parameters:
name
- a name for the seriesdata
- ObservableList of XYChart.Data
-
-
Method Details
-
getChart
-
chartProperty
Reference to the chart this series belongs to- Returns:
- the
chart
property - See Also:
-
getName
Gets the value of thename
property.- Property description:
- The user displayable name for this series
- Returns:
- the value of the
name
property - See Also:
-
setName
Sets the value of thename
property.- Property description:
- The user displayable name for this series
- Parameters:
value
- the value for thename
property- See Also:
-
nameProperty
The user displayable name for this series- Returns:
- the
name
property - See Also:
-
getNode
Gets the value of thenode
property.- 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
node
property - See Also:
-
setNode
Sets the value of thenode
property.- 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 thenode
property- 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
node
property - See Also:
-
getData
Gets the value of thedata
property.- Property description:
- ObservableList of data items that make up this series
- Returns:
- the value of the
data
property - See Also:
-
setData
Sets the value of thedata
property.- Property description:
- ObservableList of data items that make up this series
- Parameters:
value
- the value for thedata
property- See Also:
-
dataProperty
ObservableList of data items that make up this series- Returns:
- the
data
property - See Also:
-
toString
-