All Packages Class Hierarchy This Package Previous Next Index
Class ChaosDemos.buttonControls
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ChaosDemos.buttonControls
- public class buttonControls
- extends Panel
Class to install n labelled buttons.
Enables and disables buttons depending on
b_init, b_started and b_stoped.
- Version:
- March 15 1997
- Author:
- Michael Cross
-
b_init
- vector: set element to true for this button to be enabled on
initializing
-
b_started
- vector: set element to true for this button to be enabled on
starting iteration
-
b_stopped
- vector: set element to true for this button to be enabled on
stopping iteration
-
horizontal
- set to true for horizontal arrangement of buttons
-
buttonControls(dynamicGraph, String[], int)
-
-
buttonControls(dynamicGraph, String[], int, boolean)
-
-
action(Event, Object)
- Handle button events: calls respondToButtons(int i) in
parent.
-
disableAll()
- Disable all buttons
-
disableGo()
- Set buttons to iterating configuration
-
enableAll()
- Enable all buttons
-
enableGo()
- Set buttons to stopped configuration
-
setup()
- Initial setup of buttons
Call after setting b_init
b_init
public boolean b_init[]
- vector: set element to true for this button to be enabled on
initializing
b_started
public boolean b_started[]
- vector: set element to true for this button to be enabled on
starting iteration
b_stopped
public boolean b_stopped[]
- vector: set element to true for this button to be enabled on
stopping iteration
horizontal
public boolean horizontal
- set to true for horizontal arrangement of buttons
buttonControls
public buttonControls(dynamicGraph target,
String intext[],
int n)
- Parameters:
- target - parent of type dynamicGraph
- intext - vector of button labels
- n - number of buttons
buttonControls
public buttonControls(dynamicGraph target,
String intext[],
int n,
boolean inHorizontal)
- Parameters:
- target - parent of type dynamicGraph
- intext - vector of button labels
- n - number of buttons
- inHorizontal - true for horizontal arrangement of buttons
setup
public void setup()
- Initial setup of buttons
Call after setting b_init
enableAll
public void enableAll()
- Enable all buttons
disableAll
public void disableAll()
- Disable all buttons
enableGo
public void enableGo()
- Set buttons to stopped configuration
disableGo
public void disableGo()
- Set buttons to iterating configuration
action
public boolean action(Event evt,
Object arg)
- Handle button events: calls respondToButtons(int i) in
parent.
- Overrides:
- action in class Component
All Packages Class Hierarchy This Package Previous Next Index