|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
totalcross.lang.Objecttotalcross.ui.gfx.Coord
public class Coord
Coord is a coordinate with x and y values.
| Field Summary | |
|---|---|
int |
x
x position |
int |
y
y position |
| Constructor Summary | |
|---|---|
Coord()
Constructs a coordinate with x = y = 0. |
|
Coord(int x,
int y)
Constructs a coordinate with the given x, y. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Returns true if the coordinates of this Coord and the given one are the same |
int |
hashCode()
Returns the hashcode: x<<16 | y |
int |
height()
return's y. just to make sense in getSize like methods |
String |
toString()
|
void |
translate(int dx,
int dy)
Translates the current coordinate making x += dx and y += dy |
int |
width()
return's x. just to make sense in getSize like methods |
| Methods inherited from class totalcross.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int x
public int y
| Constructor Detail |
|---|
public Coord()
public Coord(int x,
int y)
| Method Detail |
|---|
public void translate(int dx,
int dy)
public int width()
public int height()
public String toString()
public boolean equals(Object other)
public int hashCode()
hashCode in class totalcross.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||