|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.graphics.Device
etomica.graphics.DeviceThermoSlider
public class DeviceThermoSlider
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class etomica.graphics.Device |
|---|
Device.ActionSet |
| Field Summary | |
|---|---|
protected IntegratorBox |
integrator
|
| Fields inherited from class etomica.graphics.Device |
|---|
controller, unit |
| Constructor Summary | |
|---|---|
DeviceThermoSlider(IController cont)
|
|
| Method Summary | |
|---|---|
void |
addRadioGroupActionListener(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(ChangeListener listener)
Add the specified listener to the list of listeners that will get invoked when the temperature slider value changes. |
boolean |
getIsothermalButtonsVisibility()
|
Modifier |
getModifier()
|
double |
getTemperature()
|
Component |
graphic(Object obj)
Interface for a Simulation element that would be used in a simulation graphical user interface (GUI) |
boolean |
isAdiabatic()
|
boolean |
isIsothermal()
|
static void |
main(String[] args)
|
void |
setAdiabatic()
Set the Adiabatic button to its selected state. |
void |
setController(IController cont)
Set the temperature slider controller. |
void |
setEditValues(boolean b)
Set whether the temperature text box should be editable. |
void |
setIntegrator(IntegratorBox i)
Sets the integrator for the device. |
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 |
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. |
| Methods inherited from class etomica.graphics.Device |
|---|
doAction, getController, getDimension, getPostAction, getPreAction, getUnit, graphic, setPostAction, setPreAction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IntegratorBox integrator
| Constructor Detail |
|---|
public DeviceThermoSlider(IController cont)
| Method Detail |
|---|
public void setIsothermalButtonsVisibility(boolean doShowIsothermalButtons)
public boolean getIsothermalButtonsVisibility()
public void setIsothermal()
public boolean isIsothermal()
public void setAdiabatic()
public boolean isAdiabatic()
public void addTemperatureSliderListener(ChangeListener listener)
listener - public void addRadioGroupActionListener(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 Component graphic(Object obj)
GraphicalElement
graphic in interface GraphicalElementgraphic in class Deviceobj - An object that might be used to specify the graphic that the GraphicalElement is to return.
In most cases the GraphicalElement ignores this parameter, and it can be set to null.
Device,
Displaypublic void setUnit(Unit u)
setUnit in interface DimensionedsetUnit in class Devicepublic void setPrecision(int prec)
prec - Number of significant digits after the "dot".public void setModifier(Modifier mod)
public Modifier getModifier()
public void setController(IController cont)
setController in class Devicecont - The controller to set.public void setSliderPostAction(IAction action)
public void setIntegrator(IntegratorBox i)
i - Integratorpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||