public class XYTextAnnotation extends Object implements XYAnnotation
Constructor and Description |
---|
XYTextAnnotation(String text,
double x,
double y)
Constructs a text annotation centered on the given x,y.
|
XYTextAnnotation(String text,
double x,
double y,
javafx.geometry.Pos textAnchor)
Constructs a text annotation.
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.Node |
getNode()
Gets the node representation.
|
javafx.geometry.Pos |
getTextAnchor()
Gets the anchor point for the label.
|
void |
layoutAnnotation(javafx.scene.chart.ValueAxis xAxis,
javafx.scene.chart.ValueAxis yAxis)
Performs the layout for the label.
|
protected void |
layoutText() |
void |
setText(String text)
Sets the text for the label.
|
void |
setTextAnchor(javafx.geometry.Pos textAnchor)
Sets the anchor point for the label, which establishes the part of the label that will be
anchored to the annotation's x,y.
|
public XYTextAnnotation(String text, double x, double y)
text
- x
- y
- public XYTextAnnotation(String text, double x, double y, javafx.geometry.Pos textAnchor)
text
- x
- y
- textAnchor
- 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
- protected void layoutText()
public void setText(String text)
text
- The new text.public javafx.geometry.Pos getTextAnchor()
public void setTextAnchor(javafx.geometry.Pos textAnchor)
textAnchor
- The new anchor position.Copyright © 2016 Emxsys. All rights reserved.