|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ch.unizh.ini.friend.gui.StatusPanel
public class StatusPanel
Shows the status of the simulation, and more important, displays a combo box that users use to choose the cell to be monitored.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
StatusPanel(SimulationSetup setup,
Stimulus stimulus)
Creates new form StatusPanel |
Method Summary | |
---|---|
void |
compute(float dt)
Computes the new state of this component of the simulation. |
boolean |
isCellNameVisible()
is cell name visible? |
void |
setCellName(String name)
Set the name of the cell being listened to. |
void |
setCellNameVisible(boolean f)
sets visibility of cell name. |
void |
setPlottingEnabled(boolean f)
set plotting running now status |
void |
setSimulationSetup(SimulationSetup setup)
sets the SimulationSetup . |
void |
update()
Updates the actual state to the newly computed - aka double-buffering. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatusPanel(SimulationSetup setup, Stimulus stimulus)
setup
- the simulationstimulus
- the stimulusMethod Detail |
---|
public void setSimulationSetup(SimulationSetup setup)
SimulationSetup
. This removes all cells from comboBox chooser and
then rebuilds the combo box from the output cells
of the
new simulation.
setup
- the SimulationSetup
public void update()
update
in interface Updateable
public void setCellName(String name)
setCellNameVisible(boolean)
.
public void setCellNameVisible(boolean f)
f
- true means show cell namesetCellName(java.lang.String)
public boolean isCellNameVisible()
public void setPlottingEnabled(boolean f)
public void compute(float dt)
compute
in interface Updateable
dt
- The time that has passed since the last invocation.
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |