java.lang.Object
javafx.scene.chart.PieChart.Data
- Enclosing class:
- PieChart
public static final class PieChart.Data extends Object
PieChart Data Item, represents one slice in the PieChart
- Since:
- JavaFX 2.0
- 
Property SummaryProperties Type Property Description ReadOnlyObjectProperty<PieChart>chartThe chart which this data belongs to.StringPropertynameThe name of the pie sliceReadOnlyObjectProperty<Node>nodeReadonly access to the node that represents the pie slice.DoublePropertypieValueThe value of the pie slice
- 
Constructor Summary
- 
Method SummaryModifier and Type Method Description ReadOnlyObjectProperty<PieChart>chartProperty()The chart which this data belongs to.PieChartgetChart()Gets the value of the property chart.StringgetName()Gets the value of the property name.NodegetNode()Returns the node that represents the pie slice.doublegetPieValue()Gets the value of the property pieValue.StringPropertynameProperty()The name of the pie sliceReadOnlyObjectProperty<Node>nodeProperty()Readonly access to the node that represents the pie slice.DoublePropertypieValueProperty()The value of the pie slicevoidsetName(String value)Sets the value of the property name.voidsetPieValue(double value)Sets the value of the property pieValue.StringtoString()Returns a string representation of thisDataobject.
- 
Property Details- 
chartThe chart which this data belongs to.- See Also:
- getChart()
 
- 
nameThe name of the pie slice- See Also:
- getName(),- setName(String)
 
- 
pieValueThe value of the pie slice- See Also:
- getPieValue(),- setPieValue(double)
 
- 
nodeReadonly access to the node that represents the pie slice. You can use this to add mouse event listeners etc.- See Also:
- getNode()
 
 
- 
- 
Constructor Details- 
DataConstructs a PieChart.Data object with the given name and value.- Parameters:
- name- name for Pie
- value- pie value
 
 
- 
- 
Method Details- 
getChartGets the value of the property chart.- Property description:
- The chart which this data belongs to.
 
- 
chartPropertyThe chart which this data belongs to.- See Also:
- getChart()
 
- 
setNameSets the value of the property name.- Property description:
- The name of the pie slice
 
- 
getNameGets the value of the property name.- Property description:
- The name of the pie slice
 
- 
namePropertyThe name of the pie slice- See Also:
- getName(),- setName(String)
 
- 
getPieValuepublic final double getPieValue()Gets the value of the property pieValue.- Property description:
- The value of the pie slice
 
- 
setPieValuepublic final void setPieValue(double value)Sets the value of the property pieValue.- Property description:
- The value of the pie slice
 
- 
pieValuePropertyThe value of the pie slice- See Also:
- getPieValue(),- setPieValue(double)
 
- 
getNodeReturns 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
 
- 
nodePropertyReadonly access to the node that represents the pie slice. You can use this to add mouse event listeners etc.- See Also:
- getNode()
 
- 
toStringReturns a string representation of thisDataobject.
 
-