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 TextAnchorDrawStringPanel.anchorThe text anchor.private TextAnchorDrawStringPanel.rotationAnchorThe rotation anchor.Methods in org.jfree.demo that return TextAnchorModifier and TypeMethodDescriptionprivate TextAnchorDrawStringDemo.convertStringToAnchor(String text) Converts a string to a correspondingTextAnchorinstance.Methods in org.jfree.demo with parameters of type TextAnchorModifier and TypeMethodDescriptionvoidDrawStringPanel.setAnchor(TextAnchor anchor) Sets the text anchor.voidDrawStringPanel.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 TypeMethodDescriptionfloatTextFragment.calculateBaselineOffset(Graphics2D g2, TextAnchor anchor) Calculates the vertical offset between the baseline and the specified text anchor.private floatTextLine.calculateBaselineOffset(Graphics2D g2, TextAnchor anchor) Calculate the offsets required to translate from the specified anchor position to the left baseline position.static ShapeTextUtilities.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.voidTextFragment.draw(Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle) Draws the text fragment.voidTextLine.draw(Graphics2D g2, float anchorX, float anchorY, TextAnchor anchor, float rotateX, float rotateY, double angle) Draws the text line.static Rectangle2DTextUtilities.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 voidTextUtilities.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 voidTextUtilities.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 TextAnchorTextAnchor.BASELINE_CENTERBaseline/center.static final TextAnchorTextAnchor.BASELINE_LEFTBaseline/left.static final TextAnchorTextAnchor.BASELINE_RIGHTBaseline/right.static final TextAnchorTextAnchor.BOTTOM_CENTERBottom/center.static final TextAnchorTextAnchor.BOTTOM_LEFTBottom/left.static final TextAnchorTextAnchor.BOTTOM_RIGHTBottom/right.static final TextAnchorTextAnchor.CENTERMiddle/center.static final TextAnchorTextAnchor.CENTER_LEFTMiddle/left.static final TextAnchorTextAnchor.CENTER_RIGHTMiddle/right.static final TextAnchorTextAnchor.HALF_ASCENT_CENTERHalf-ascent/center.static final TextAnchorTextAnchor.HALF_ASCENT_LEFTHalf-ascent/left.static final TextAnchorTextAnchor.HALF_ASCENT_RIGHTHalf-ascent/right.static final TextAnchorTextAnchor.TOP_CENTERTop/center.static final TextAnchorTextAnchor.TOP_LEFTTop/left.static final TextAnchorTextAnchor.TOP_RIGHTTop/right.