org.jfree.ui
public final class RectangleEdge extends Object implements Serializable
Field Summary | |
---|---|
static RectangleEdge | BOTTOM Bottom. |
static RectangleEdge | LEFT Left. |
static RectangleEdge | RIGHT Right. |
static RectangleEdge | TOP Top. |
Method Summary | |
---|---|
static double | coordinate(Rectangle2D rectangle, RectangleEdge edge)
Returns the x or y coordinate of the specified edge.
|
boolean | equals(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.
|
static boolean | isLeftOrRight(RectangleEdge edge)
Returns true if the edge is LEFT or
RIGHT , and false otherwise.
|
static boolean | isTopOrBottom(RectangleEdge edge)
Returns true if the edge is TOP or
BOTTOM , and false otherwise.
|
static RectangleEdge | opposite(RectangleEdge edge)
Returns the opposite edge.
|
String | toString()
Returns a string representing the object.
|
Parameters: rectangle the rectangle. edge the edge.
Returns: The coordinate.
true
if this object is equal to the specified
object, and false
otherwise.
Parameters: o the other object.
Returns: A boolean.
Returns: the hashcode
true
if the edge is LEFT
or
RIGHT
, and false
otherwise.
Parameters: edge the edge.
Returns: A boolean.
true
if the edge is TOP
or
BOTTOM
, and false
otherwise.
Parameters: edge the edge.
Returns: A boolean.
Parameters: edge an edge.
Returns: The opposite edge.
Returns: The string.