Uses of Enum
com.orsonpdf.util.TextAnchor
Packages that use TextAnchor
-
Uses of TextAnchor in com.orsonpdf.util
Methods in com.orsonpdf.util that return TextAnchorModifier and TypeMethodDescriptionstatic TextAnchor
Returns the enum constant of this type with the specified name.static TextAnchor[]
TextAnchor.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.orsonpdf.util with parameters of type TextAnchorModifier and TypeMethodDescriptionprivate static float[]
TextUtils.deriveRotationAnchorOffsets
(Graphics2D g2, String text, TextAnchor anchor) A utility method that calculates the rotation anchor offsets for a string.private static float[]
TextUtils.deriveTextBoundsAnchorOffsets
(Graphics2D g2, String text, TextAnchor anchor) A utility method that calculates the anchor offsets for a string.private static float[]
TextUtils.deriveTextBoundsAnchorOffsets
(Graphics2D g2, String text, TextAnchor anchor, Rectangle2D textBounds) A utility method that calculates the anchor offsets for a string.static Rectangle2D
TextUtils.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
TextUtils.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
TextUtils.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.