public class DeviceThermoSliderGEMC extends Device
Device.ActionSet
Modifier and Type | Field | Description |
---|---|---|
protected IntegratorBox |
integrator1 |
|
protected IntegratorBox |
integrator2 |
|
protected IntegratorManagerMC |
integrator3 |
controller, unit
Constructor | Description |
---|---|
DeviceThermoSliderGEMC(Controller cont,
IntegratorBox integratorBox1,
IntegratorBox integratorBox2,
IntegratorManagerMC integratorManagerMC) |
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 isothermal or adiabatic radio button
is pushed.
|
void |
addTemperatureSliderListener(javax.swing.event.ChangeListener listener) |
Add the specified listener to the list of listeners that
will get invoked when the temperature slider value changes.
|
void |
doUpdate() |
|
boolean |
getIsothermalButtonsVisibility() |
|
Modifier |
getModifier() |
|
double |
getTemperature() |
|
java.awt.Component |
graphic() |
|
boolean |
isAdiabatic() |
|
boolean |
isIsothermal() |
|
void |
setAdiabatic() |
Set the Adiabatic button to its selected state.
|
void |
setEditValues(boolean b) |
Set whether the temperature text box should be editable.
|
void |
setIsothermal() |
Set the Isothermal button to its selected state.
|
void |
setIsothermalButtonsVisibility(boolean doShowIsothermalButtons) |
|
void |
setMaximum(double max) |
Set the maximum value for the temperature.
|
void |
setMinimum(double min) |
Set the minimum value for the temperature.
|
void |
setModifier(Modifier mod) |
Set the temperature modifier object.
|
void |
setNMajor(int n) |
|
void |
setPrecision(int prec) |
Set the precision of the scrollbar.
|
void |
setShowValues(boolean b) |
Set whether the temperature text box should be displayed.
|
void |
setSliderMajorValues(int major) |
Set the number of "major" values that should be shown on the
temperature slider.
|
void |
setSliderPostAction(IAction action) |
Set the post slider value changed action.
|
void |
setTemperature(double value) |
Set the current value for the temperature slider/text box.
|
void |
setUnit(Unit u) |
Set the unit of temperature.
|
doAction, getController, getDimension, getPostAction, getPreAction, getUnit, setController, setPostAction, setPreAction
protected IntegratorBox integrator1
protected IntegratorBox integrator2
protected IntegratorManagerMC integrator3
public DeviceThermoSliderGEMC(Controller cont, IntegratorBox integratorBox1, IntegratorBox integratorBox2, IntegratorManagerMC integratorManagerMC)
public void setNMajor(int n)
public void setIsothermalButtonsVisibility(boolean doShowIsothermalButtons)
public boolean getIsothermalButtonsVisibility()
public void setIsothermal()
public boolean isIsothermal()
public void setAdiabatic()
public boolean isAdiabatic()
public void addTemperatureSliderListener(javax.swing.event.ChangeListener listener)
listener
- public void addRadioGroupActionListener(java.awt.event.ActionListener listener)
listener
- public void setTemperature(double value)
public double getTemperature()
public void setShowValues(boolean b)
public void setEditValues(boolean b)
public void setMinimum(double min)
public void setMaximum(double max)
public void setSliderMajorValues(int major)
public java.awt.Component graphic()
public void setUnit(Unit u)
public void doUpdate()
public void setPrecision(int prec)
prec
- Number of significant digits after the "dot".public void setModifier(Modifier mod)
public Modifier getModifier()
public void setSliderPostAction(IAction action)