org.opensourcephysics.ejs.control
Class EjsCalculationControl

java.lang.Object
  extended by org.opensourcephysics.ejs.control.GroupControl
      extended by org.opensourcephysics.ejs.control.EjsControl
          extended by org.opensourcephysics.ejs.control.ParsedEjsControl
              extended by org.opensourcephysics.ejs.control.EjsControlFrame
                  extended by org.opensourcephysics.ejs.control.EjsCalculationControl
All Implemented Interfaces:
javax.swing.RootPaneContainer, Control, MainFrame, SimControl

public class EjsCalculationControl
extends EjsControlFrame

An EJS control object for Calculations.

Version:
1.0
Author:
Wolfgang Christian

Field Summary
protected  javax.swing.JPanel controlPanel
           
protected  DrawingPanel drawingPanel
           
protected  Calculation model
           
 
Fields inherited from class org.opensourcephysics.ejs.control.EjsControlFrame
app, clearItem, languageItems, languageMenu, messageFrame, reply, snapshotItem, support, translateItem, videoItem, xmlDefault
 
Fields inherited from class org.opensourcephysics.ejs.control.GroupControl
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
 
Fields inherited from interface org.opensourcephysics.controls.Control
NOT_EDITABLE_BACKGROUND
 
Constructor Summary
EjsCalculationControl(Calculation model, DrawingFrame frame, java.lang.String[] args)
          Constructor EjsCalculationControl
 
Method Summary
 void calculate()
          Does the calculation.
protected  void customize()
          Override this method to customize this EjsSimulationControl.
 void resetCalculation()
          Resets the calculation.
 
Methods inherited from class org.opensourcephysics.ejs.control.EjsControlFrame
addChildFrame, addObject, addPropertyChangeListener, calculationDone, clearChildFrames, clearData, clearDataAndRepaint, clearDefaultXML, 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, render, saveXML, setContentPane, setGlassPane, setLayeredPane
 
Methods inherited from class org.opensourcephysics.ejs.control.ParsedEjsControl
getDouble, getInt, getObject, removeParameter, setAdjustableValue, setAdjustableValue, setAdjustableValue, setAdjustableValue, setParameterToFixed
 
Methods inherited from class org.opensourcephysics.ejs.control.EjsControl
clearValues, getPropertyNames, getValue, reset, setLockValues, setValue
 
Methods inherited from class org.opensourcephysics.ejs.control.GroupControl
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, initialize, isVariableRegistered, registerVariable, removeTarget, rename, replaceOwnerFrame, setActive, setDebugLevel, setOwnerFrame, setSimulation, setValue, setValue, setValue, setValue, setValue, update, variableChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensourcephysics.controls.Control
clearValues, getBoolean, getPropertyNames, getString, setLockValues, setValue, setValue, setValue, setValue
 

Field Detail

controlPanel

protected javax.swing.JPanel controlPanel

drawingPanel

protected DrawingPanel drawingPanel

model

protected Calculation model
Constructor Detail

EjsCalculationControl

public EjsCalculationControl(Calculation model,
                             DrawingFrame frame,
                             java.lang.String[] args)
Constructor EjsCalculationControl

Parameters:
model -
frame -
args -
Method Detail

customize

protected void customize()
Override this method to customize this EjsSimulationControl.


resetCalculation

public void resetCalculation()
Resets the calculation.


calculate

public void calculate()
Does the calculation.