All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class demo.jcsp.ActivePresentation
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----jcsp.awt.ActivePanel
                                   |
                                   +----demo.jcsp.ActivePresentation
  -  public class ActivePresentation
  
-  extends ActivePanel
  
Process Diagram
 External View
 
  ______________________
 |                      |
 |  ActivePresentation  |
 |______________________|
 
 Internal View
 
  ________________________________________________________________________________
 |                                                                                |
 |                                      anim                                      |
 |            +------------------>------------+   +------------<----------------+ |
 |  __________|__________             ________|___|__                           | |
 | |                     |  control  |               |---------<--------------+ | |
 | | ActiveImageAnimator |--<--+--<--|               |---------<------------+ | | |
 | |_____________________|     |     |_______________|---------<----------+ | | | |
 |                             ^      | | |  |                            | | | | |
 |                             |      | | |  |                            | | | | |
 |                      +------+      | | |  | configColor[0]             | | | | |
 |                      |             | | |..v                      color ^ | | | |
 |                      |             | | |  |                            | | | | |
 |   ____________       |             | | |  |  ________________________  | | | | |
 |  |            |      |             | | v  | |                        | | | | | |
 |  | Substitute |--->--+             | | |  +-| ActiveCheckboxMenuItem |-+ | | | |
 |  |____________|      |             | | |    |________________________| | ^ ^ ^ |
 |          |           |             | | |                    :          | | | | |
 |          ^ previous  |             | | | configColor[n]     :          ^ | | | |
 |  ________|_______    |             v v |     _______________:________  | | | | |
 | |                |   |             | | |    |                        | | | | | |
 | | ActiveMenuItem |   |             | | +----| ActiveCheckboxMenuItem |-+ | | | |
 | |________________|   |             | |      |________________________|   | | | |
 |                      |             | |                                   | | | |
 |   ____________       |             | |       ________________________    | | | |
 |  |            |      |             | |      |                        |   | | | |
 |  | Substitute |--->--+             | |      | ActiveCheckboxMenuItem |---+ | | |
 |  |____________|                    | |      |________________________| pen | | |
 |          |                         | |                                     | | |
 |          ^ next                    | |configPointer                        | | |
 |  ________|_______                  | |     ________________________        | | |
 | |                |                 | |    |                        |       | | |
 | | ActiveMenuItem |                 | +----| ActiveCheckboxMenuItem |-------+ | |
 | |________________|                 |      |________________________| pointer | |
 |                                    |                                         | |
 |                                    |       ________________________          | |
 |                                    |      |                        |         | |
 |                                    +------| ActiveCheckboxMenuItem |---------+ |
 |                                 configPen |________________________| clear     |
 |                                                                                |
 |                                                             ActivePresentation |
 |________________________________________________________________________________|
 
 Description
 The ActivePresentation uses the ActiveImageAnimator to display a
 presentation of Images. The process contains several ActiveMenuItems
 to move the presentation forward and backward one frame. Enable the pen
 mode so the users can draw on the presentation and to change the colour
 of the pen.
  -  Author:
  
 -  P.D.Austin
 
  
  -  
	ActivePresentation(Image[])
   -   Construct a new ActivePresentation.
 
  
  -  
	addControlMenuItem(MenuItem)
   -   Adds a new MenuItem to the Control Menu.
  
 -  
	addSeparatorMenuItem(Menu)
   -   Adds a new Separator to the specified Menu.
  
 -  
	insertControlMenuItem(MenuItem, int)
   -   Inserts a new MenuItem to the Control Menu at the specified position.
 
  
ActivePresentation
 public ActivePresentation(Image images[])
  -  Construct a new ActivePresentation.
  
    -  Parameters:
    
 -  images - The images that make up the presentation
  
 
 
 
  
addControlMenuItem
 public void addControlMenuItem(MenuItem item)
  -  Adds a new MenuItem to the Control Menu. If the MenuItem is a CSProcess
 the item will be added to the Parallel construct.
  
    -  Parameters:
    
 -  item - the item to be added
  
 
 
 
addSeparatorMenuItem
 public void addSeparatorMenuItem(Menu menu)
  -  Adds a new Separator to the specified Menu.
  
    -  Parameters:
    
 -  menu - the menu to add the separator to.
  
 
 
 
insertControlMenuItem
 public void insertControlMenuItem(MenuItem item,
                                   int index)
  -  Inserts a new MenuItem to the Control Menu at the specified position.
 If the MenuItem is a CSProcess the item will be added to the Parallel
 construct.
  
    -  Parameters:
    
 -  item - the item to be added
    
-  index - the position in the menu to insert the MenuItem.
  
  
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index