public final class Position
extends java.lang.Object
Constructor and Description |
---|
Position(int x,
int y)
Creates a new position
|
Modifier and Type | Method and Description |
---|---|
static Position |
add(Position... addends) |
static Position |
convert(Dimension dimension) |
boolean |
equals(java.lang.Object obj) |
int |
getAbsoluteValue()
Gets the absolute value of the position.
|
int |
getX()
Gets the x coordinate
|
int |
getY()
Gets the y coordinate
|
int |
hashCode() |
static Position |
subtract(Position minuend,
Position subtrahend) |
java.lang.String |
toString() |
public Position(int x, int y)
x
- The x coordinatey
- The y coordinatepublic int getX()
public int getY()
public int getAbsoluteValue()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Siehe auch Jowidgets Nutzerhandbuch