## Uses of Class
com.orsoncharts.util.TextAnchor

- Packages that use TextAnchor
  Package | Description
  --- | ---
  com.orsoncharts.marker | Provides value and range marker support for the axes on category and XYZ plots.
  com.orsoncharts.util | General and utility classes.

- - ### Uses of TextAnchor in com.orsoncharts.marker

    Methods in com.orsoncharts.marker that return TextAnchor
    Modifier and Type | Method and Description
    --- | ---
    `protected static TextAnchor` | AbstractMarker.`deriveTextAnchor(RefPt2D refPt, boolean vflip)` A utility method that returns a suitable text anchor for a given reference point.
    `protected static TextAnchor` | AbstractMarker.`deriveTextAnchorForLine(RefPt2D refPt, boolean vflip)` A utility method that returns a suitable text anchor for a given reference point relative to a line (rather than a rectangle which is the normal case).

  - ### Uses of TextAnchor in com.orsoncharts.util

    Methods in com.orsoncharts.util that return TextAnchor
    Modifier and Type | Method and Description
    --- | ---
    `static TextAnchor` | TextAnchor.`valueOf(java.lang.String name)` 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.orsoncharts.util with parameters of type TextAnchor
    Modifier and Type | Method and Description
    --- | ---
    `static java.awt.geom.Rectangle2D` | TextUtils.`calcAlignedStringBounds(java.lang.String text, java.awt.Graphics2D g2, float x, float y, TextAnchor anchor)` Returns the bounds of an aligned string.
    `static java.awt.geom.Rectangle2D` | TextUtils.`drawAlignedString(java.lang.String text, java.awt.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, and returns a bounding rectangle for the text.
    `static java.awt.Shape` | TextUtils.`drawRotatedString(java.text.AttributedString text, java.awt.Graphics2D g2, float x, float y, TextAnchor textAnchor, double angle, TextAnchor rotationAnchor, java.awt.geom.Rectangle2D nonRotatedBounds)` Draws the attributed string aligned to the point `(x, y)`, rotated by the specified angle about `rotationAnchor`.
    `static java.awt.Shape` | TextUtils.`drawRotatedString(java.lang.String text, java.awt.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 java.awt.Shape` | TextUtils.`drawRotatedString(java.lang.String text, java.awt.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, and returns a bounding shape for the text.