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
-
a
- parameter of map
-
ac
- critical value of a
-
c
-
-
dela
- delta a
-
eventHandled
- true if event handled
-
n
- approach to critical point
-
nchoice
- number of choice controls
-
nsign
- sign giving above or below critical point
-
precise
- true if last ac set by choice not text field
-
t
-
-
ScalemapControls(Scalemap, int)
-
-
action(Event, Object)
- Respond to events.
-
insets()
- Insets for layout
-
ncontrols()
- Number of controls
-
setChoices(int, int, int, int)
-
-
setFromChoices()
-
c
Choice c[]
t
TextField t[]
a
double a
- parameter of map
ac
double ac
- critical value of a
dela
double dela
- delta a
n
int n
- approach to critical point
nsign
int nsign
- sign giving above or below critical point
nchoice
int nchoice
- number of choice controls
precise
boolean precise
- true if last ac set by choice not text field
eventHandled
boolean eventHandled
- true if event handled
ScalemapControls
ScalemapControls(Scalemap target,
int n)
- Parameters:
- target - parent of type Scalemap
- n - number of controls
insets
public Insets insets()
- Insets for layout
- Overrides:
- insets in class Container
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
setFromChoices
public void setFromChoices()
setChoices
public void setChoices(int i1,
int i2,
int i3,
int i4)
ncontrols
public int ncontrols()
- Number of controls
- Returns:
- number of controls