public class XYFieldAnnotation extends Object implements XYAnnotation
XYPolygonAnnotation
this annotation draws a polygon. The difference is that it spans the
chart in one dimension and is square, so that only a min/max needs to be specified.Constructor and Description |
---|
XYFieldAnnotation(double min,
double max,
javafx.geometry.Orientation orientation,
double strokeWidth,
javafx.scene.paint.Paint outlinePaint,
javafx.scene.paint.Paint fillPaint)
Constructs a polygon annotation with specific stroke and colors that override CSS styles.
|
XYFieldAnnotation(double min,
double max,
javafx.geometry.Orientation orientation,
javafx.scene.paint.Paint fillPaint)
Constructs a polygon annotation with specific fill only.
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.shape.Rectangle |
getNode()
Gets the node representation.
|
void |
layoutAnnotation(javafx.scene.chart.ValueAxis xAxis,
javafx.scene.chart.ValueAxis yAxis)
Performs the layout for the polygon.
|
void |
setTooltipText(String text)
Assigns a Tooltip to the polygon.
|
public XYFieldAnnotation(double min, double max, javafx.geometry.Orientation orientation, javafx.scene.paint.Paint fillPaint)
min
- The start/min value in either vertical of horizontal dimensionmax
- The end/max value in either vertical of horizontal dimensionorientation
- E.g. HORIZONTAL for a horizontal band/field where the coordinates above are y-values.fillPaint
- See Shape.setFill(Paint)
public XYFieldAnnotation(double min, double max, javafx.geometry.Orientation orientation, double strokeWidth, javafx.scene.paint.Paint outlinePaint, javafx.scene.paint.Paint fillPaint)
min
- The start/min value in either vertical of horizontal dimensionmax
- The end/max value in either vertical of horizontal dimensionorientation
- E.g. HORIZONTAL for a horizontal band/field where the coordinates above are y-values.strokeWidth
- See Shape.setStrokeWidth(double)
outlinePaint
- See Shape.setStroke(Paint)
fillPaint
- See Shape.setFill(Paint)
public javafx.scene.shape.Rectangle getNode()
getNode
in interface XYAnnotation
public void layoutAnnotation(javafx.scene.chart.ValueAxis xAxis, javafx.scene.chart.ValueAxis yAxis)
layoutAnnotation
in interface XYAnnotation
xAxis
- yAxis
- public void setTooltipText(String text)
text
- The tooltip text to be displayed.Copyright © 2016 Emxsys. All rights reserved.