net.jinx.action
Class ActorView

java.lang.Object
  extended by net.jinx.action.Actor
      extended by net.jinx.action.ActorView
All Implemented Interfaces:
View

public class ActorView
extends Actor
implements View

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

API Stability: Beta.


Constructor Summary
ActorView(java.lang.String name, View view)
          Constructs a new ActorView.
 
Method Summary
 void deinit(Context opt)
          Deinitializes the wrapped view object.
 Visible getVisible()
          Redirects to the wrapped view object.
 void init(Context opt)
          Initializes the wrapped View object.
protected  void processEvent(ActorEvent event)
          Does nothing.
 void view(Context options, java.awt.Rectangle viewport)
          Redirects to the wrapped view object.
 
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

ActorView

public ActorView(java.lang.String name,
                 View view)
Constructs a new ActorView.

Parameters:
name - the name of this ActorView.
view - the View object to wrap.
Method Detail

init

public void init(Context opt)
Initializes the wrapped View object.

Specified by:
init in interface View
Parameters:
opt - the Contect object containing rendering options.

view

public void view(Context options,
                 java.awt.Rectangle viewport)
Redirects to the wrapped view object.

Specified by:
view in interface View
Parameters:
options - the Contect object containing rendering options.
viewport - the screen viewport that is being used for this View.

getVisible

public Visible getVisible()
Redirects to the wrapped view object.

Specified by:
getVisible in interface View
Returns:
the Visible object that was returned by the wrapped view's getVisible() method.

deinit

public void deinit(Context opt)
Deinitializes the wrapped view object.

Specified by:
deinit in interface View
Parameters:
opt - the Contect object containing rendering options.

processEvent

protected void processEvent(ActorEvent event)
Does nothing.

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