| java.lang.Object org.jfree.ui.RectangleAnchor
RectangleAnchor | final public class RectangleAnchor implements Serializable(Code) | | Used to indicate an anchor point for a rectangle.
author: David Gilbert |
Method Summary | |
public static Point2D | coordinates(Rectangle2D rectangle, RectangleAnchor anchor) Returns the (x, y) coordinates of the specified anchor.
Parameters: rectangle - the rectangle. Parameters: anchor - the anchor. | public 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) .
Parameters: dimensions - the dimensions (null not permitted). Parameters: anchorX - the x-anchor. Parameters: anchorY - the y-anchor. Parameters: anchor - the anchor (null not permitted). | public boolean | equals(Object obj) Returns true if this object is equal to the specified
object, and false otherwise.
Parameters: obj - the other object (null permitted). | public int | hashCode() Returns a hash code value for the object. | public String | toString() Returns a string representing the object. |
coordinates | public static Point2D coordinates(Rectangle2D rectangle, RectangleAnchor anchor)(Code) | | Returns the (x, y) coordinates of the specified anchor.
Parameters: rectangle - the rectangle. Parameters: anchor - the anchor. The (x, y) coordinates. |
createRectangle | public static Rectangle2D createRectangle(Size2D dimensions, double anchorX, double anchorY, RectangleAnchor anchor)(Code) | | Creates a new rectangle with the specified dimensions that is aligned to
the given anchor point (anchorX, anchorY) .
Parameters: dimensions - the dimensions (null not permitted). Parameters: anchorX - the x-anchor. Parameters: anchorY - the y-anchor. Parameters: anchor - the anchor (null not permitted). A rectangle. |
equals | public boolean equals(Object obj)(Code) | | Returns true if this object is equal to the specified
object, and false otherwise.
Parameters: obj - the other object (null permitted). A boolean. |
hashCode | public int hashCode()(Code) | | Returns a hash code value for the object.
The hashcode |
toString | public String toString()(Code) | | Returns a string representing the object.
The string. |
|
|