|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.slides.ScreenObject
public class ScreenObject
Class ScreenObject provides an exported screen object in the Slides
application. See interface Screen
for a
description of how screen objects interact with projector objects.
A screen object maintains a separate SlideSet
object which contains the slides to be displayed. Whenever the slide set's
contents changes, the screen object notifies the associated
ScreenListener
. This notification, for example,
can be used to update a GUI display.
Field Summary |
---|
Fields inherited from interface edu.rit.slides.Screen |
---|
LEASE_TIME |
Constructor Summary | |
---|---|
ScreenObject(SlideSet theSlideSet,
ScreenListener theListener)
Construct a new screen object. |
Method Summary | |
---|---|
void |
availableSlides(Projector theProjector,
Eoid[] theSlideIDs)
Notify this screen that a projector has the given slides available. |
void |
displaySlides(Projector theProjector,
Eoid[] theSlideIDs)
Display the given slides on this screen. |
void |
putSlide(Projector theProjector,
Eoid theSlideID,
Slide theSlide)
Provide a slide from the given projector to this screen. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScreenObject(SlideSet theSlideSet, ScreenListener theListener)
theSlideSet
- Slide set to be maintained.theListener
- Screen listener to be notified when the slide set changes.
NullPointerException
- (unchecked exception) Thrown if theSlideSet is null or
theListener is null.Method Detail |
---|
public void availableSlides(Projector theProjector, Eoid[] theSlideIDs)
availableSlides
in interface Screen
theProjector
- Unihandle for the projector.theSlideIDs
- Array of zero or more slide IDs (type
Eoid
) the projector has available.public void putSlide(Projector theProjector, Eoid theSlideID, Slide theSlide)
putSlide
in interface Screen
theProjector
- Unihandle for the projector.theSlideID
- Slide ID (type
Eoid
).theSlide
- The slide itself.public void displaySlides(Projector theProjector, Eoid[] theSlideIDs)
displaySlides
in interface Screen
theProjector
- Unihandle for the projector that has the slides.theSlideIDs
- Array of zero or more slide IDs (type
Eoid
) the projector has available that are to be
displayed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |