biosim.core.gui
Class GUISimulation

java.lang.Object
  extended by sim.display.GUIState
      extended by biosim.core.gui.GUISimulation

public class GUISimulation
extends sim.display.GUIState


Field Summary
 sim.display.Display2D display
           
 javax.swing.JFrame displayFrame
           
 int displayHeightPixels
           
 java.util.HashMap<java.lang.Class<?>,java.lang.Class<? extends sim.portrayal.Portrayal>> displayMap
           
 int displayWidthPixels
           
 sim.portrayal.continuous.ContinuousPortrayal2D field2DPortrayal
           
 
Fields inherited from class sim.display.GUIState
after, afterSize, before, beforeSize, controller, guirandom, state, storage
 
Constructor Summary
GUISimulation(Simulation sim)
           
 
Method Summary
static java.lang.Object getInfo()
           
static java.lang.String getName()
           
 void init(sim.display.Controller c)
           
 void load(sim.engine.SimState s)
           
 void setDisplaySize(int width, int height)
           
 void setPortrayalClass(java.lang.Class<?> objClass, java.lang.Class<? extends sim.portrayal.Portrayal> portrayalClass)
           
 void setupPortrayals()
           
 void start()
           
 boolean validSimState(sim.engine.SimState state)
           
 
Methods inherited from class sim.display.GUIState
createController, finish, getInfo, getInspector, getMaximumPropertiesForInspector, getName, getSimulationInspectedObject, getSimulationProperties, getTruncatedName, increaseSubsteps, isInspectorVolatile, quit, readNewStateFromCheckpoint, resetQueues, scheduleAtEnd, scheduleAtExtreme, scheduleAtStart, scheduleImmediate, scheduleImmediatelyAfter, scheduleImmediatelyBefore, scheduleImmediateRepeat, scheduleRepeatingImmediatelyAfter, scheduleRepeatingImmediatelyBefore, step
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

public sim.display.Display2D display

displayFrame

public javax.swing.JFrame displayFrame

displayWidthPixels

public int displayWidthPixels

displayHeightPixels

public int displayHeightPixels

field2DPortrayal

public sim.portrayal.continuous.ContinuousPortrayal2D field2DPortrayal

displayMap

public java.util.HashMap<java.lang.Class<?>,java.lang.Class<? extends sim.portrayal.Portrayal>> displayMap
Constructor Detail

GUISimulation

public GUISimulation(Simulation sim)
Method Detail

getName

public static java.lang.String getName()

getInfo

public static java.lang.Object getInfo()

setDisplaySize

public void setDisplaySize(int width,
                           int height)

validSimState

public boolean validSimState(sim.engine.SimState state)
Overrides:
validSimState in class sim.display.GUIState

setPortrayalClass

public void setPortrayalClass(java.lang.Class<?> objClass,
                              java.lang.Class<? extends sim.portrayal.Portrayal> portrayalClass)

setupPortrayals

public void setupPortrayals()

start

public void start()
Overrides:
start in class sim.display.GUIState

load

public void load(sim.engine.SimState s)
Overrides:
load in class sim.display.GUIState

init

public void init(sim.display.Controller c)
Overrides:
init in class sim.display.GUIState