Class AnnotationTextPanel
java.lang.Object
org.knowm.xchart.internal.chartpart.Annotation
org.knowm.xchart.AnnotationTextPanel
- All Implemented Interfaces:
ChartPart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprotected doubleprotected doubleFields inherited from class Annotation
bounds, chart, isValueInScreenSpace, isVisible, stylerFields inherited from interface ChartPart
SOLID_STROKE -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationTextPanel(String lines, double x, double y, boolean isValueInScreenSpace) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprivate Map<String, Rectangle2D> getTextBounds(List<String> lines) voidvoidpaint(Graphics2D g) voidvoidsetX(double x) voidsetY(double y) Methods inherited from class Annotation
getBounds, getXAxisScreenValue, getXAxisScreenValueForMax, getXAxisScreenValueForMin, getYAxisScreenValue, getYAxisScreenValueForMax, getYAxisScreenValueForMin, setVisible
-
Field Details
-
MULTI_LINE_SPACE
private static final int MULTI_LINE_SPACE- See Also:
-
lines
-
x
protected double x -
y
protected double y
-
-
Constructor Details
-
AnnotationTextPanel
Constructor- Parameters:
lines-x-y-isValueInScreenSpace-
-
-
Method Details
-
init
- Overrides:
initin classAnnotation
-
paint
-
getTextBounds
-
setLines
-
setX
public void setX(double x) -
setY
public void setY(double y)
-