private static float[] |
TextUtils.deriveRotationAnchorOffsets(java.awt.Graphics2D g2,
java.lang.String text,
TextAnchor anchor) |
A utility method that calculates the rotation anchor offsets for a
string.
|
private static float[] |
TextUtils.deriveTextBoundsAnchorOffsets(java.awt.Graphics2D g2,
java.lang.String text,
TextAnchor anchor) |
A utility method that calculates the anchor offsets for a string.
|
private static float[] |
TextUtils.deriveTextBoundsAnchorOffsets(java.awt.Graphics2D g2,
java.lang.String text,
TextAnchor anchor,
java.awt.geom.Rectangle2D textBounds) |
A utility method that calculates the anchor offsets for a 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.
|
static void |
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 void |
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.
|