edu.rit.slides
Class SlideDescriptor

java.lang.Object
  extended by edu.rit.slides.SlideDescriptor

public class SlideDescriptor
extends Object

Class SlideDescriptor provides a slide descriptor in the Slides application. A slide descriptor consists of (1) the unihandle for the Projector object that owns the slide and (2) the slide ID (type Eoid) of the slide within that projector object.


Constructor Summary
SlideDescriptor(Projector theProjector, Eoid theSlideID)
          Construct a new slide descriptor.
 
Method Summary
 boolean equals(Object obj)
          Determine if this slide descriptor is equal to the given object.
 Projector getProjector()
          Obtain this slide descriptor's projector object.
 Eoid getSlideID()
          Obtain this slide descriptor's slide ID.
 int hashCode()
          Returns a hash code for this slide descriptor.
 String toString()
          Returns a string version of this slide descriptor.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SlideDescriptor

public SlideDescriptor(Projector theProjector,
                       Eoid theSlideID)
Construct a new slide descriptor.

Parameters:
theProjector - Unihandle for the projector object.
theSlideID - Slide ID within the projector object.
Throws:
NullPointerException - (unchecked exception) Thrown if theProjector is null or theSlideID is null.
Method Detail

getProjector

public Projector getProjector()
Obtain this slide descriptor's projector object.

Returns:
Unihandle for the projector object.

getSlideID

public Eoid getSlideID()
Obtain this slide descriptor's slide ID.

Returns:
Slide ID within the projector object.

equals

public boolean equals(Object obj)
Determine if this slide descriptor is equal to the given object.

Overrides:
equals in class Object
Parameters:
obj - Object to test.
Returns:
True if this slide descriptor is equal to obj, false otherwise.

hashCode

public int hashCode()
Returns a hash code for this slide descriptor.

Overrides:
hashCode in class Object

toString

public String toString()
Returns a string version of this slide descriptor.

Overrides:
toString in class Object


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