Uses of Class
org.jfree.ui.TextAnchor
Packages that use TextAnchor
Package
Description
Demo code for the JCommon class library.
Utility classes relating to text.
Utility classes for creating user interfaces.
-
Uses of TextAnchor in org.jfree.demo
Fields in org.jfree.demo declared as TextAnchorModifier and TypeFieldDescriptionprivate TextAnchor
DrawStringPanel.anchor
The text anchor.private TextAnchor
DrawStringPanel.rotationAnchor
The rotation anchor.Methods in org.jfree.demo that return TextAnchorModifier and TypeMethodDescriptionprivate TextAnchor
DrawStringDemo.convertStringToAnchor
(String text) Converts a string to a correspondingTextAnchor
instance.Methods in org.jfree.demo with parameters of type TextAnchorModifier and TypeMethodDescriptionvoid
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 TextAnchorModifier and TypeMethodDescriptionfloat
TextFragment.calculateBaselineOffset
(Graphics2D g2, TextAnchor anchor) Calculates the vertical offset between the baseline and the specified text anchor.private float
TextLine.calculateBaselineOffset
(Graphics2D g2, TextAnchor anchor) Calculate the offsets required to translate from the specified anchor position to the left baseline position.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.private static float[]
TextUtilities.deriveRotationAnchorOffsets
(Graphics2D g2, String text, TextAnchor anchor) A utility method that calculates the rotation anchor offsets for a string.private static float[]
TextUtilities.deriveTextBoundsAnchorOffsets
(Graphics2D g2, String text, TextAnchor anchor) A utility method that calculates the anchor offsets for a string.private static float[]
TextUtilities.deriveTextBoundsAnchorOffsets
(Graphics2D g2, String text, TextAnchor anchor, Rectangle2D textBounds) A utility method that calculates the anchor offsets for a string.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 TextAnchorModifier and TypeFieldDescriptionstatic final TextAnchor
TextAnchor.BASELINE_CENTER
Baseline/center.static final TextAnchor
TextAnchor.BASELINE_LEFT
Baseline/left.static final TextAnchor
TextAnchor.BASELINE_RIGHT
Baseline/right.static final TextAnchor
TextAnchor.BOTTOM_CENTER
Bottom/center.static final TextAnchor
TextAnchor.BOTTOM_LEFT
Bottom/left.static final TextAnchor
TextAnchor.BOTTOM_RIGHT
Bottom/right.static final TextAnchor
TextAnchor.CENTER
Middle/center.static final TextAnchor
TextAnchor.CENTER_LEFT
Middle/left.static final TextAnchor
TextAnchor.CENTER_RIGHT
Middle/right.static final TextAnchor
TextAnchor.HALF_ASCENT_CENTER
Half-ascent/center.static final TextAnchor
TextAnchor.HALF_ASCENT_LEFT
Half-ascent/left.static final TextAnchor
TextAnchor.HALF_ASCENT_RIGHT
Half-ascent/right.static final TextAnchor
TextAnchor.TOP_CENTER
Top/center.static final TextAnchor
TextAnchor.TOP_LEFT
Top/left.static final TextAnchor
TextAnchor.TOP_RIGHT
Top/right.