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
PropertiesTypePropertyDescriptionfinal ReadOnlyObjectProperty<PieChart> The chart which this data belongs to.final StringPropertyThe name of the pie sliceReadonly access to the node that represents the pie slice.final DoublePropertyThe value of the pie slice -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ReadOnlyObjectProperty<PieChart> The chart which this data belongs to.final PieChartgetChart()Gets the value of thechartproperty.final StringgetName()Gets the value of thenameproperty.getNode()Returns the node that represents the pie slice.final doubleGets the value of thepieValueproperty.final StringPropertyThe name of the pie sliceReadonly access to the node that represents the pie slice.final DoublePropertyThe value of the pie slicefinal voidSets the value of thenameproperty.final voidsetPieValue(double value) Sets the value of thepieValueproperty.toString()Returns a string representation of thisDataobject.
-
Property Details
-
chart
The chart which this data belongs to.- See Also:
-
name
The name of the pie slice- See Also:
-
pieValue
The value of the pie slice- See Also:
-
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 thechartproperty.- Property description:
- The chart which this data belongs to.
- Returns:
- the value of the
chartproperty - See Also:
-
chartProperty
The chart which this data belongs to.- Returns:
- the
chartproperty - See Also:
-
setName
Sets the value of thenameproperty.- Property description:
- The name of the pie slice
- Parameters:
value- the value for thenameproperty- See Also:
-
getName
Gets the value of thenameproperty.- Property description:
- The name of the pie slice
- Returns:
- the value of the
nameproperty - See Also:
-
nameProperty
The name of the pie slice- Returns:
- the
nameproperty - See Also:
-
getPieValue
public final double getPieValue()Gets the value of thepieValueproperty.- Property description:
- The value of the pie slice
- Returns:
- the value of the
pieValueproperty - See Also:
-
setPieValue
public final void setPieValue(double value) Sets the value of thepieValueproperty.- Property description:
- The value of the pie slice
- Parameters:
value- the value for thepieValueproperty- See Also:
-
pieValueProperty
The value of the pie slice- Returns:
- the
pieValueproperty - 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
nodeproperty - See Also:
-
toString
Returns a string representation of thisDataobject.
-