public class Dimension extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Dimension |
UNDETERMINED |
protected int |
x |
protected int |
y |
| Modifier | Constructor and Description |
|---|---|
protected |
Dimension() |
|
Dimension(Dimension dim) |
|
Dimension(int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
boolean |
equalsIgnoreRound(Dimension dim,
int offset) |
int |
getArea() |
int |
getHeight() |
int |
getWidth() |
int |
hashCode() |
String |
toString() |
boolean |
valid()
Returns true of both x and y > 0.
|
public static final Dimension UNDETERMINED
protected int x
protected int y
protected Dimension()
public Dimension(int x,
int y)
public Dimension(Dimension dim)
public int getWidth()
public int getHeight()
public int getArea()
public boolean equalsIgnoreRound(Dimension dim, int offset)
public boolean valid()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}