etomica.graphics
Class DeviceNSelector

java.lang.Object
  extended by etomica.graphics.Device
      extended by etomica.graphics.DeviceSlider
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class etomica.graphics.Device
Device.ActionSet
 
Field Summary
protected  IBox box
           
protected  IAction resetAction
           
protected  ISpecies species
           
 
Fields inherited from class etomica.graphics.DeviceSlider
component, modifyAction, property, slider, suppressAction, targetAction, textField
 
Fields inherited from class etomica.graphics.Device
controller, unit
 
Constructor Summary
DeviceNSelector()
           
DeviceNSelector(IController controller)
           
 
Method Summary
 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(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)
           
 
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 etomica.graphics.Device
getController, getDimension, getPostAction, getPreAction, getUnit, graphic, setController, setPostAction, setPreAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resetAction

protected IAction resetAction

species

protected ISpecies species

box

protected IBox box
Constructor Detail

DeviceNSelector

public DeviceNSelector()

DeviceNSelector

public DeviceNSelector(IController controller)
Method Detail

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)