Package | Description |
---|---|
org.jfree.demo |
Demo code for the JCommon class library.
|
org.jfree.text |
Utility classes relating to text.
|
org.jfree.ui |
Utility classes for creating user interfaces.
|
Modifier and Type | Method and Description |
---|---|
void |
DrawStringPanel.setAnchor(TextAnchor anchor)
Sets the text anchor.
|
void |
DrawStringPanel.setRotationAnchor(TextAnchor anchor)
Sets the rotation anchor.
|
Modifier and Type | Method and Description |
---|---|
float |
TextFragment.calculateBaselineOffset(Graphics2D g2,
TextAnchor anchor)
Calculates the vertical offset between the baseline and the specified
text anchor.
|
static Shape |
TextUtilities.calculateRotatedStringBounds(String text,
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.
|
void |
TextLine.draw(Graphics2D g2,
float anchorX,
float anchorY,
TextAnchor anchor,
float rotateX,
float rotateY,
double angle)
Draws the text line.
|
void |
TextFragment.draw(Graphics2D g2,
float anchorX,
float anchorY,
TextAnchor anchor,
float rotateX,
float rotateY,
double angle)
Draws the text fragment.
|
static Rectangle2D |
TextUtilities.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 |
TextUtilities.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 |
TextUtilities.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.
|
Modifier and Type | Field and Description |
---|---|
static TextAnchor |
TextAnchor.BASELINE_CENTER
Baseline/center.
|
static TextAnchor |
TextAnchor.BASELINE_LEFT
Baseline/left.
|
static TextAnchor |
TextAnchor.BASELINE_RIGHT
Baseline/right.
|
static TextAnchor |
TextAnchor.BOTTOM_CENTER
Bottom/center.
|
static TextAnchor |
TextAnchor.BOTTOM_LEFT
Bottom/left.
|
static TextAnchor |
TextAnchor.BOTTOM_RIGHT
Bottom/right.
|
static TextAnchor |
TextAnchor.CENTER
Middle/center.
|
static TextAnchor |
TextAnchor.CENTER_LEFT
Middle/left.
|
static TextAnchor |
TextAnchor.CENTER_RIGHT
Middle/right.
|
static TextAnchor |
TextAnchor.HALF_ASCENT_CENTER
Half-ascent/center.
|
static TextAnchor |
TextAnchor.HALF_ASCENT_LEFT
Half-ascent/left.
|
static TextAnchor |
TextAnchor.HALF_ASCENT_RIGHT
Half-ascent/right.
|
static TextAnchor |
TextAnchor.TOP_CENTER
Top/center.
|
static TextAnchor |
TextAnchor.TOP_LEFT
Top/left.
|
static TextAnchor |
TextAnchor.TOP_RIGHT
Top/right.
|
Copyright © 2001–2018 JFree.org. All rights reserved.