|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.ui.RectangleEdge
public final class RectangleEdge
Title: IJChart
Description: a chart library for the Java(tm) platform.
Used to indicate the edge of a rectangle.Copyright: Copyright (c) 2013
Company:
| Field Summary | |
|---|---|
static RectangleEdge |
BOTTOM
Bottom. |
static RectangleEdge |
LEFT
Left. |
static RectangleEdge |
RIGHT
Right. |
static RectangleEdge |
TOP
Top. |
| Method Summary | |
|---|---|
static double |
coordinate(java.awt.geom.Rectangle2D rectangle,
RectangleEdge edge)
Returns the x or y coordinate of the specified edge. |
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. |
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. |
java.lang.String |
toString()
Returns a string representing the object. |
void |
trim(java.awt.geom.Rectangle2D rect,
double len)
Shrinks the given rectangle by len. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final RectangleEdge TOP
public static final RectangleEdge BOTTOM
public static final RectangleEdge LEFT
public static final RectangleEdge RIGHT
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic static boolean isTopOrBottom(RectangleEdge edge)
edge -
the edge.
public static boolean isLeftOrRight(RectangleEdge edge)
edge -
the edge.
public static RectangleEdge opposite(RectangleEdge edge)
edge -
the edge.
public static double coordinate(java.awt.geom.Rectangle2D rectangle,
RectangleEdge edge)
rectangle -
The rectangle (null not permitted).edge -
The edge (null not permitted).
public void trim(java.awt.geom.Rectangle2D rect,
double len)
rect - Rectangle2D
The rectangle (null not permitted).len - double
The length,must be greater than or equal to 0public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the other object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||