Type | Property and Description |
---|---|
ReadOnlyObjectProperty<XYChart<X,Y>> |
chart
Reference to the chart this series belongs to
|
ObjectProperty<ObservableList<XYChart.Data<X,Y>>> |
data
ObservableList of data items that make up this series
|
StringProperty |
name
The user displayable name for this series
|
ObjectProperty<Node> |
node
The node to display for this series.
|
Constructor and Description |
---|
Series()
Construct a empty series
|
Series(ObservableList<XYChart.Data<X,Y>> data)
Constructs a Series and populates it with the given
ObservableList data. |
Series(String name,
ObservableList<XYChart.Data<X,Y>> data)
Constructs a named Series and populates it with the given
ObservableList data. |
Modifier and Type | Method and Description |
---|---|
ReadOnlyObjectProperty<XYChart<X,Y>> |
chartProperty()
Reference to the chart this series belongs to
|
ObjectProperty<ObservableList<XYChart.Data<X,Y>>> |
dataProperty()
ObservableList of data items that make up this series
|
XYChart<X,Y> |
getChart()
Gets the value of the property chart.
|
ObservableList<XYChart.Data<X,Y>> |
getData()
Gets the value of the property data.
|
String |
getName()
Gets the value of the property name.
|
Node |
getNode()
Gets the value of the property node.
|
StringProperty |
nameProperty()
The user displayable name for this series
|
ObjectProperty<Node> |
nodeProperty()
The node to display for this series.
|
void |
setData(ObservableList<XYChart.Data<X,Y>> value)
Sets the value of the property data.
|
void |
setName(String value)
Sets the value of the property name.
|
void |
setNode(Node value)
Sets the value of the property node.
|
String |
toString()
Returns a string representation of this
Series object. |
public final ReadOnlyObjectProperty<XYChart<X,Y>> chartProperty
getChart()
public final StringProperty nameProperty
getName()
,
setName(String)
public final ObjectProperty<Node> nodeProperty
getNode()
,
setNode(Node)
public final ObjectProperty<ObservableList<XYChart.Data<X,Y>>> dataProperty
getData()
,
setData(ObservableList)
public Series()
public Series(ObservableList<XYChart.Data<X,Y>> data)
ObservableList
data.data
- ObservableList of XYChart.Datapublic Series(String name, ObservableList<XYChart.Data<X,Y>> data)
ObservableList
data.name
- a name for the seriesdata
- ObservableList of XYChart.Datapublic final XYChart<X,Y> getChart()
public final ReadOnlyObjectProperty<XYChart<X,Y>> chartProperty()
getChart()
public final String getName()
public final void setName(String value)
public final StringProperty nameProperty()
getName()
,
setName(String)
public final Node getNode()
public final void setNode(Node value)
public final ObjectProperty<Node> nodeProperty()
getNode()
,
setNode(Node)
public final ObservableList<XYChart.Data<X,Y>> getData()
public final void setData(ObservableList<XYChart.Data<X,Y>> value)
public final ObjectProperty<ObservableList<XYChart.Data<X,Y>>> dataProperty()
getData()
,
setData(ObservableList)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.