public class XYLineAnnotation extends Object implements XYAnnotation
Constructor and Description |
---|
XYLineAnnotation(double x1,
double y1,
double x2,
double y2)
Constructs a line annotation drawn with CSS styles.
|
XYLineAnnotation(double x1,
double y1,
double x2,
double y2,
Double strokeWidth,
javafx.scene.paint.Paint color)
Constructs a line annotation from the given X,Y values.
|
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 of the line.
|
public XYLineAnnotation(double x1, double y1, double x2, double y2, Double strokeWidth, javafx.scene.paint.Paint color)
x1
- Starting X value.y1
- Starting Y value.x2
- Ending X value.y2
- Ending Y value.strokeWidth
- color
- public XYLineAnnotation(double x1, double y1, double x2, double y2)
x1
- y1
- x2
- y2
- 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
- Copyright © 2016 Emxsys. All rights reserved.