apps.lightrays.gfxlib
Class GraphicalSwitch

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

public class GraphicalSwitch
extends DrawableElement

The Class GraphicalSwitch.


Constructor Summary
GraphicalSwitch()
          Instantiates a new graphical switch.
 
Method Summary
 void add(java.lang.String name, DrawableElement el)
          Adds the.
 void draw(java.awt.Graphics2D gfx, long tick_count)
          Draw.
 void setCurrent(java.lang.String name)
          Sets the current.
 
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

GraphicalSwitch

public GraphicalSwitch()
Instantiates a new graphical switch.

Method Detail

add

public void add(java.lang.String name,
                DrawableElement el)
Adds the.

Parameters:
name - the name
el - the el

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

setCurrent

public void setCurrent(java.lang.String name)
Sets the current.

Parameters:
name - the new current