Uses of Enum
com.orsonpdf.util.TextAnchor
Packages that use TextAnchor
-
Uses of TextAnchor in com.orsonpdf.util
Subclasses with type arguments of type TextAnchor in com.orsonpdf.utilModifier and TypeClassDescriptionenumUsed to indicate the position of an anchor point for a text string.Methods in com.orsonpdf.util that return TextAnchorModifier and TypeMethodDescriptionstatic TextAnchorReturns 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 Rectangle2DTextUtils.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 voidTextUtils.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 voidTextUtils.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.