visual
Class FrontEnd

java.lang.Object
  extended by java.lang.Thread
      extended by visual.FrontEnd
All Implemented Interfaces:
java.lang.Runnable

public class FrontEnd
extends java.lang.Thread

Created by IntelliJ IDEA. User: andy Date: Apr 7, 2010


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 Entity entity
           
 java.lang.Object lock
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FrontEnd()
           
 
Method Summary
 void changeViewedEntity(Entity entity)
          When a new picking action is caught, if the user has chosen to change the monitored entity, engine3d calls this method to notify the FrontEnd thread for the change.
 javax.swing.JPanel getContainer()
          Is called by Engine3d, which extends frame.
 void run()
           
 void setTime(double time)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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
 

Field Detail

entity

public Entity entity

lock

public final java.lang.Object lock
Constructor Detail

FrontEnd

public FrontEnd()
Method Detail

changeViewedEntity

public void changeViewedEntity(Entity entity)
When a new picking action is caught, if the user has chosen to change the monitored entity, engine3d calls this method to notify the FrontEnd thread for the change. In the case that the previous monitored Entity doesn't exist any more, this happens if the a seek to an older state that the monitoredEntity didn't exist, the method is called with a null parameter so as to avoid shrinking the invisible but existing Entity3d.

Parameters:
entity - the entity that the user wants to monitore.

getContainer

public javax.swing.JPanel getContainer()
Is called by Engine3d, which extends frame.

Returns:
the JPanel that server as the top container for this GUI.

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

setTime

public void setTime(double time)