net.jinx.action
Class VisibleActor

java.lang.Object
  extended by net.jinx.action.Actor
      extended by net.jinx.action.VisibleActor
All Implemented Interfaces:
MultipassVisible, Visible
Direct Known Subclasses:
VisiblePhysical

public class VisibleActor
extends Actor
implements MultipassVisible

Actor wrapper class for one of Vertex Modeler's Visible implementations, so they can be used with the action package.

API Stability: Beta.


Constructor Summary
VisibleActor(java.lang.String name, Visible drawable)
          Constructs a VisibleActor to wrap drawable.
 
Method Summary
 void deinit(Context opt)
          Redirects to the wrapped Visible.
 void draw(Context opt)
          Redirects to the wrapped Visible.
 void drawPass(Context opt, Pass pass)
           
 Visible getVisible()
          Provides the underlying Visible object.
 void init(Context opt)
          Redirects to the wrapped Visible.
protected  void processEvent(ActorEvent event)
          Does nothing.
 
Methods inherited from class net.jinx.action.Actor
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibleActor

public VisibleActor(java.lang.String name,
                    Visible drawable)
Constructs a VisibleActor to wrap drawable.

Parameters:
name - the name of this VisibleActor.
drawable - the Visible to wrap.
Method Detail

getVisible

public Visible getVisible()
Provides the underlying Visible object. This is used internally, so overriding this method will affect most of the others.

Returns:
the wrapped Visible.

init

public void init(Context opt)
Redirects to the wrapped Visible.

Specified by:
init in interface Visible
Parameters:
opt - the Context object contaning rendering options.

draw

public void draw(Context opt)
Redirects to the wrapped Visible.

Specified by:
draw in interface Visible
Parameters:
opt - the Context object contaning rendering options.

drawPass

public void drawPass(Context opt,
                     Pass pass)
Specified by:
drawPass in interface MultipassVisible

deinit

public void deinit(Context opt)
Redirects to the wrapped Visible.

Specified by:
deinit in interface Visible
Parameters:
opt - the Context object contaning rendering options.

processEvent

protected void processEvent(ActorEvent event)
Does nothing.

Specified by:
processEvent in class Actor
Parameters:
event - the ActorEvent to process.