public class SlideShow
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
Picture[] |
pictureArray |
Constructor | Description |
---|---|
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
|
Modifier and Type | Method | Description |
---|---|---|
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
|
public Picture[] pictureArray
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 Picturespublic 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 returnpublic 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