public class Point
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
Point(int x_,
int y_) |
Point(Point point_) |
Modifier and Type | Method and Description |
---|---|
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_"
|
public Point(int x_, int y_)
public Point(Point point_)
public Point addOffset(int x_, int y_)
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()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object