java.lang.Object
javafx.scene.chart.PieChart.Data
- Enclosing class:
- PieChart
PieChart Data Item, represents one slice in the PieChart
- Since:
- JavaFX 2.0
-
Property Summary
PropertiesTypePropertyDescriptionThe chart which this data belongs to.The name of the pie sliceReadonly access to the node that represents the pie slice.The value of the pie slice -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe chart which this data belongs to.getChart()
Gets the value of the property chart.getName()
Gets the value of the property name.getNode()
Returns the node that represents the pie slice.double
Gets the value of the property pieValue.The name of the pie sliceReadonly access to the node that represents the pie slice.The value of the pie slicevoid
Sets the value of the property name.void
setPieValue(double value)
Sets the value of the property pieValue.toString()
Returns a string representation of thisData
object.
-
Property Details
-
chart
The chart which this data belongs to.- See Also:
getChart()
-
name
The name of the pie slice- See Also:
getName()
,setName(String)
-
pieValue
The value of the pie slice- See Also:
getPieValue()
,setPieValue(double)
-
node
Readonly access to the node that represents the pie slice. You can use this to add mouse event listeners etc.- See Also:
getNode()
-
-
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 the property chart.- Property description:
- The chart which this data belongs to.
-
chartProperty
The chart which this data belongs to.- See Also:
getChart()
-
setName
Sets the value of the property name.- Property description:
- The name of the pie slice
-
getName
Gets the value of the property name.- Property description:
- The name of the pie slice
-
nameProperty
The name of the pie slice- See Also:
getName()
,setName(String)
-
getPieValue
public final double getPieValue()Gets the value of the property pieValue.- Property description:
- The value of the pie slice
-
setPieValue
public final void setPieValue(double value)Sets the value of the property pieValue.- Property description:
- The value of the pie slice
-
pieValueProperty
The value of the pie slice- See Also:
getPieValue()
,setPieValue(double)
-
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.- See Also:
getNode()
-
toString
Returns a string representation of thisData
object.
-