|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcharva.awt.Point
Represents a point in (x,y) coordinate space, with integer precision.
| Field Summary | |
int |
x
|
int |
y
|
| Constructor Summary | |
Point(int x_,
int y_)
|
|
Point(Point point_)
|
|
| Method Summary | |
Point |
addOffset(Dimension d_)
|
Point |
addOffset(int x_,
int y_)
|
Point |
addOffset(Point p_)
|
java.lang.Object |
clone()
|
boolean |
equals(Point other_)
Returns true is this Point is equal to the specified Point. |
boolean |
isInside(Rectangle rect_)
Returns true if this point is inside the specified rectangle. |
Point |
subtractOffset(Point p)
|
java.lang.String |
toString()
|
void |
translate(int dx_,
int dy_)
Translates this point by dx_ along the x axis and by dy_ along the y axis. |
void |
translate(Point point_)
Translates this point by the x and y values given in "point_" |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int x
public int y
| Constructor Detail |
public Point(int x_,
int y_)
public Point(Point point_)
| Method Detail |
public Point addOffset(Point p_)
public Point addOffset(Dimension d_)
public Point addOffset(int x_,
int y_)
public Point subtractOffset(Point p)
public void translate(int dx_,
int dy_)
public void translate(Point point_)
public boolean isInside(Rectangle rect_)
public boolean equals(Point other_)
public java.lang.String toString()
public java.lang.Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||