org.opensourcephysics.controls
Interface SimControl

All Superinterfaces:
Control
All Known Implementing Classes:
EjsCalculationControl, EjsControlFrame, EjsSimulationControl, ParsedEjsControl, SimulationControl

public interface SimControl
extends Control

This interface defines methods for setting values that can be changed after an animation has been initialized.

Version:
1.0
Author:
Wolfgang Christian

Field Summary
 
Fields inherited from interface org.opensourcephysics.controls.Control
NOT_EDITABLE_BACKGROUND
 
Method Summary
 void removeParameter(java.lang.String name)
          Removes a parameter from this control.
 void setAdjustableValue(java.lang.String name, boolean val)
          Stores a boolean in the control that can be edited after initialization.
 void setAdjustableValue(java.lang.String name, double val)
          Stores a double in the control that can be edited after initialization.
 void setAdjustableValue(java.lang.String name, int val)
          Stores an integer in the control that can be edited after initialization.
 void setAdjustableValue(java.lang.String name, java.lang.Object val)
          Stores an object in the control that can be edited after initialization.
 void setParameterToFixed(java.lang.String name, boolean fixed)
          Sets the fixed property of the given parameter.
 
Methods inherited from interface org.opensourcephysics.controls.Control
calculationDone, clearMessages, clearValues, getBoolean, getDouble, getInt, getObject, getPropertyNames, getString, print, println, println, setLockValues, setValue, setValue, setValue, setValue
 

Method Detail

setAdjustableValue

void setAdjustableValue(java.lang.String name,
                        boolean val)
Stores a boolean in the control that can be edited after initialization.

Parameters:
name -
val -

setAdjustableValue

void setAdjustableValue(java.lang.String name,
                        double val)
Stores a double in the control that can be edited after initialization.

Parameters:
name -
val -

setAdjustableValue

void setAdjustableValue(java.lang.String name,
                        int val)
Stores an integer in the control that can be edited after initialization.

Parameters:
name -
val -

setAdjustableValue

void setAdjustableValue(java.lang.String name,
                        java.lang.Object val)
Stores an object in the control that can be edited after initialization.

Parameters:
name -
val -

removeParameter

void removeParameter(java.lang.String name)
Removes a parameter from this control.

Parameters:
name -

setParameterToFixed

void setParameterToFixed(java.lang.String name,
                         boolean fixed)
Sets the fixed property of the given parameter. Fixed parameters can only be changed before initialization.