|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSlideShow
public class SlideShow
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 |
---|
public Picture[] pictureArray
Constructor Detail |
---|
public SlideShow()
public SlideShow(Picture[] pictArray)
pictArray
- the Picture array to usepublic SlideShow(Picture[] pictArray, int time)
pictArray
- the Picture array to usetime
- the delay time between PicturesMethod Detail |
---|
public java.lang.String getTitle()
public void setTitle(java.lang.String theTitle)
theTitle
- the title to use for the SlideShowpublic int getWaitTime()
public Picture getPicture(int index)
index
- the index of the Picture to return
public java.lang.String toString()
toString
in class java.lang.Object
public void show() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |