|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--irc.style.StyledRectangle
A rectangle.
| Field Summary | |
int |
height
Height. |
int |
width
Width. |
int |
x
X position. |
int |
y
Y position. |
| Constructor Summary | |
StyledRectangle(int x,
int y,
int w,
int h)
Create a new StyledRectangle. |
|
| Method Summary | |
boolean |
contains(int px,
int py)
Test wether the given point is inside the rectangle or not. |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
hit(StyledRectangle r)
Test wether the given rectangle is partially or fully inside the rectangle or not. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int x
public int y
public int width
public int height
| Constructor Detail |
public StyledRectangle(int x,
int y,
int w,
int h)
x - x position.y - y position.w - width.| Method Detail |
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public boolean contains(int px,
int py)
px - x coordinate of point to test.py - y coordinate of point to test.
public boolean hit(StyledRectangle r)
r - rectangle to test.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||