Class SlideShow

java.lang.Object
  extended by SlideShow

public class SlideShow
extends java.lang.Object

Class that represents a slide show. A SlideShow has an array of pictures and a delay time between pictures and a title. The SlideShow can be viewed with the show() method


Field Summary
 Picture[] pictureArray
           
 
Constructor Summary
SlideShow()
          Constructor that takes no arguments
SlideShow(Picture[] pictArray)
          Constructor that takes an array of Pictures
SlideShow(Picture[] pictArray, int time)
          Constructor that takes an array of Pictures and a delay time between transitions
 
Method Summary
 Picture getPicture(int index)
          Method to get the Picture of the passed index
 java.lang.String getTitle()
          Method to get the title of the SlideShow
 int getWaitTime()
          Method to get the delay time between transitions
static void main(java.lang.String[] args)
           
 void setTitle(java.lang.String theTitle)
          Method to set the title for the SlideShow
 void show()
          Method to show the SlideShow
 java.lang.String toString()
          Method to return a string with information about this SlideShow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pictureArray

public Picture[] pictureArray
Constructor Detail

SlideShow

public SlideShow()
Constructor that takes no arguments


SlideShow

public SlideShow(Picture[] pictArray)
Constructor that takes an array of Pictures

Parameters:
pictArray - the Picture array to use

SlideShow

public SlideShow(Picture[] pictArray,
                 int time)
Constructor that takes an array of Pictures and a delay time between transitions

Parameters:
pictArray - the Picture array to use
time - the delay time between Pictures
Method Detail

getTitle

public java.lang.String getTitle()
Method to get the title of the SlideShow

Returns:
the title of the SlideShow

setTitle

public void setTitle(java.lang.String theTitle)
Method to set the title for the SlideShow

Parameters:
theTitle - the title to use for the SlideShow

getWaitTime

public int getWaitTime()
Method to get the delay time between transitions

Returns:
the delay time between transitions

getPicture

public Picture getPicture(int index)
Method to get the Picture of the passed index

Parameters:
index - the index of the Picture to return
Returns:
the Picture of the passed index

toString

public java.lang.String toString()
Method to return a string with information about this SlideShow

Overrides:
toString in class java.lang.Object
Returns:
a string with information about this SlideShow

show

public void show()
          throws java.lang.Exception
Method to show the SlideShow

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception