org.jfree.ui
public final class RectangleAnchor extends Object implements Serializable
Field Summary | |
---|---|
static RectangleAnchor | BOTTOM Bottom. |
static RectangleAnchor | BOTTOM_LEFT Bottom-Left. |
static RectangleAnchor | BOTTOM_RIGHT Bottom-Right. |
static RectangleAnchor | CENTER Center. |
static RectangleAnchor | LEFT Left. |
static RectangleAnchor | RIGHT Right. |
static RectangleAnchor | TOP Top. |
static RectangleAnchor | TOP_LEFT Top-Left. |
static RectangleAnchor | TOP_RIGHT Top-Right. |
Method Summary | |
---|---|
static Point2D | coordinates(Rectangle2D rectangle, RectangleAnchor anchor)
Returns the (x, y) coordinates of the specified anchor.
|
static Rectangle2D | 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) .
|
boolean | equals(Object obj)
Returns true if this object is equal to the specified
object, and false otherwise.
|
int | hashCode()
Returns a hash code value for the object.
|
String | toString()
Returns a string representing the object.
|
Parameters: rectangle the rectangle. anchor the anchor.
Returns: The (x, y) coordinates.
(anchorX, anchorY)
.
Parameters: dimensions the dimensions (null
not permitted). anchorX the x-anchor. anchorY the y-anchor. anchor the anchor (null
not permitted).
Returns: A rectangle.
true
if this object is equal to the specified
object, and false
otherwise.
Parameters: obj the other object (null
permitted).
Returns: A boolean.
Returns: The hashcode
Returns: The string.