Package | Description |
---|---|
org.jfree.text |
Utility classes relating to text.
|
org.jfree.ui |
Utility classes for creating user interfaces.
|
org.jfree.util |
General utility classes.
|
Modifier and Type | Method and Description |
---|---|
void |
TextBox.draw(Graphics2D g2,
float x,
float y,
RectangleAnchor anchor)
Draws the text box.
|
Modifier and Type | Field and Description |
---|---|
static RectangleAnchor |
RectangleAnchor.BOTTOM
Bottom.
|
static RectangleAnchor |
RectangleAnchor.BOTTOM_LEFT
Bottom-Left.
|
static RectangleAnchor |
RectangleAnchor.BOTTOM_RIGHT
Bottom-Right.
|
static RectangleAnchor |
RectangleAnchor.CENTER
Center.
|
static RectangleAnchor |
RectangleAnchor.LEFT
Left.
|
static RectangleAnchor |
RectangleAnchor.RIGHT
Right.
|
static RectangleAnchor |
RectangleAnchor.TOP
Top.
|
static RectangleAnchor |
RectangleAnchor.TOP_LEFT
Top-Left.
|
static RectangleAnchor |
RectangleAnchor.TOP_RIGHT
Top-Right.
|
Modifier and Type | Method and Description |
---|---|
static Point2D |
RectangleAnchor.coordinates(Rectangle2D rectangle,
RectangleAnchor anchor)
Returns the (x, y) coordinates of the specified anchor.
|
static Rectangle2D |
RectangleAnchor.createRectangle(Size2D dimensions,
double anchorX,
double anchorY,
RectangleAnchor anchor)
Creates a new rectangle with the specified dimensions that is aligned to
the given anchor point
(anchorX, anchorY) . |
Modifier and Type | Method and Description |
---|---|
static Shape |
ShapeUtilities.createTranslatedShape(Shape shape,
RectangleAnchor anchor,
double locationX,
double locationY)
Translates a shape to a new location such that the anchor point
(relative to the rectangular bounds of the shape) aligns with the
specified (x, y) coordinate in Java2D space.
|
Copyright © 2001–2018 JFree.org. All rights reserved.