etomica.graphics
Class DeviceNSelector
java.lang.Object
etomica.graphics.Device
etomica.graphics.DeviceSlider
etomica.graphics.DeviceNSelector
- All Implemented Interfaces:
- GraphicalElement, Dimensioned
public class DeviceNSelector
- extends DeviceSlider
Slider that selects the number of atoms of a given species in a box.
| Methods inherited from class etomica.graphics.DeviceSlider |
doAction, doUpdate, getComponent, getEditValues, getLabel, getMaximum, getMinimum, getModifier, getNMajor, getPanel, getPrecision, getProperty, getShowSlider, getShowValues, getSlider, getTextField, getValue, graphic, isEnabled, isShowBorder, setBorderAlignment, setComponent, setEditValues, setLabel, setMaximum, setMinimum, setNMajor, setPrecision, setProperty, setShowBorder, setShowMinorTicks, setShowSlider, setShowValues, setSliderValueShape, setSliderVerticalOrientation, setUnit, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resetAction
protected IAction resetAction
species
protected ISpecies species
box
protected IBox box
DeviceNSelector
public DeviceNSelector()
DeviceNSelector
public DeviceNSelector(IController controller)
setEnabled
public void setEnabled(boolean newIsEnabled)
- Description copied from class:
DeviceSlider
- Sets the deivce's slider and textfield to be enabled or not.
- Overrides:
setEnabled in class DeviceSlider
setResetAction
public void setResetAction(IAction newResetAction)
getResetAction
public IAction getResetAction()
- Returns the action used to "reset" the simulation after changing the
number of molecules, SimulationRestart by default.
setBox
public void setBox(IBox newBox)
setSpecies
public void setSpecies(ISpecies newSpecies)
getBox
public IBox getBox()
getSpecies
public ISpecies getSpecies()
setModifier
public void setModifier(Modifier newModifier)
- Overrides:
setModifier in class DeviceSlider
init
protected void init()
main
public static void main(String[] args)