Java org.jfree.chart.annotations XYTextAnnotation fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.chart.annotations XYTextAnnotation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.chart.annotations XYTextAnnotation.

The text is from its open source code.

Subclass

org.jfree.chart.annotations.XYTextAnnotation has subclasses.
Click this link to see all its subclasses.

Constructor

XYTextAnnotation(String text, double x, double y)
Creates a new annotation to be displayed at the given coordinates.

Method

FontgetFont()
Returns the font for the annotation.
StringgetText()
Returns the text for the annotation.
StringgetToolTipText()
Returns the tool tip text for the annotation.
doublegetX()
Returns the x coordinate for the text anchor point (measured against the domain axis).
doublegetY()
Returns the y coordinate for the text anchor point (measured against the range axis).
voidsetBackgroundPaint(Paint paint)
Sets the background paint for the annotation and sends an AnnotationChangeEvent to all registered listeners.
voidsetFont(Font font)
Sets the font for the annotation and sends an AnnotationChangeEvent to all registered listeners.
voidsetOutlineVisible(boolean visible)
Sets the flag that controls whether or not the outline is drawn and sends an AnnotationChangeEvent to all registered listeners.
voidsetPaint(Paint paint)
Sets the paint for the annotation and sends an AnnotationChangeEvent to all registered listeners.
voidsetRotationAnchor(TextAnchor anchor)
Sets the rotation anchor point and sends an AnnotationChangeEvent to all registered listeners.
voidsetRotationAngle(double angle)
Sets the rotation angle and sends an AnnotationChangeEvent to all registered listeners.
voidsetText(String text)
Sets the text for the annotation.
voidsetTextAnchor(TextAnchor anchor)
Sets the text anchor (the point on the text bounding rectangle that is aligned to the (x, y) coordinate of the annotation) and sends an AnnotationChangeEvent to all registered listeners.
voidsetToolTipText(String text)
Sets the tool tip text for the annotation.
voidsetX(double x)
Sets the x coordinate for the text anchor point (measured against the domain axis) and sends an AnnotationChangeEvent to all registered listeners.
voidsetY(double y)
Sets the y coordinate for the text anchor point (measured against the range axis) and sends an AnnotationChangeEvent to all registered listeners.