< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/chart/PieChart.java
Print this page
@@ -519,11 +519,11 @@
item.setChart(null);
removeDataItemRef(item);
}
}
- /** @inheritDoc */
+ /** {@inheritDoc} */
@Override protected void layoutChartChildren(double top, double left, double contentWidth, double contentHeight) {
double total = 0.0;
for (Data item = begin; item != null; item = item.next) {
total+= Math.abs(item.getCurrentPieValue());
}
@@ -970,10 +970,11 @@
private ReadOnlyObjectWrapper<Node> node = new ReadOnlyObjectWrapper<>(this, "node");
/**
* Returns the node that represents the pie slice. You can use this to
* add mouse event listeners etc.
+ * @return the node that represents the pie slice
*/
public Node getNode() {
return node.getValue();
}
< prev index next >