float |
TextFragment.calculateBaselineOffset(java.awt.Graphics2D g2,
TextAnchor anchor) |
Calculates the vertical offset between the baseline and the specified
text anchor.
|
private float |
TextLine.calculateBaselineOffset(java.awt.Graphics2D g2,
TextAnchor anchor) |
Calculate the offsets required to translate from the specified anchor
position to the left baseline position.
|
static java.awt.Shape |
TextUtilities.calculateRotatedStringBounds(java.lang.String text,
java.awt.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(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[] |
TextUtilities.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[] |
TextUtilities.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.
|
void |
TextFragment.draw(java.awt.Graphics2D g2,
float anchorX,
float anchorY,
TextAnchor anchor,
float rotateX,
float rotateY,
double angle) |
Draws the text fragment.
|
void |
TextLine.draw(java.awt.Graphics2D g2,
float anchorX,
float anchorY,
TextAnchor anchor,
float rotateX,
float rotateY,
double angle) |
Draws the text line.
|
static java.awt.geom.Rectangle2D |
TextUtilities.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 |
TextUtilities.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 |
TextUtilities.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.
|