Class PieChart.Data
java.lang.Object
javafx.scene.chart.PieChart.Data
-
Property Summary
TypePropertyDescriptionfinal ReadOnlyObjectProperty
<PieChart> The chart which this data belongs to.final StringProperty
The name of the pie sliceReadonly access to the node that represents the pie slice.final DoubleProperty
The value of the pie slice -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ReadOnlyObjectProperty
<PieChart> The chart which this data belongs to.final PieChart
getChart()
Gets the value of thechart
property.final String
getName()
Gets the value of thename
property.getNode()
Returns the node that represents the pie slice.final double
Gets the value of thepieValue
property.final StringProperty
The name of the pie sliceReadonly access to the node that represents the pie slice.final DoubleProperty
The value of the pie slicefinal void
Sets the value of thename
property.final void
setPieValue
(double value) Sets the value of thepieValue
property.toString()
Returns a string representation of thisData
object.
-
Property Details
-
chart
The chart which this data belongs to.- See Also:
-
name
-
pieValue
-
node
Readonly access to the node that represents the pie slice. You can use this to add mouse event listeners etc.- See Also:
-
-
Constructor Details
-
Data
Constructs a PieChart.Data object with the given name and value.- Parameters:
name
- name for Pievalue
- pie value
-
-
Method Details
-
getChart
Gets the value of thechart
property.- Property description:
- The chart which this data belongs to.
- Returns:
- the value of the
chart
property - See Also:
-
chartProperty
The chart which this data belongs to.- Returns:
- the
chart
property - See Also:
-
setName
Sets the value of thename
property.- Property description:
- The name of the pie slice
- Parameters:
value
- the value for thename
property- See Also:
-
getName
Gets the value of thename
property.- Property description:
- The name of the pie slice
- Returns:
- the value of the
name
property - See Also:
-
nameProperty
The name of the pie slice- Returns:
- the
name
property - See Also:
-
getPieValue
public final double getPieValue()Gets the value of thepieValue
property.- Property description:
- The value of the pie slice
- Returns:
- the value of the
pieValue
property - See Also:
-
setPieValue
public final void setPieValue(double value) Sets the value of thepieValue
property.- Property description:
- The value of the pie slice
- Parameters:
value
- the value for thepieValue
property- See Also:
-
pieValueProperty
The value of the pie slice- Returns:
- the
pieValue
property - See Also:
-
getNode
Returns the node that represents the pie slice. You can use this to add mouse event listeners etc.- Returns:
- the node that represents the pie slice
-
nodeProperty
Readonly access to the node that represents the pie slice. You can use this to add mouse event listeners etc.- Returns:
- the
node
property - See Also:
-
toString
-