Type | Property and Description |
---|---|
ReadOnlyObjectProperty<PieChart> |
chart
The chart which this data belongs to.
|
StringProperty |
name
The name of the pie slice
|
ReadOnlyObjectProperty<Node> |
node
Readonly access to the node that represents the pie slice.
|
DoubleProperty |
pieValue
The value of the pie slice
|
Constructor and Description |
---|
Data(String name,
double value)
Constructs a PieChart.Data object with the given name and value.
|
Modifier and Type | Method and Description |
---|---|
ReadOnlyObjectProperty<PieChart> |
chartProperty()
The chart which this data belongs to.
|
PieChart |
getChart()
Gets the value of the property chart.
|
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.
|
StringProperty |
nameProperty()
The name of the pie slice
|
ReadOnlyObjectProperty<Node> |
nodeProperty()
Readonly access to the node that represents the pie slice.
|
DoubleProperty |
pieValueProperty()
The value of the pie slice
|
void |
setName(String value)
Sets the value of the property name.
|
void |
setPieValue(double value)
Sets the value of the property pieValue.
|
String |
toString()
Returns a string representation of this
Data object. |
public final ReadOnlyObjectProperty<PieChart> chartProperty
getChart()
public final StringProperty nameProperty
getName()
,
setName(String)
public final DoubleProperty pieValueProperty
getPieValue()
,
setPieValue(double)
public ReadOnlyObjectProperty<Node> nodeProperty
getNode()
public Data(String name, double value)
name
- name for Pievalue
- pie valuepublic final PieChart getChart()
public final ReadOnlyObjectProperty<PieChart> chartProperty()
getChart()
public final void setName(String value)
public final 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)
public Node getNode()
public ReadOnlyObjectProperty<Node> nodeProperty()
getNode()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.