|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lwjgl.util.Dimension
public final class Dimension
A 2D integer Dimension class, which looks remarkably like an AWT one.
| Constructor Summary | |
|---|---|
Dimension()
Constructor for Dimension. |
|
Dimension(int w,
int h)
Constructor for Dimension. |
|
Dimension(ReadableDimension d)
Constructor for Dimension. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks whether two dimension objects have equal values. |
int |
getHeight()
Gets the height. |
void |
getSize(WritableDimension dest)
Copy this ReadableDimension into a destination Dimension |
int |
getWidth()
Gets the width. |
int |
hashCode()
Returns the hash code for this Dimension. |
void |
setHeight(int height)
Sets the height. |
void |
setSize(int w,
int h)
|
void |
setSize(ReadableDimension d)
|
void |
setWidth(int width)
Sets the width. |
java.lang.String |
toString()
Returns a string representation of the values of this Dimension object's height and
width fields. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dimension()
public Dimension(int w,
int h)
public Dimension(ReadableDimension d)
| Method Detail |
|---|
public void setSize(int w,
int h)
setSize in interface WritableDimensionpublic void setSize(ReadableDimension d)
setSize in interface WritableDimensionpublic void getSize(WritableDimension dest)
ReadableDimension
getSize in interface ReadableDimensiondest - The destinationpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
Dimension.
hashCode in class java.lang.ObjectDimensionpublic java.lang.String toString()
Dimension object's height and
width fields. This method is intended to be used only
for debugging purposes, and the content and format of the returned
string may vary between implementations. The returned string may be
empty but may not be null.
toString in class java.lang.ObjectDimension
objectpublic int getHeight()
getHeight in interface ReadableDimensionpublic void setHeight(int height)
setHeight in interface WritableDimensionheight - The height to setpublic int getWidth()
getWidth in interface ReadableDimensionpublic void setWidth(int width)
setWidth in interface WritableDimensionwidth - The width to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||