apps.lightrays.gfxlib
Class DrawableElement

java.lang.Object
  extended by apps.lightrays.gfxlib.DrawableElement
Direct Known Subclasses:
AnimatedBackground, DrawableBackgroundColour, DrawableRectangle, DrawableStack, DrawableString, GraphicalSwitch

public abstract class DrawableElement
extends java.lang.Object

The Class DrawableElement.


Constructor Summary
DrawableElement()
          Instantiates a new drawable element.
 
Method Summary
abstract  void draw(java.awt.Graphics2D gfx, long tick_count)
          Draw.
 java.awt.Color getC()
          Gets the c.
 float getOpacity()
          * GETTERS AND SETTERS ***.
 int getX()
          Gets the x.
 int getY()
          Gets the y.
 int getZ()
          Gets the z.
 void setC(java.awt.Color colour)
          Sets the c.
 void setOpacity(float opacity)
          Sets the opacity.
 void setX(int x)
          Sets the x.
 void setY(int y)
          Sets the y.
 void setZ(int z)
          Sets the z.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawableElement

public DrawableElement()
Instantiates a new drawable element.

Method Detail

draw

public abstract void draw(java.awt.Graphics2D gfx,
                          long tick_count)
Draw.

Parameters:
gfx - the gfx
tick_count - the tick_count

getC

public java.awt.Color getC()
Gets the c.

Returns:
the c

getOpacity

public float getOpacity()
* GETTERS AND SETTERS ***.

Returns:
the opacity

getX

public int getX()
Gets the x.

Returns:
the x

getY

public int getY()
Gets the y.

Returns:
the y

getZ

public int getZ()
Gets the z.

Returns:
the z

setC

public void setC(java.awt.Color colour)
Sets the c.

Parameters:
colour - the new c

setOpacity

public void setOpacity(float opacity)
Sets the opacity.

Parameters:
opacity - the new opacity

setX

public void setX(int x)
Sets the x.

Parameters:
x - the new x

setY

public void setY(int y)
Sets the y.

Parameters:
y - the new y

setZ

public void setZ(int z)
Sets the z.

Parameters:
z - the new z