Package org.opensourcephysics.controls
Interface SimControl
- All Superinterfaces:
Control
- All Known Implementing Classes:
EjsCalculationControl
,EjsControlFrame
,EjsSimulationControl
,ParsedEjsControl
,SimulationControl
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
Modifier and TypeMethodDescriptionvoid
removeParameter
(String name) Removes a parameter from this control.void
setAdjustableValue
(String name, boolean val) Stores a boolean in the control that can be edited after initialization.void
setAdjustableValue
(String name, double val) Stores a double in the control that can be edited after initialization.void
setAdjustableValue
(String name, int val) Stores an integer in the control that can be edited after initialization.void
setAdjustableValue
(String name, Object val) Stores an object in the control that can be edited after initialization.void
setParameterToFixed
(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, getPropertyNamesRaw, getString, print, println, println, setLockValues, setValue, setValue, setValue, setValue, setValue
-
Method Details
-
setAdjustableValue
Stores a boolean in the control that can be edited after initialization.- Parameters:
name
-val
-
-
setAdjustableValue
Stores a double in the control that can be edited after initialization.- Parameters:
name
-val
-
-
setAdjustableValue
Stores an integer in the control that can be edited after initialization.- Parameters:
name
-val
-
-
setAdjustableValue
Stores an object in the control that can be edited after initialization.- Parameters:
name
-val
-
-
removeParameter
Removes a parameter from this control.- Parameters:
name
-
-
setParameterToFixed
Sets the fixed property of the given parameter. Fixed parameters can only be changed before initialization.
-