All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class demo.jcsp.PresentationWindow

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----jcsp.awt.ActiveWindow
                                   |
                                   +----demo.jcsp.PresentationWindow

public class PresentationWindow
extends ActiveWindow

Process Diagram

External View

  ____________________
 |                    | event
 | PresentationWindow |--->---
 |____________________|
 

Internal View

  ________________________________________
 |  ___________     ____________________  |
 | |           |   |                    | | event
 | |           |   | ActivePresentation | |-->----
 | |___________|   |  ________________  | |
 |       |         | |                | | |
 |       +-----<-----| ActiveMenuItem | | |
 |           close | |________________| | |
 |                 |____________________| |
 |                                        |
 |                     PresentationWindow |
 |________________________________________|
 

Description

The PresentaionWindow extends the ActivePresentation process to have an extra MenuItem "End Show" on the control Menu that will cause the window to be closed. The Window used to display the presentation will consume the entire screen.

The anonymous CSProcess has an infinite loop that will read from the close Channel. Upon receiving any message it will hide the window and dispose of the resources.

Any WindowEvents will be sent down the event Channel.

Author:
P.D.Austin

Constructor Index

 o PresentationWindow(ChannelOutput, Frame, URL, String, String, int, int)
Construct a new PresentationWindow.

Constructors

 o PresentationWindow
 public PresentationWindow(ChannelOutput event,
                           Frame f,
                           URL path,
                           String fileName,
                           String fileExtension,
                           int numFrames,
                           int numPadding)
Construct a new PresentationWindow.

Parameters:
event - The output channel that WindowEvents will be sent down.
path - The URL to the path the images are in.
fileName - The fileName prefix of the image files.
fileExtension - The fileExtension of the image files.
numFrames - The number of images.
numPadding - The number of digits for the image number. Wsed to pad the image number with 0's if it is less than this number. If it was to image 1 would be padded to 01.

All Packages  Class Hierarchy  This Package  Previous  Next  Index