public class DeviceCellNumXYSlider extends Device
Device.ActionSet
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected ISpecies |
species |
controller, unit
Constructor | Description |
---|---|
DeviceCellNumXYSlider(Controller cont) |
Modifier and Type | Method | Description |
---|---|---|
void |
addRadioGroupActionListener(java.awt.event.ActionListener listener) |
Add the specified listener to the list of listeners that
will get invoked when the "x-axis" or "y-axis" radio button
is pushed.
|
void |
addXYCellNumSliderListener(javax.swing.event.ChangeListener listener) |
Add the specified listener to the list of listeners that
will get invoked when the 'xCell #' and 'yCell #' slider value changes.
|
Box |
getBox() |
|
ISpecies |
getSpecies() |
|
Modifier |
getXCellModifier() |
|
double |
getXCellNum() |
|
Modifier |
getYCellModifier() |
|
double |
getYCellNum() |
|
java.awt.Component |
graphic() |
|
protected void |
init() |
|
boolean |
isXComp() |
|
boolean |
isYComp() |
|
void |
setBox(Box newBox) |
|
void |
setController(Controller cont) |
Set the x- and y- Cell # slider controller.
|
void |
setEditValues(boolean b) |
Set whether the x- and y-Cell # text box should be editable.
|
void |
setMaximum(int max) |
Set the maximum value for the x- and y-Cell #.
|
void |
setMinimum(int min) |
Set the minimum value for the x- and y-Cell #.
|
void |
setShowValues(boolean b) |
Set whether the x- and y-Cell # text box should be displayed.
|
void |
setSliderMajorValues(int major) |
Set the number of "major" values that should be shown on the
x- and y- CellNum slider.
|
void |
setSpecies(ISpecies newSpecies) |
|
void |
setXCellModifier(Modifier mod) |
Set the x-Cell # modifier object.
|
void |
setXCellNum(int value) |
Set the current value for the xCell # slider/text box.
|
void |
setXComp() |
Set the "x-axis" button to its selected state.
|
void |
setXSliderPostAction(IAction action) |
Set the post slider value changed action.
|
void |
setYCellModifier(Modifier mod) |
Set the y-Cell # modifier object.
|
void |
setYCellNum(int value) |
Set the current value for the yCell # slider/text box.
|
void |
setYComp() |
Set the "y-axis" button to its selected state.
|
void |
setYSliderPostAction(IAction action) |
doAction, getController, getDimension, getPostAction, getPreAction, getUnit, setPostAction, setPreAction, setUnit
public DeviceCellNumXYSlider(Controller cont)
public void setYComp()
public boolean isYComp()
public void setXComp()
public boolean isXComp()
public void addXYCellNumSliderListener(javax.swing.event.ChangeListener listener)
listener
- public void addRadioGroupActionListener(java.awt.event.ActionListener listener)
listener
- public void setXCellNum(int value)
public double getXCellNum()
public void setYCellNum(int value)
public double getYCellNum()
public void setShowValues(boolean b)
public void setEditValues(boolean b)
public void setMinimum(int min)
public void setMaximum(int max)
public void setSliderMajorValues(int major)
public java.awt.Component graphic()
public void setXCellModifier(Modifier mod)
public Modifier getXCellModifier()
public void setYCellModifier(Modifier mod)
public Modifier getYCellModifier()
public void setController(Controller cont)
setController
in class Device
cont
- The controller to set.public void setXSliderPostAction(IAction action)
public void setYSliderPostAction(IAction action)
public void setBox(Box newBox)
public void setSpecies(ISpecies newSpecies)
public Box getBox()
public ISpecies getSpecies()
protected void init()