Uses of Class
org.jfree.ui.TextAnchor
-
Packages that use TextAnchor Package Description org.jfree.demo Demo code for the JCommon class library.org.jfree.text Utility classes relating to text.org.jfree.ui Utility classes for creating user interfaces. -
-
Uses of TextAnchor in org.jfree.demo
Methods in org.jfree.demo with parameters of type TextAnchor Modifier and Type Method Description void
DrawStringPanel. setAnchor(TextAnchor anchor)
Sets the text anchor.void
DrawStringPanel. setRotationAnchor(TextAnchor anchor)
Sets the rotation anchor. -
Uses of TextAnchor in org.jfree.text
Methods in org.jfree.text with parameters of type TextAnchor Modifier and Type Method Description float
TextFragment. calculateBaselineOffset(Graphics2D g2, TextAnchor anchor)
Calculates the vertical offset between the baseline and the specified text anchor.static Shape
TextUtilities. calculateRotatedStringBounds(String text, Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, TextAnchor rotationAnchor)
Returns a shape that represents the bounds of the string after the specified rotation has been applied.void
TextFragment. draw(Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle)
Draws the text fragment.void
TextLine. draw(Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle)
Draws the text line.static Rectangle2D
TextUtilities. drawAlignedString(String text, Graphics2D g2, float x, float y, TextAnchor anchor)
Draws a string such that the specified anchor point is aligned to the given (x, y) location.static void
TextUtilities. drawRotatedString(String text, Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, float rotationX, float rotationY)
Draws a string that is aligned by one anchor point and rotated about another anchor point.static void
TextUtilities. drawRotatedString(String text, Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, TextAnchor rotationAnchor)
Draws a string that is aligned by one anchor point and rotated about another anchor point. -
Uses of TextAnchor in org.jfree.ui
Fields in org.jfree.ui declared as TextAnchor Modifier and Type Field Description static TextAnchor
TextAnchor. BASELINE_CENTER
Baseline/center.static TextAnchor
TextAnchor. BASELINE_LEFT
Baseline/left.static TextAnchor
TextAnchor. BASELINE_RIGHT
Baseline/right.static TextAnchor
TextAnchor. BOTTOM_CENTER
Bottom/center.static TextAnchor
TextAnchor. BOTTOM_LEFT
Bottom/left.static TextAnchor
TextAnchor. BOTTOM_RIGHT
Bottom/right.static TextAnchor
TextAnchor. CENTER
Middle/center.static TextAnchor
TextAnchor. CENTER_LEFT
Middle/left.static TextAnchor
TextAnchor. CENTER_RIGHT
Middle/right.static TextAnchor
TextAnchor. HALF_ASCENT_CENTER
Half-ascent/center.static TextAnchor
TextAnchor. HALF_ASCENT_LEFT
Half-ascent/left.static TextAnchor
TextAnchor. HALF_ASCENT_RIGHT
Half-ascent/right.static TextAnchor
TextAnchor. TOP_CENTER
Top/center.static TextAnchor
TextAnchor. TOP_LEFT
Top/left.static TextAnchor
TextAnchor. TOP_RIGHT
Top/right.
-