Methods Summary |
---|
public int | describeContents()Parcelable interface methods
return 0;
|
public final boolean | equals(int x, int y)Returns true if the point's coordinates equal (x,y)
return this.x == x && this.y == y;
|
public boolean | equals(java.lang.Object o)
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Point point = (Point) o;
if (x != point.x) return false;
if (y != point.y) return false;
return true;
|
public int | hashCode()
int result = x;
result = 31 * result + y;
return result;
|
public final void | negate()Negate the point's coordinates
x = -x;
y = -y;
|
public final void | offset(int dx, int dy)Offset the point's coordinates by dx, dy
x += dx;
y += dy;
|
public void | readFromParcel(android.os.Parcel in)Set the point's coordinates from the data stored in the specified
parcel. To write a point to a parcel, call writeToParcel().
x = in.readInt();
y = in.readInt();
|
public void | set(int x, int y)Set the point's x and y coordinates
this.x = x;
this.y = y;
|
public java.lang.String | toString()
return "Point(" + x + ", " + y + ")";
|
public void | writeToParcel(android.os.Parcel out, int flags)Write this point to the specified parcel. To restore a point from
a parcel, use readFromParcel()
out.writeInt(x);
out.writeInt(y);
|