public class XYPolygonAnnotation extends Object implements XYAnnotation
Constructor and Description |
---|
XYPolygonAnnotation(double[] xyValues)
Constructs a polygon annotation that uses CSS styles for stroke and colors.
|
XYPolygonAnnotation(double[] xyValues,
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.
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.Node |
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 XYPolygonAnnotation(double[] xyValues, Double strokeWidth, javafx.scene.paint.Paint outlinePaint, javafx.scene.paint.Paint fillPaint)
xyValues
- strokeWidth
- outlinePaint
- fillPaint
- public XYPolygonAnnotation(double[] xyValues)
xyValues
- public javafx.scene.Node 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.