public class Dimension extends Object implements Cloneable, DimensionImmutable
| Constructor and Description |
|---|
Dimension() |
Dimension(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
Dimension |
add(Dimension pd) |
Object |
clone() |
Object |
cloneMutable() |
boolean |
equals(Object obj)
Checks whether two dimensions objects are equal.
|
int |
getHeight() |
int |
getWidth() |
int |
hashCode() |
Dimension |
scale(int s) |
void |
setHeight(int height) |
void |
setWidth(int width) |
String |
toString() |
public Object cloneMutable()
cloneMutable in interface com.jogamp.common.type.WriteCloneablepublic int getWidth()
getWidth in interface DimensionImmutablepublic int getHeight()
getHeight in interface DimensionImmutablepublic void setWidth(int width)
public void setHeight(int height)
public Dimension scale(int s)
public boolean equals(Object obj)
DimensionImmutableDimensionReadOnly are equal if two components
height and width are equal.equals in interface DimensionImmutableequals in class Objecttrue if the two dimensions are equal;
otherwise false.public int hashCode()
hashCode in interface DimensionImmutablehashCode in class ObjectCopyright 2010 JogAmp Community.