public class XYAnnotations extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XYAnnotations.Layer
Defines the foreground and background annotation layers.
|
Constructor and Description |
---|
XYAnnotations(javafx.scene.chart.XYChart chart,
javafx.collections.ObservableList<javafx.scene.Node> chartChildren)
Constructs an annotation extension object for an XYChart.
|
Modifier and Type | Method and Description |
---|---|
void |
add(XYAnnotation annotation,
XYAnnotations.Layer layer)
Adds an annotation to the specified layer.
|
void |
clearAnnotations(XYAnnotations.Layer layer)
Clears all the annotations from the specified layer.
|
void |
clearFieldAnnotations(XYAnnotations.Layer layer)
Clears all field annotations from the specified layer.
|
void |
clearImageAnnotations(XYAnnotations.Layer layer)
Clears all image annotations from the specified layer.
|
void |
clearLineAnnotations(XYAnnotations.Layer layer)
Clears all line annotations from the specified layer.
|
void |
clearPolygonAnnotations(XYAnnotations.Layer layer)
Clears all polygon annotations from the specified layer.
|
void |
clearTextAnnotations(XYAnnotations.Layer layer)
Clears all text annotations from the specified layer.
|
void |
layoutAnnotations()
Performs a layout of the background and foreground annotations.
|
void |
remove(XYAnnotation annotation,
XYAnnotations.Layer layer)
Removes the given annotation from the specified layer.
|
public XYAnnotations(javafx.scene.chart.XYChart chart, javafx.collections.ObservableList<javafx.scene.Node> chartChildren)
chart
- The chart to which annotations are added.chartChildren
- The children returned by chart.getChartChildren().public void add(XYAnnotation annotation, XYAnnotations.Layer layer)
annotation
- The annotation to be added, e.g. text, line, image or polygon.layer
- The foreground or background.public void remove(XYAnnotation annotation, XYAnnotations.Layer layer)
annotation
- The annotation to be removed.layer
- The foreground or background.public void clearAnnotations(XYAnnotations.Layer layer)
layer
- The background or foreground.public void clearLineAnnotations(XYAnnotations.Layer layer)
layer
- The background or foreground.public void clearTextAnnotations(XYAnnotations.Layer layer)
layer
- The background or foreground.public void clearPolygonAnnotations(XYAnnotations.Layer layer)
layer
- The background or foreground.public void clearFieldAnnotations(XYAnnotations.Layer layer)
layer
- The background or foreground.public void clearImageAnnotations(XYAnnotations.Layer layer)
layer
- The background or foreground.public void layoutAnnotations()
Copyright © 2016 Emxsys. All rights reserved.