public class DeviceNSelector extends DeviceSlider
Device.ActionSet
Modifier and Type | Field and Description |
---|---|
protected IBox |
box |
protected IAction |
resetAction |
protected ISpecies |
species |
component, modifyAction, property, slider, suppressAction, targetAction, textField
controller, unit
Constructor and Description |
---|
DeviceNSelector() |
DeviceNSelector(IController controller) |
Modifier and Type | Method and Description |
---|---|
IBox |
getBox() |
IAction |
getResetAction()
Returns the action used to "reset" the simulation after changing the
number of molecules, SimulationRestart by default.
|
ISpecies |
getSpecies() |
protected void |
init() |
static void |
main(java.lang.String[] args) |
void |
setBox(IBox newBox) |
void |
setEnabled(boolean newIsEnabled)
Sets the deivce's slider and textfield to be enabled or not.
|
void |
setModifier(Modifier newModifier) |
void |
setResetAction(IAction newResetAction) |
void |
setSpecies(ISpecies newSpecies) |
doAction, doUpdate, getComponent, getEditValues, getLabel, getMaximum, getMinimum, getModifier, getNMajor, getNMinor, getPanel, getPrecision, getProperty, getShowSlider, getShowValues, getSlider, getTextField, getValue, graphic, isEnabled, isShowBorder, setBorderAlignment, setComponent, setEditValues, setLabel, setMaximum, setMinimum, setNMajor, setNMinor, setPrecision, setProperty, setShowBorder, setShowSlider, setShowValues, setSliderValueShape, setSliderVerticalOrientation, setUnit, setValue
getController, getDimension, getPostAction, getPreAction, getUnit, graphic, setController, setPostAction, setPreAction
protected IAction resetAction
protected ISpecies species
protected IBox box
public DeviceNSelector()
public DeviceNSelector(IController controller)
public void setEnabled(boolean newIsEnabled)
DeviceSlider
setEnabled
in class DeviceSlider
public void setResetAction(IAction newResetAction)
public IAction getResetAction()
public void setBox(IBox newBox)
public void setSpecies(ISpecies newSpecies)
public IBox getBox()
public ISpecies getSpecies()
public void setModifier(Modifier newModifier)
setModifier
in class DeviceSlider
protected void init()
public static void main(java.lang.String[] args)