camera3d.action
Class ActionExecutor

java.lang.Object
  extended byjava.lang.Thread
      extended bycamera3d.action.ActionExecutor
All Implemented Interfaces:
java.lang.Runnable

public class ActionExecutor
extends java.lang.Thread

Version:
1.0
Author:
Fábio Roberto de Miranda

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ActionExecutor(ActionQueue queue, ActionQueue outputQueue, J3DBase base)
          Creates ActionExecutor, given ActionQueues and J3DBase object to act upon.
ActionExecutor(ActionQueue queue, ActionQueue outputQueue, J3DBase base, GUIControl guiControl)
          Creates ActionExecutor, given ActionQueues, GUIControl and J3DBase objects to act upon.
 
Method Summary
 void debugln(java.lang.String s)
           
 GUIControl getGUIControl()
           
 J3DBase getJ3DBase()
           
 int getUndoLimit()
           
 void interpretAction(VcAction action, ActionQueue outputQueue)
           
 void run()
           
 void setUndoLimit(int limit)
           
 void stopRun()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionExecutor

public ActionExecutor(ActionQueue queue,
                      ActionQueue outputQueue,
                      J3DBase base)
Creates ActionExecutor, given ActionQueues and J3DBase object to act upon.

Parameters:
queue - provides actions yet to be executed.
outputQueue - destination of already executed actions.
base - access point to Java 3D tree affected by actions.
Throws:
java.lang.IllegalArgumentException - if any input parameter is null.

ActionExecutor

public ActionExecutor(ActionQueue queue,
                      ActionQueue outputQueue,
                      J3DBase base,
                      GUIControl guiControl)
Creates ActionExecutor, given ActionQueues, GUIControl and J3DBase objects to act upon.

Parameters:
queue - provides actions yet to be executed.
outputQueue - destination of already executed actions.
base - access point to Java 3D tree affected by actions.
guiControl - access point to some resources used by actions.
Throws:
java.lang.IllegalArgumentException - if any input parameter is null.
Method Detail

run

public void run()

interpretAction

public void interpretAction(VcAction action,
                            ActionQueue outputQueue)

getJ3DBase

public J3DBase getJ3DBase()

getGUIControl

public GUIControl getGUIControl()

stopRun

public void stopRun()

debugln

public void debugln(java.lang.String s)

setUndoLimit

public void setUndoLimit(int limit)

getUndoLimit

public int getUndoLimit()


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.