org.jfree.ui
Class RectangleEdge
java.lang.Object
org.jfree.ui.RectangleEdge
- Serializable
extends java.lang.Object
implements Serializable
Used to indicate the edge of a rectangle.
coordinate
public static double coordinate(Rectangle2D rectangle,
RectangleEdge edge)
Returns the x or y coordinate of the specified edge.
rectangle
- the rectangle.edge
- the edge.
equals
public boolean equals(Object o)
Returns true
if this object is equal to the specified
object, and false
otherwise.
hashCode
public int hashCode()
Returns a hash code value for the object.
isLeftOrRight
public static boolean isLeftOrRight(RectangleEdge edge)
Returns true
if the edge is LEFT
or
RIGHT
, and false
otherwise.
isTopOrBottom
public static boolean isTopOrBottom(RectangleEdge edge)
Returns true
if the edge is TOP
or
BOTTOM
, and false
otherwise.
toString
public String toString()
Returns a string representing the object.