|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.swing.LocationRectangle
public class LocationRectangle
Defines a rectangle in terms of its coordinates.
Field Summary | |
---|---|
int |
x1
(x,y) coordinates of upper left-hand corner. |
int |
x2
(x,y) coordinates of lower right-hand corner. |
int |
y1
|
int |
y2
|
Constructor Summary | |
---|---|
LocationRectangle()
Create an empty location rectangle. |
|
LocationRectangle(int x1,
int y1,
int x2,
int y2)
Create a location rectangle from specified coordinates. |
|
LocationRectangle(LocationRectangle locationRectangle)
Create a location rectangle from another location rectangle. |
Method Summary | |
---|---|
boolean |
equals(LocationRectangle locationRectangle)
Check if another LocationRectangle is equal to this. |
java.lang.String |
toString()
Display form of location rectangle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int x1
public int y1
public int x2
public int y2
Constructor Detail |
---|
public LocationRectangle()
public LocationRectangle(int x1, int y1, int x2, int y2)
x1
- Upper left x coordinate.y1
- Upper left y coordinate.x2
- Lower right x coordinate.y2
- Lower right y coordinate. public LocationRectangle(LocationRectangle locationRectangle)
locationRectangle
- Location rectangle from which to
copy settings. Method Detail |
---|
public boolean equals(LocationRectangle locationRectangle)
locationRectangle
- The other location rectangle. public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |