Control, MainFrame, SimControlpublic class EjsSimulationControl extends EjsControlFrame
| Modifier and Type | Field | Description |
|---|---|---|
protected javax.swing.JPanel |
controlPanel |
|
protected DrawingPanel |
drawingPanel |
|
protected Simulation |
model |
NOT_EDITABLE_BACKGROUNDapp, clearItem, languageItems, languageMenu, messageFrame, reply, snapshotItem, support, translateItem, videoItem, xmlDefaultDEBUG_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| Constructor | Description |
|---|---|
EjsSimulationControl(Simulation model,
DrawingFrame frame,
java.lang.String[] args) |
Constructor EjsSimulationControl
|
| Modifier and Type | Method | 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() |
clearValues, getBoolean, getPropertyNames, getString, setLockValues, setValue, setValue, setValue, setValueclearValues, getPropertyNames, getValue, reset, setLockValues, setValueaddChildFrame, 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, setLayeredPaneadd, 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, variableChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDouble, getInt, getObject, removeParameter, setAdjustableValue, setAdjustableValue, setAdjustableValue, setAdjustableValue, setParameterToFixedprotected Simulation model
protected DrawingPanel drawingPanel
protected javax.swing.JPanel controlPanel
public EjsSimulationControl(Simulation model, DrawingFrame frame, java.lang.String[] args)
model - frame - args - protected void customize()
public void render()
render in class EjsControlFramepublic void clearDefaultXML()
clearDefaultXML in class EjsControlFramepublic void resetSimulation()
public void stepSimulation()
public void runSimulation()
public void initialize()
initialize in class GroupControl