public class DeviceThermoSelector extends Device
Device.ActionSet
controller, unit
Constructor | Description |
---|---|
DeviceThermoSelector(Controller controller,
Unit tempUnit,
boolean fixOverlap) |
|
DeviceThermoSelector(Simulation sim,
IntegratorBox integrator) |
Constructor that specifies Kelvin as temperature units.
|
Modifier and Type | Method | Description |
---|---|---|
javax.swing.JLabel |
getLabel() |
|
javax.swing.JComboBox |
getSelector() |
|
java.awt.Component |
graphic() |
Returns the GUI element for display in the simulation.
|
boolean |
isIncludeAdiabatic() |
|
static void |
main(java.lang.String[] args) |
|
void |
setIncludeAdiabatic(boolean b) |
|
void |
setIntegrator(IntegratorBox integrator) |
|
void |
setSelected(int i) |
Sets the i-th item (counting from 0) in the list as the one currently selected.
|
void |
setTemperatures(double[] t) |
|
void |
setUnit(PrefixedUnit u) |
Override superclass setUnit method to update label when unit is changed
|
void |
updateIntegrator() |
set the integrator's temperature to the selected value
|
doAction, getController, getDimension, getPostAction, getPreAction, getUnit, setController, setPostAction, setPreAction, setUnit
public DeviceThermoSelector(Simulation sim, IntegratorBox integrator)
public DeviceThermoSelector(Controller controller, Unit tempUnit, boolean fixOverlap)
public void updateIntegrator()
public void setIntegrator(IntegratorBox integrator)
public javax.swing.JComboBox getSelector()
public javax.swing.JLabel getLabel()
public final void setIncludeAdiabatic(boolean b)
public boolean isIncludeAdiabatic()
public void setSelected(int i)
public void setTemperatures(double[] t)
public void setUnit(PrefixedUnit u)
public java.awt.Component graphic()
public static void main(java.lang.String[] args)