All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ChaosDemos.choiceControls

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ChaosDemos.choiceControls

public class choiceControls
extends Panel
Class to install n labelled yes/no choices.

Version:
March 15 1997
Author:
Michael Cross

Constructor Index

 o choiceControls(dynamicGraph, String[])

Method Index

 o action(Event, Object)
Handle button events: calls respondToButtons(int i) in parent.
 o disable(int)
Disable i th control
 o enable(int)
Enable i th control
 o getState(int)
Gets ith yes/no
 o setState(int, boolean)
Sets ith yes/no

Constructors

 o choiceControls
 public choiceControls(dynamicGraph target,
                       String intext[])
Parameters:
target - parent of type dynamicGraph
intext - vector of button labels

Methods

 o setState
 public void setState(int i,
                      boolean yesno)
Sets ith yes/no

Parameters:
i - index
yesno - true for yes; false for no
 o getState
 public boolean getState(int i)
Gets ith yes/no

Parameters:
i - index
Returns:
true for yes; false for no
 o action
 public boolean action(Event evt,
                       Object arg)
Handle button events: calls respondToButtons(int i) in parent.

Overrides:
action in class Component
 o enable
 public void enable(int i)
Enable i th control

 o disable
 public void disable(int i)
Disable i th control


All Packages  Class Hierarchy  This Package  Previous  Next  Index