|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.ui.RectangleAnchor
Used to indicate an anchor point for a rectangle.
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 double[] |
coordinates(java.awt.geom.Rectangle2D rectangle,
RectangleAnchor anchor)
Returns the (x, y) coordinates of the specified anchor. |
static java.awt.geom.Rectangle2D |
createRectangle(Size2D dimensions,
double anchorX,
double anchorY,
RectangleAnchor anchor)
Creates a new rectangle. |
boolean |
equals(java.lang.Object o)
Returns true if this object is equal to the specified object, and
false otherwise. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representing the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final RectangleAnchor CENTER
public static final RectangleAnchor TOP
public static final RectangleAnchor TOP_LEFT
public static final RectangleAnchor TOP_RIGHT
public static final RectangleAnchor BOTTOM
public static final RectangleAnchor BOTTOM_LEFT
public static final RectangleAnchor BOTTOM_RIGHT
public static final RectangleAnchor LEFT
public static final RectangleAnchor RIGHT
Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object o)
true
if this object is equal to the specified object, and
false
otherwise.
o
- the other object.
public int hashCode()
public static double[] coordinates(java.awt.geom.Rectangle2D rectangle, RectangleAnchor anchor)
rectangle
- the rectangle.anchor
- the anchor.
public static java.awt.geom.Rectangle2D createRectangle(Size2D dimensions, double anchorX, double anchorY, RectangleAnchor anchor)
dimensions
- the dimensions.anchorX
- the x-anchor.anchorY
- the y-anchor.anchor
- the anchor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |