StyledRectangle (PJIRC project)
Algne fail: vana_veeb/pjirc/doc/javadoc/irc/style/StyledRectangle.html.
========== START OF NAVBAR ==========
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
======== START OF CLASS DATA ========
irc.style
Class StyledRectangle
java.lang.Object | +--irc.style.StyledRectangle
- public class StyledRectangle
- extends java.lang.Object
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 |
x
public int x
- X position.
y
public int y
- Y position.
width
public int width
- Width.
height
public int height
- Height.
| Constructor Detail |
StyledRectangle
public StyledRectangle(int x,
int y,
int w,
int h)
- Create a new StyledRectangle.
- Parameters:
x- x position.y- y position.w- width.
| Method Detail |
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
contains
public boolean contains(int px,
int py)
- Test wether the given point is inside the rectangle or not.
- Parameters:
px- x coordinate of point to test.py- y coordinate of point to test.- Returns:
- true if the point is inside the rectangle, false otherwise.
hit
public boolean hit(StyledRectangle r)
- Test wether the given rectangle is partially or fully inside the rectangle or
not.
- Parameters:
r- rectangle to test.- Returns:
- true if r is partially or fully inside the rectangle, false otherwise.
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
