public class EjsSimulationControl extends EjsControlFrame
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
controlPanel |
protected DrawingPanel |
drawingPanel |
protected Simulation |
model |
app, clearItem, languageItems, languageMenu, messageFrame, reply, snapshotItem, support, translateItem, videoItem, xmlDefault
DEBUG_ALL, DEBUG_CONTROL, DEBUG_CONTROL_VERBOSE, DEBUG_DRAWING, DEBUG_DRAWING_VERBOSE, DEBUG_ELEMENTS, DEBUG_NONE, DEBUG_SET_AND_GET, DEBUG_SYSTEM, DEBUG_SYSTEM_VERBOSE, replaceOwnerFrame, replaceOwnerName
NOT_EDITABLE_BACKGROUND
Constructor and Description |
---|
EjsSimulationControl(Simulation model,
DrawingFrame frame,
java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
void |
clearDefaultXML()
Clears the current XML default.
|
protected void |
customize()
Override this method to customize the EjsSimulationControl.
|
void |
initialize()
Does the calculation.
|
void |
render()
Renders (draws) the panel immediately.
|
void |
resetSimulation()
Resets the model and switches the text on the run button.
|
void |
runSimulation()
Runs the Simulation switches the text on the run button
|
void |
stepSimulation() |
addChildFrame, addObject, addPropertyChangeListener, calculationDone, clearChildFrames, clearData, clearDataAndRepaint, clearMessages, getChildFrames, getContentPane, getFrame, getGlassPane, getLayeredPane, getMainFrame, getOSPApp, getRootPane, getTopLevelAncestor, inspectXML, loadDefaultXML, loadDisplayMenu, loadToolsMenu, loadXML, loadXML, loadXML, loadXML, parseXMLMenu, print, println, println, printToGraphics, refreshGUI, removePropertyChangeListener, saveXML, setContentPane, setGlassPane, setLayeredPane
getDouble, getInt, getObject
clearValues, getPropertyNames, getValue, reset, setLockValues, setValue
add, add, addListener, addListener, addNamed, addObject, addTarget, appendPrefixPath, clear, clearPrefixPath, clearVariables, destroy, destroy, getBoolean, getComponent, getContainer, getControl, getDebugLevel, getDefaultPrefixList, getElement, getLoader, getOwnerFrame, getReplaceOwnerFrame, getReplaceOwnerName, getSimulation, getString, getTarget, getTopLevelAncestor, getVisual, isVariableRegistered, registerVariable, removeTarget, rename, replaceOwnerFrame, setActive, setDebugLevel, setOwnerFrame, setSimulation, setValue, setValue, setValue, setValue, setValue, update, variableChanged
protected Simulation model
protected DrawingPanel drawingPanel
protected javax.swing.JPanel controlPanel
public EjsSimulationControl(Simulation model, DrawingFrame frame, java.lang.String[] args)
protected void customize()
public void render()
render
in class EjsControlFrame
public void clearDefaultXML()
clearDefaultXML
in class EjsControlFrame
public void resetSimulation()
public void stepSimulation()
public void runSimulation()
public void initialize()
initialize
in class GroupControl