public class DeviceThermoSlider extends Device
Device.ActionSet
Modifier and Type | Field | Description |
---|---|---|
protected static int |
DEFAULT_MAX_TEMPERATURE |
|
protected static int |
DEFAULT_MIN_TEMPERATURE |
|
protected javax.swing.JPanel |
temperaturePanel |
|
protected DeviceSlider |
temperatureSlider |
|
protected DeviceButtonGroup |
thermalButtons |
controller, unit
Constructor | Description |
---|---|
DeviceThermoSlider(Controller cont,
IntegratorBox integrator) |
Modifier and Type | Method | Description |
---|---|---|
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 |
setController(Controller cont) |
Set the temperature slider controller.
|
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 |
setPrecision(int prec) |
Set the precision of the scrollbar.
|
void |
setRadioGroupPostAction(IAction action) |
Sets an action to be performed after a isothermal/adiabatic button is
pressed and the integrator's isothermality has been set.
|
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 |
setSliderMinorValues(int minor) |
|
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, setPostAction, setPreAction
protected final javax.swing.JPanel temperaturePanel
protected final DeviceSlider temperatureSlider
protected final DeviceButtonGroup thermalButtons
protected static final int DEFAULT_MIN_TEMPERATURE
protected static final int DEFAULT_MAX_TEMPERATURE
public DeviceThermoSlider(Controller cont, IntegratorBox integrator)
public void setIsothermalButtonsVisibility(boolean doShowIsothermalButtons)
public boolean getIsothermalButtonsVisibility()
public void setIsothermal()
public boolean isIsothermal()
public void setAdiabatic()
public boolean isAdiabatic()
public void setRadioGroupPostAction(IAction action)
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 void setSliderMinorValues(int minor)
public java.awt.Component graphic()
public void setUnit(Unit u)
public void setPrecision(int prec)
prec
- Number of significant digits after the "dot".public void setModifier(Modifier mod)
public Modifier getModifier()
public void setController(Controller cont)
setController
in class Device
cont
- The controller to set.public void setSliderPostAction(IAction action)