Package | Description |
---|---|
org.jfree.text |
Utility classes relating to text.
|
Modifier and Type | Field and Description |
---|---|
static TextBlockAnchor |
TextBlockAnchor.BOTTOM_CENTER
Bottom/center.
|
static TextBlockAnchor |
TextBlockAnchor.BOTTOM_LEFT
Bottom/left.
|
static TextBlockAnchor |
TextBlockAnchor.BOTTOM_RIGHT
Bottom/right.
|
static TextBlockAnchor |
TextBlockAnchor.CENTER
Middle/center.
|
static TextBlockAnchor |
TextBlockAnchor.CENTER_LEFT
Middle/left.
|
static TextBlockAnchor |
TextBlockAnchor.CENTER_RIGHT
Middle/right.
|
static TextBlockAnchor |
TextBlockAnchor.TOP_CENTER
Top/center.
|
static TextBlockAnchor |
TextBlockAnchor.TOP_LEFT
Top/left.
|
static TextBlockAnchor |
TextBlockAnchor.TOP_RIGHT
Top/right.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Shape |
TextBlock.calculateBounds(java.awt.Graphics2D g2,
float anchorX,
float anchorY,
TextBlockAnchor anchor,
float rotateX,
float rotateY,
double angle)
Returns the bounds of the text block.
|
private float[] |
TextBlock.calculateOffsets(TextBlockAnchor anchor,
double width,
double height)
Calculates the x and y offsets required to align the text block with the
specified anchor point.
|
void |
TextBlock.draw(java.awt.Graphics2D g2,
float x,
float y,
TextBlockAnchor anchor)
Draws the text block at a specific location.
|
void |
TextBlock.draw(java.awt.Graphics2D g2,
float anchorX,
float anchorY,
TextBlockAnchor anchor,
float rotateX,
float rotateY,
double angle)
Draws the text block, aligning it with the specified anchor point and
rotating it about the specified rotation point.
|