biosim.core.gui
Class GUISimulation
java.lang.Object
sim.display.GUIState
biosim.core.gui.GUISimulation
public class GUISimulation
- extends sim.display.GUIState
Fields inherited from class sim.display.GUIState |
after, afterSize, before, beforeSize, controller, guirandom, state, storage |
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 |
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
GUISimulation
public GUISimulation(Simulation sim)
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