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

Variable Index

 o b_init
vector: set element to true for this button to be enabled on initializing
 o b_started
vector: set element to true for this button to be enabled on starting iteration
 o b_stopped
vector: set element to true for this button to be enabled on stopping iteration
 o horizontal
set to true for horizontal arrangement of buttons

Constructor Index

 o buttonControls(dynamicGraph, String[], int)
 o buttonControls(dynamicGraph, String[], int, boolean)

Method Index

 o action(Event, Object)
Handle button events: calls respondToButtons(int i) in parent.
 o disableAll()
Disable all buttons
 o disableGo()
Set buttons to iterating configuration
 o enableAll()
Enable all buttons
 o enableGo()
Set buttons to stopped configuration
 o setup()
Initial setup of buttons Call after setting b_init

Variables

 o b_init
 public boolean b_init[]
vector: set element to true for this button to be enabled on initializing

 o b_started
 public boolean b_started[]
vector: set element to true for this button to be enabled on starting iteration

 o b_stopped
 public boolean b_stopped[]
vector: set element to true for this button to be enabled on stopping iteration

 o horizontal
 public boolean horizontal
set to true for horizontal arrangement of buttons

Constructors

 o buttonControls
 public buttonControls(dynamicGraph target,
                       String intext[],
                       int n)
Parameters:
target - parent of type dynamicGraph
intext - vector of button labels
n - number of buttons
 o 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

Methods

 o setup
 public void setup()
Initial setup of buttons Call after setting b_init

 o enableAll
 public void enableAll()
Enable all buttons

 o disableAll
 public void disableAll()
Disable all buttons

 o enableGo
 public void enableGo()
Set buttons to stopped configuration

 o disableGo
 public void disableGo()
Set buttons to iterating configuration

 o 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