|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.graphics.Point
public class Point
Point holds two integer coordinates
| Field Summary | |
|---|---|
int |
x
|
int |
y
|
| Constructor Summary | |
|---|---|
Point()
|
|
Point(int x,
int y)
|
|
Point(Point src)
|
|
| Method Summary | |
|---|---|
boolean |
equals(int x,
int y)
Returns true if the point's coordinates equal (x,y) |
boolean |
equals(Object o)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
int |
hashCode()
Returns an integer hash code for the receiver. |
void |
negate()
Negate the point's coordinates |
void |
offset(int dx,
int dy)
Offset the point's coordinates by dx, dy |
void |
set(int x,
int y)
Set the point's x and y coordinates |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int x
public int y
| Constructor Detail |
|---|
public Point()
public Point(int x,
int y)
public Point(Point src)
| Method Detail |
|---|
public void set(int x,
int y)
public final void negate()
public final void offset(int dx,
int dy)
public final boolean equals(int x,
int y)
public boolean equals(Object o)
Object
equals in class Objecto - Object the object to compare with this object.
true if the object is the same as this
object false if it is different from this object.Object.hashCode()public int hashCode()
Objecttrue when passed to .equals must
answer the same value for this method.
hashCode in class ObjectObject.equals(java.lang.Object)public String toString()
Object
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||