Class F

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----F

public class F
extends Applet
implements UpdateState
This class produces the color conversion applet.


Variable Index

 o buttons
Color space selector buttons
 o frames
Color space frames
 o msg_processor
Message processor that provides communication among color space frames.
 o rgb
These RGB coordinates are used to create new color frames.

Constructor Index

 o F()
Constructs the color space conversion applet.

Method Index

 o action(Event, Object)
Processes the color space selector button click event and activates the selected color space frame.
 o stop()
Disposes of all active frame and enables all buttons when the browser leaves this page.
 o updateState(int)
This method is called from the message processor when a button becomes enabled.

Variables

 o buttons
 Button buttons[]
Color space selector buttons

 o frames
 ColorSpaceFrame frames[]
Color space frames

 o msg_processor
 MessageProcessor msg_processor
Message processor that provides communication among color space frames.

 o rgb
 RGBCoord rgb
These RGB coordinates are used to create new color frames. The reference is passed to all frames to modify.

Constructors

 o F
 public F()
Constructs the color space conversion applet.

Methods

 o stop
 public void stop()
Disposes of all active frame and enables all buttons when the browser leaves this page.

Overrides:
stop in class Applet
 o updateState
 public void updateState(int button_enabled)
This method is called from the message processor when a button becomes enabled.

Parameters:
button_enabled - number of the button to enable.
 o action
 public boolean action(Event ev,
                       Object arg)
Processes the color space selector button click event and activates the selected color space frame.

Overrides:
action in class Component