public static final class PieChart.Data
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ReadOnlyObjectWrapper<PieChart> |
chart
The chart which this data belongs to.
|
private DoubleProperty |
currentPieValue
The current pie value, used during animation.
|
private int |
defaultColorIndex
Default color index for this slice.
|
private StringProperty |
name
The name of the pie slice
|
private PieChart.Data |
next
Next pointer for the next data item : so we can do animation on data delete.
|
private ReadOnlyObjectWrapper<Node> |
node
Readonly access to the node that represents the pie slice.
|
private DoubleProperty |
pieValue
The value of the pie slice
|
private DoubleProperty |
radiusMultiplier
Multiplier that is used to animate the radius of the pie slice
|
private Text |
textNode |
Constructor and Description |
---|
Data(java.lang.String name,
double value)
Constructs a PieChart.Data object with the given name and value.
|
Modifier and Type | Method and Description |
---|---|
ReadOnlyObjectProperty<PieChart> |
chartProperty() |
private DoubleProperty |
currentPieValueProperty() |
PieChart |
getChart() |
private double |
getCurrentPieValue() |
java.lang.String |
getName() |
Node |
getNode()
Returns the node that represents the pie slice.
|
double |
getPieValue() |
private double |
getRadiusMultiplier() |
StringProperty |
nameProperty() |
ReadOnlyObjectProperty<Node> |
nodeProperty() |
DoubleProperty |
pieValueProperty() |
private DoubleProperty |
radiusMultiplierProperty() |
private void |
setChart(PieChart value) |
private void |
setCurrentPieValue(double value) |
void |
setName(java.lang.String value) |
private void |
setNode(Node value) |
void |
setPieValue(double value) |
private void |
setRadiusMultiplier(double value) |
java.lang.String |
toString()
Returns a string representation of this
Data object. |
private Text textNode
private PieChart.Data next
private int defaultColorIndex
private ReadOnlyObjectWrapper<PieChart> chart
private StringProperty name
private DoubleProperty pieValue
private DoubleProperty currentPieValue
private DoubleProperty radiusMultiplier
private ReadOnlyObjectWrapper<Node> node
public Data(java.lang.String name, double value)
name
- name for Pievalue
- pie valuepublic final PieChart getChart()
private void setChart(PieChart value)
public final ReadOnlyObjectProperty<PieChart> chartProperty()
public final void setName(java.lang.String value)
public final java.lang.String getName()
public final StringProperty nameProperty()
public final double getPieValue()
public final void setPieValue(double value)
public final DoubleProperty pieValueProperty()
private double getCurrentPieValue()
private void setCurrentPieValue(double value)
private DoubleProperty currentPieValueProperty()
private double getRadiusMultiplier()
private void setRadiusMultiplier(double value)
private DoubleProperty radiusMultiplierProperty()
public Node getNode()
private void setNode(Node value)
public ReadOnlyObjectProperty<Node> nodeProperty()
public java.lang.String toString()
Data
object.toString
in class java.lang.Object
Data
object.