Class ScalemapControls

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ScalemapControls

class ScalemapControls
extends Panel
Adds choices and associated text fields for Scalemap


Variable Index

 o a
parameter of map
 o ac
critical value of a
 o c
 o dela
delta a
 o eventHandled
true if event handled
 o n
approach to critical point
 o nchoice
number of choice controls
 o nsign
sign giving above or below critical point
 o precise
true if last ac set by choice not text field
 o t

Constructor Index

 o ScalemapControls(Scalemap, int)

Method Index

 o action(Event, Object)
Respond to events.
 o insets()
Insets for layout
 o ncontrols()
Number of controls
 o setChoices(int, int, int, int)
 o setFromChoices()

Variables

 o c
 Choice c[]
 o t
 TextField t[]
 o a
 double a
parameter of map

 o ac
 double ac
critical value of a

 o dela
 double dela
delta a

 o n
 int n
approach to critical point

 o nsign
 int nsign
sign giving above or below critical point

 o nchoice
 int nchoice
number of choice controls

 o precise
 boolean precise
true if last ac set by choice not text field

 o eventHandled
 boolean eventHandled
true if event handled

Constructors

 o ScalemapControls
 ScalemapControls(Scalemap target,
                  int n)
Parameters:
target - parent of type Scalemap
n - number of controls

Methods

 o insets
 public Insets insets()
Insets for layout

Overrides:
insets in class Container
 o action
 public boolean action(Event evt,
                       Object arg)
Respond to events. Updates associated text field for choice and vice versa Updates a and nfun in parent

Overrides:
action in class Component
 o setFromChoices
 public void setFromChoices()
 o setChoices
 public void setChoices(int i1,
                        int i2,
                        int i3,
                        int i4)
 o ncontrols
 public int ncontrols()
Number of controls

Returns:
number of controls