|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Dimension2D
vooga.gameEngine.core.Dimension
public class Dimension
A Dimension
object encapsulates the width and height of a
GameRelatedObject
(in double precision).
Constructor Summary | |
---|---|
Dimension()
Default constructor; creates a new Dimension object with a
width = 0 and height = 0. |
|
Dimension(double width,
double height)
Creates a Dimension given its width and height component |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
double |
getHeight()
|
int |
getIntHeight()
Returns the height of this Dimension in integer precision. |
int |
getIntWidth()
Returns the width of this Dimension in integer precision. |
double |
getWidth()
|
void |
resize(double dx,
double dy)
Resizes this Dimension , dx in the X direction and
dy in the Y direction. |
void |
setSize(double width,
double height)
|
Methods inherited from class java.awt.geom.Dimension2D |
---|
setSize |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dimension()
Dimension
object with a
width = 0 and height = 0.
public Dimension(double width, double height)
Dimension
given its width and height component
width
- the width componentheight
- the height componentMethod Detail |
---|
public java.lang.Object clone()
clone
in class java.awt.geom.Dimension2D
public double getWidth()
getWidth
in class java.awt.geom.Dimension2D
public double getHeight()
getHeight
in class java.awt.geom.Dimension2D
public int getIntWidth()
Dimension
in integer precision.
Dimension
public int getIntHeight()
Dimension
in integer precision.
Dimension
public void setSize(double width, double height)
setSize
in class java.awt.geom.Dimension2D
public void resize(double dx, double dy)
Dimension
, dx in the X direction and
dy in the Y direction.
dx
- amount to resize in Xdy
- amount to resize in Y
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |