public static final class PieChart.Data
extends java.lang.Object
Type | Property and Description |
---|---|
<any> |
chart
The chart which this data belongs to.
|
private DoubleProperty |
currentPieValue
The current pie value, used during animation.
|
StringProperty |
name
The name of the pie slice
|
<any> |
node
Readonly access to the node that represents the pie slice.
|
DoubleProperty |
pieValue
The value of the pie slice
|
private DoubleProperty |
radiusMultiplier
Multiplier that is used to animate the radius of the pie slice
|
Modifier and Type | Field and Description |
---|---|
private <any> |
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 <any> |
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 |
---|---|
<any> |
chartProperty()
The chart which this data belongs to.
|
private DoubleProperty |
currentPieValueProperty()
The current pie value, used during animation.
|
PieChart |
getChart()
Gets the value of the property chart.
|
private double |
getCurrentPieValue() |
java.lang.String |
getName()
Gets the value of the property name.
|
Node |
getNode()
Returns the node that represents the pie slice.
|
double |
getPieValue()
Gets the value of the property pieValue.
|
private double |
getRadiusMultiplier() |
StringProperty |
nameProperty()
The name of the pie slice
|
<any> |
nodeProperty()
Readonly access to the node that represents the pie slice.
|
DoubleProperty |
pieValueProperty()
The value of the pie slice
|
private DoubleProperty |
radiusMultiplierProperty()
Multiplier that is used to animate the radius of the pie slice
|
private void |
setChart(PieChart value) |
private void |
setCurrentPieValue(double value) |
void |
setName(java.lang.String value)
Sets the value of the property name.
|
private void |
setNode(Node value) |
void |
setPieValue(double value)
Sets the value of the property pieValue.
|
private void |
setRadiusMultiplier(double value) |
java.lang.String |
toString()
Returns a string representation of this
Data object. |
public final <any> chartProperty
getChart()
public final StringProperty nameProperty
getName()
,
setName(String)
public final DoubleProperty pieValueProperty
getPieValue()
,
setPieValue(double)
private DoubleProperty currentPieValueProperty
private DoubleProperty radiusMultiplierProperty
public <any> nodeProperty
getNode()
private Text textNode
private PieChart.Data next
private int defaultColorIndex
private <any> chart
private StringProperty name
private DoubleProperty pieValue
private DoubleProperty currentPieValue
private DoubleProperty radiusMultiplier
private <any> 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 <any> chartProperty()
getChart()
public final void setName(java.lang.String value)
public final java.lang.String getName()
public final StringProperty nameProperty()
getName()
,
setName(String)
public final double getPieValue()
public final void setPieValue(double value)
public final DoubleProperty pieValueProperty()
getPieValue()
,
setPieValue(double)
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 <any> nodeProperty()
getNode()
public java.lang.String toString()
Data
object.toString
in class java.lang.Object
Data
object.