|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.lightrays.gfxlib.DrawableElement
apps.lightrays.gfxlib.DrawableRectangle
public class DrawableRectangle
The Class DrawableRectangle.
Constructor Summary | |
---|---|
DrawableRectangle(int width,
int height)
Instantiates a new drawable rectangle. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D gfx,
long tick_count)
Draw. |
int |
getHeight()
Gets the height. |
int |
getWidth_half()
Gets the width_half. |
int |
getWidth()
Gets the width. |
void |
setHeight(int height)
Sets the height. |
Methods inherited from class apps.lightrays.gfxlib.DrawableElement |
---|
getC, getOpacity, getX, getY, getZ, setC, setOpacity, setX, setY, setZ |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawableRectangle(int width, int height)
width
- the widthheight
- the heightMethod Detail |
---|
public void draw(java.awt.Graphics2D gfx, long tick_count)
DrawableElement
draw
in class DrawableElement
gfx
- the gfxtick_count
- the tick_countpublic int getHeight()
public int getWidth()
public int getWidth_half()
public void setHeight(int height)
height
- the new height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |