apps.lightrays.gfxlib
Class DrawableRectangle

java.lang.Object
  extended by apps.lightrays.gfxlib.DrawableElement
      extended by apps.lightrays.gfxlib.DrawableRectangle

public class DrawableRectangle
extends DrawableElement

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

DrawableRectangle

public DrawableRectangle(int width,
                         int height)
Instantiates a new drawable rectangle.

Parameters:
width - the width
height - the height
Method Detail

draw

public void draw(java.awt.Graphics2D gfx,
                 long tick_count)
Description copied from class: DrawableElement
Draw.

Specified by:
draw in class DrawableElement
Parameters:
gfx - the gfx
tick_count - the tick_count

getHeight

public int getHeight()
Gets the height.

Returns:
the height

getWidth

public int getWidth()
Gets the width.

Returns:
the width

getWidth_half

public int getWidth_half()
Gets the width_half.

Returns:
the width_half

setHeight

public void setHeight(int height)
Sets the height.

Parameters:
height - the new height