org.opensourcephysics.controls
Interface SimControl

All Superinterfaces:
Control
All Known Implementing Classes:
SimulationControl

public interface SimControl
extends Control

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


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

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

Parameters:
name -
val -

setAdjustableValue

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

Parameters:
name -
val -

setAdjustableValue

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

Parameters:
name -
val -

setAdjustableValue

public 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

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

Parameters:
name -

setParameterToFixed

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