|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.graphics.Dimension
Dimension Class.
NOTE: This class is immutable.
Field Summary | |
static Dimension |
INFINITE_DIMESNION
Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE) object. |
static Dimension |
ZERO_DIMESNION
Dimension(0, 0) object. |
Constructor Summary | |
Dimension()
Constructs new Dimension object. |
|
Dimension(int width,
int height)
Constructs new Dimension object. |
Method Summary | |
Dimension |
enlarge(int dw,
int dh)
Returns enlarged dimension. |
boolean |
equals(java.lang.Object obj)
|
int |
getHeight()
Returns the height of this dimension. |
int |
getWidth()
Returns the width of this dimension. |
int |
hashCode()
|
boolean |
isNull()
Returns true if both the width and height is 0. |
boolean |
isValid()
Returns true if both the width and height is equal to or greater than 0. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Dimension ZERO_DIMESNION
public static final Dimension INFINITE_DIMESNION
Constructor Detail |
public Dimension()
public Dimension(int width, int height)
width
- the widthheight
- the heightMethod Detail |
public int getWidth()
public int getHeight()
public boolean isNull()
public boolean isValid()
public Dimension enlarge(int dw, int dh)
dw
- the width enlargementdh
- the height enlargement
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |