java.lang.Object
javafx.scene.chart.XYChart.Series<X,Y>
A named series of data items
- Since:
- JavaFX 2.0
-
Property Summary
PropertiesTypePropertyDescriptionReference to the chart this series belongs toObservableList of data items that make up this seriesThe user displayable name for this seriesThe 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 givenObservableList
data.Series(ObservableList<XYChart.Data<X,Y>> data)
Constructs a Series and populates it with the givenObservableList
data. -
Method Summary
Modifier and TypeMethodDescriptionReference to the chart this series belongs toObservableList of data items that make up this seriesgetChart()
Gets the value of the property chart.getData()
Gets the value of the property data.getName()
Gets the value of the property name.getNode()
Gets the value of the property node.The user displayable name for this seriesThe node to display for this series.void
setData(ObservableList<XYChart.Data<X,Y>> value)
Sets the value of the property data.void
Sets the value of the property name.void
Sets the value of the property node.toString()
Returns a string representation of thisSeries
object.
-
Property Details
-
chart
Reference to the chart this series belongs to- See Also:
getChart()
-
name
The user displayable name for this series- See Also:
getName()
,setName(String)
-
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:
getNode()
,setNode(Node)
-
data
ObservableList of data items that make up this series- See Also:
getData()
,setData(ObservableList)
-
-
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
Gets the value of the property chart.- Property description:
- Reference to the chart this series belongs to
-
chartProperty
Reference to the chart this series belongs to- See Also:
getChart()
-
getName
Gets the value of the property name.- Property description:
- The user displayable name for this series
-
setName
Sets the value of the property name.- Property description:
- The user displayable name for this series
-
nameProperty
The user displayable name for this series- See Also:
getName()
,setName(String)
-
getNode
Gets the value of the property node.- 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.
-
setNode
Sets the value of the property node.- 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.
-
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.- See Also:
getNode()
,setNode(Node)
-
getData
Gets the value of the property data.- Property description:
- ObservableList of data items that make up this series
-
setData
Sets the value of the property data.- Property description:
- ObservableList of data items that make up this series
-
dataProperty
ObservableList of data items that make up this series- See Also:
getData()
,setData(ObservableList)
-
toString
Returns a string representation of thisSeries
object.
-