edu.rit.slides
Class ProjectorObject

java.lang.Object
  extended by edu.rit.slides.ProjectorObject
All Implemented Interfaces:
Projector

public class ProjectorObject
extends Object
implements Projector

Class ProjectorObject provides an exported projector object in the Slides application. See interface Projector for a description of how screen objects interact with projector objects.

A ProjectorObject is responsible for getting the slides in a certain SlideShow displayed on all the screen objects in a theatre. The projector object does this by calling methods on a multihandle for interface Screen; all slide objects attached to this multihandle execute the method calls.


Constructor Summary
ProjectorObject()
          Construct a new projector object.
 
Method Summary
 void displayFirst()
          Display the first slide group in this projector's slide show.
 void displayLast()
          Display the last slide group in this projector's slide show.
 void displayNext()
          Display the next slide group in this projector's slide show.
 void displayPrevious()
          Display the previous slide group in this projector's slide show.
 void getSlide(Eoid theSlideID)
          Get the given slide from this projector.
 int getSlideGroupIndex()
          Returns the index of the slide group this projector is currently displaying.
 boolean isBlanked()
          Determine if the display is blanked.
 void setBlanked(boolean blanked)
          Blank or unblank the display.
 void setSlideShow(SlideShow theSlideShow)
          Set the slide show this projector will display.
 void setTheatre(Screen theTheatre)
          Set the theatre in which this projector object will participate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectorObject

public ProjectorObject()
Construct a new projector object. Initially, the projector object is not displaying a slide show and is not part of a theatre.

Method Detail

setTheatre

public void setTheatre(Screen theTheatre)
Set the theatre in which this projector object will participate.

Parameters:
theTheatre - Screen multihandle for the theatre, or null not to participate in a theatre.

setSlideShow

public void setSlideShow(SlideShow theSlideShow)
Set the slide show this projector will display. The projector starts by displaying the first slide group in the slide show.

Parameters:
theSlideShow - Slide show to display, or null not to display a slide show.

displayFirst

public void displayFirst()
Display the first slide group in this projector's slide show.


displayLast

public void displayLast()
Display the last slide group in this projector's slide show.


displayNext

public void displayNext()
Display the next slide group in this projector's slide show.


displayPrevious

public void displayPrevious()
Display the previous slide group in this projector's slide show.


getSlideGroupIndex

public int getSlideGroupIndex()
Returns the index of the slide group this projector is currently displaying. If this projector is not displaying any slide group, -1 is returned.


getSlide

public void getSlide(Eoid theSlideID)
Get the given slide from this projector.

Specified by:
getSlide in interface Projector
Parameters:
theSlideID - Slide ID (type Eoid).

setBlanked

public void setBlanked(boolean blanked)
Blank or unblank the display.

Parameters:
blanked - True to blank the display, false to unblank the display.

isBlanked

public boolean isBlanked()
Determine if the display is blanked.

Returns:
True if the display is blanked, false otherwise.


Copyright © 2001-2006 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.