Type Params | Return Type | Name and description |
---|---|---|
|
void |
addButton(String observerID, String methodName) Adds a button to the user panel, specifying an observer. |
|
void |
addButton(String methodName) Adds a button to the user panel. |
|
void |
addButtonWL(String methodName, String elementLabel) Adds a button with a label to the user panel. |
|
void |
addButtonWL(String observerID, String methodName, String elementLabel) Adds a button with a label to the user panel, specifying an observer. |
|
void |
addChooser(String varName, List choices) Adds a chooser to the user panel. |
|
void |
addChooser(String varName, List choices, int index) Adds a chooser to the user panel. |
|
void |
addChooserWL(String varName, String elementLabel, List choices) Adds a chooser to the user panel, with label. |
|
void |
addChooserWL(String varName, String elementLabel, List choices, int index) Adds a chooser to the user panel, with label. |
|
void |
addGlobal(String varName) Creates a global variable with initial value 0. |
|
void |
addGlobal(String varName, Object value) Creates a global variable with a default value. |
|
void |
addGlobalsAndPanelComponents() |
|
void |
addInput(String varName) Adds an input field with initial value 0 to the user panel. |
|
void |
addInput(String varName, Object value) Adds an input field to the user panel, specifying an initial value. |
|
void |
addMonitor(String observerID, String methodName, double interval) Adds a monitor to the user panel, specifying the observer. |
|
void |
addMonitor(String methodName, double interval) Adds a monitor to the user panel. |
|
void |
addMonitorWL(String observerID, String methodName, String elementLabel, double interval) Adds a monitor with label to the user panel, specifying the observer. |
|
void |
addMonitorWL(String methodName, String elementLabel, double interval) Adds a monitor with label to the user panel. |
|
void |
addPanel(Closure cl) |
|
void |
addReLogoTickCountDisplay() |
|
void |
addSlider(String varName, Number minVal, Number increment, Number maxVal, Number val) Adds a slider to the user panel. |
|
void |
addSlider(String varName, Number minVal, Number increment, Number maxVal, Number val, String units) Adds a slider to the user panel, including units. |
|
void |
addSliderWL(String varName, String elementLabel, Number minVal, Number increment, Number maxVal, Number val) Adds a slider to the user panel with a label. |
|
void |
addSliderWL(String varName, String elementLabel, Number minVal, Number increment, Number maxVal, Number val, String units) Adds a slider to the user panel, including units, with a label. |
|
void |
addStateChangeButton(String observerID, String methodName) Adds a state change button to the user panel, specifying an observer. |
|
void |
addStateChangeButton(String methodName) Adds a state change button to the user panel. |
|
void |
addStateChangeButtonWL(String methodName, String elementLabel) Adds a state change button with a label to the user panel. |
|
void |
addStateChangeButtonWL(String observerID, String methodName, String elementLabel) Adds a state change button with a label to the user panel, specifying an observer. |
|
void |
addSwitch(String varName) Adds a switch to the user panel. |
|
void |
addSwitch(String varName, boolean selected) Adds a switch to the user panel, specifying the default state. |
|
void |
addSwitchWL(String varName, String elementLabel) Adds a switch to the user panel, with label. |
|
void |
addSwitchWL(String varName, String elementLabel, boolean selected) Adds a switch to the user panel, specifying the default state, with label. |
|
void |
addToggleButton(String observerID, String methodName) Adds a toggle button to the user panel, specifying an observer. |
|
void |
addToggleButton(String methodName) Adds a toggle button to the user panel. |
|
void |
addToggleButtonWL(String observerID, String methodName, String elementLabel) Adds a toggle button with a label to the user panel, specifying an observer. |
|
void |
addToggleButtonWL(String methodName, String elementLabel) Adds a toggle button with a label to the user panel. |
|
JPanel |
button(String observerID, String methodName) Creates a button, specifying an observer. |
|
JPanel |
button(String methodName) Creates a button. |
|
JPanel |
buttonWL(String methodName, String elementLabel) Creates a button with a label. |
|
JPanel |
buttonWL(String observerID, String methodName, String elementLabel) Creates a button with a label, specifying an observer. |
|
JPanel |
chooser(String varName, List choices) Creates a chooser. |
|
JPanel |
chooser(String varName, List choices, int index) Creates a chooser. |
|
JPanel |
chooserWL(String varName, String elementLabel, List choices) Creates a chooser with a label. |
|
JPanel |
chooserWL(String varName, String elementLabel, List choices, int index) Creates a chooser with a label. |
|
void |
initialize(JPanel panel) |
|
JPanel |
input(String varName) Creates an input field with initial value 0. |
|
JPanel |
input(String varName, Object value) Creates an input field, specifying an initial value. |
|
JPanel |
monitor(String observerID, String methodName, double interval) Creates a monitor, specifying the observer. |
|
JPanel |
monitor(String methodName, double interval) Creates a monitor. |
|
JPanel |
monitorWL(String observerID, String methodName, String elementLabel, double interval) Creates a monitor with label, specifying the observer. |
|
JPanel |
monitorWL(String methodName, String elementLabel, double interval) Creates a monitor with label. |
|
JPanel |
rSwitch(String varName) Creates a switch. |
|
JPanel |
rSwitch(String varName, boolean selected) Creates a switch, specifying the default state. |
|
JPanel |
rSwitchWL(String varName, String elementLabel) Creates a switch with a label. |
|
JPanel |
rSwitchWL(String varName, String elementLabel, boolean selected) Creates a switch with a label, specifying the default state. |
|
JPanel |
reLogoTickCountDisplay() |
|
JPanel |
slider(String varName, Number minVal, Number increment, Number maxVal, Number val) Creates a slider. |
|
JPanel |
slider(String varName, Number minVal, Number increment, Number maxVal, Number val, String units) Creates a slider, including units. |
|
JPanel |
sliderWL(String varName, String elementLabel, Number minVal, Number increment, Number maxVal, Number val) Creates a slider with a label. |
|
JPanel |
sliderWL(String varName, String elementLabel, Number minVal, Number increment, Number maxVal, Number val, String units) Creates a slider, including units, with a label. |
|
JPanel |
stateChangeButton(String observerID, String methodName) Creates a state change button, specifying an observer. |
|
JPanel |
stateChangeButton(String methodName) Creates a state change button. |
|
JPanel |
stateChangeButtonWL(String methodName, String elementLabel) Creates a state change button with a label. |
|
JPanel |
stateChangeButtonWL(String observerID, String methodName, String elementLabel) Creates a state change button with a label, specifying an observer. |
|
JPanel |
toggleButton(String observerID, String methodName) Creates a toggle button, specifying an observer. |
|
JPanel |
toggleButton(String methodName) Creates a toggle button. |
|
JPanel |
toggleButtonWL(String observerID, String methodName, String elementLabel) Creates a toggle button with a label, specifying an observer. |
|
JPanel |
toggleButtonWL(String methodName, String elementLabel) Creates a toggle button with a label. |
Adds a button to the user panel, specifying an observer.
observerID
- the observer namemethodName
- observer's method nameAdds a button to the user panel.
methodName
- default observer method nameAdds a button with a label to the user panel.
methodName
- default observer method nameelementLabel
- labelAdds a button with a label to the user panel, specifying an observer.
observerID
- the observer namemethodName
- observer's method nameelementLabel
- labelAdds a chooser to the user panel.
varName
- global variable namechoices
- a list of choicesAdds a chooser to the user panel.
varName
- global variable namechoices
- a list of choicesindex
- base-0 index of the default choiceAdds a chooser to the user panel, with label.
varName
- global variable nameelementLabel
- labelchoices
- a list of choicesAdds a chooser to the user panel, with label.
varName
- global variable nameelementLabel
- labelchoices
- a list of choicesindex
- base-0 index of the default choiceCreates a global variable with initial value 0.
varName
- global variable nameCreates a global variable with a default value.
varName
- global variable namevalue
- default valueAdds an input field with initial value 0 to the user panel.
varName
- global variable nameAdds an input field to the user panel, specifying an initial value.
varName
- global variable nameAdds a monitor to the user panel, specifying the observer.
observerID
- the observer namemethodName
- observer's method nameinterval
- update intervalAdds a monitor to the user panel.
methodName
- default observer's method nameinterval
- update intervalAdds a monitor with label to the user panel, specifying the observer.
observerID
- the observer namemethodName
- observer's method nameelementLabel
- labelinterval
- update intervalAdds a monitor with label to the user panel.
methodName
- default observer's method nameelementLabel
- labelinterval
- update intervalAdds a slider to the user panel.
varName
- global variable nameminVal
- minimum valueincrement
- incrementmaxVal
- maximum valueval
- default valueAdds a slider to the user panel, including units.
varName
- global variable nameminVal
- minimum valueincrement
- incrementmaxVal
- maximum valueval
- default valueunits
- units labelAdds a slider to the user panel with a label.
varName
- global variable nameelementLabel
- labelminVal
- minimum valueincrement
- incrementmaxVal
- maximum valueval
- default valueAdds a slider to the user panel, including units, with a label.
varName
- global variable nameelementLabel
- labelminVal
- minimum valueincrement
- incrementmaxVal
- maximum valueval
- default valueunits
- units labelAdds a state change button to the user panel, specifying an observer.
observerID
- the observer namemethodName
- observer's method nameAdds a state change button to the user panel.
methodName
- default observer method nameAdds a state change button with a label to the user panel. State change buttons do not advance the simulation schedule.
methodName
- default observer method nameelementLabel
- labelAdds a state change button with a label to the user panel, specifying an observer. State change buttons do not advance the simulation schedule.
observerID
- the observer namemethodName
- observer's method nameelementLabel
- labelAdds a switch to the user panel.
varName
- global variable nameAdds a switch to the user panel, specifying the default state.
varName
- global variable nameselected
- default stateAdds a switch to the user panel, with label.
varName
- global variable nameelementLabel
- labelAdds a switch to the user panel, specifying the default state, with label.
varName
- global variable nameelementLabel
- labelselected
- default stateAdds a toggle button to the user panel, specifying an observer.
observerID
- the observer namemethodName
- observer's method nameAdds a toggle button to the user panel.
methodName
- default observer method nameAdds a toggle button with a label to the user panel, specifying an observer.
observerID
- the observer namemethodName
- observer's method nameelementLabel
- labelAdds a toggle button with a label to the user panel.
methodName
- default observer method nameelementLabel
- labelCreates a button, specifying an observer. To be used with the widget method in Swing Builder.
observerID
- the observer namemethodName
- observer's method nameCreates a button. To be used with the widget method in Swing Builder.
methodName
- default observer method nameCreates a button with a label. To be used with the widget method in Swing Builder.
methodName
- default observer method nameelementLabel
- labelCreates a button with a label, specifying an observer. To be used with the widget method in Swing Builder.
observerID
- the observer namemethodName
- observer's method nameelementLabel
- labelCreates a chooser. To be used with the widget method in Swing Builder.
varName
- global variable namechoices
- a list of choicesCreates a chooser. To be used with the widget method in Swing Builder.
varName
- global variable namechoices
- a list of choicesindex
- base-0 index of the default choiceCreates a chooser with a label. To be used with the widget method in Swing Builder.
varName
- global variable nameelementLabel
- labelchoices
- a list of choicesCreates a chooser with a label. To be used with the widget method in Swing Builder.
varName
- global variable nameelementLabel
- labelchoices
- a list of choicesindex
- base-0 index of the default choiceCreates an input field with initial value 0. To be used with the widget method in Swing Builder.
varName
- global variable nameCreates an input field, specifying an initial value. To be used with the widget method in Swing Builder.
varName
- global variable nameCreates a monitor, specifying the observer. To be used with the widget method in Swing Builder.
observerID
- the observer namemethodName
- observer's method nameinterval
- update intervalCreates a monitor. To be used with the widget method in Swing Builder.
methodName
- default observer's method nameinterval
- update intervalCreates a monitor with label, specifying the observer. To be used with the widget method in Swing Builder.
observerID
- the observer namemethodName
- observer's method nameelementLabel
- labelinterval
- update intervalCreates a monitor with label. To be used with the widget method in Swing Builder.
methodName
- default observer's method nameelementLabel
- labelinterval
- update intervalCreates a switch. To be used with the widget method in Swing Builder.
varName
- global variable nameCreates a switch, specifying the default state. To be used with the widget method in Swing Builder.
varName
- global variable nameselected
- default stateCreates a switch with a label. To be used with the widget method in Swing Builder.
varName
- global variable nameelementLabel
- labelCreates a switch with a label, specifying the default state. To be used with the widget method in Swing Builder.
varName
- global variable nameelementLabel
- labelselected
- default stateCreates a slider. To be used with the widget method in Swing Builder.
varName
- global variable nameminVal
- minimum valueincrement
- incrementmaxVal
- maximum valueval
- default valueCreates a slider, including units. To be used with the widget method in Swing Builder.
varName
- global variable nameminVal
- minimum valueincrement
- incrementmaxVal
- maximum valueval
- default valueunits
- units labelCreates a slider with a label. To be used with the widget method in Swing Builder.
varName
- global variable nameelementLabel
- labelminVal
- minimum valueincrement
- incrementmaxVal
- maximum valueval
- default valueCreates a slider, including units, with a label. To be used with the widget method in Swing Builder.
varName
- global variable nameelementLabel
- labelminVal
- minimum valueincrement
- incrementmaxVal
- maximum valueval
- default valueunits
- units labelCreates a state change button, specifying an observer. To be used with the widget method in Swing Builder.
observerID
- the observer namemethodName
- observer's method nameCreates a state change button. To be used with the widget method in Swing Builder.
methodName
- default observer method nameCreates a state change button with a label. To be used with the widget method in Swing Builder.
methodName
- default observer method nameelementLabel
- labelCreates a state change button with a label, specifying an observer. To be used with the widget method in Swing Builder.
observerID
- the observer namemethodName
- observer's method nameelementLabel
- labelCreates a toggle button, specifying an observer. To be used with the widget method in Swing Builder.
observerID
- the observer namemethodName
- observer's method nameCreates a toggle button. To be used with the widget method in Swing Builder.
methodName
- default observer method nameCreates a toggle button with a label, specifying an observer. To be used with the widget method in Swing Builder.
observerID
- the observer namemethodName
- observer's method nameelementLabel
- labelCreates a toggle button with a label. To be used with the widget method in Swing Builder.
methodName
- default observer method nameelementLabel
- label