|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manages the demonstration of projects. Though currently only one project at a time can be demonstrated, the managing capabilities for more are available here. Also checks for state errors (e.g. stopping a demo that isn't started).
Method Summary | |
Demonstrator |
getDemonstrator(Project project)
Returns the demonstrator for a project. |
void |
pause(Project project)
Pauses the demonstration of a project. |
void |
start(Project project,
GraphicsControl graphicsControl)
Starts the demonstration of a project. |
void |
stop(Project project)
Stops the demonstration of a project. |
boolean |
wasDemonstrated(Project project)
Returns whether a project has already been demonstrated |
Method Detail |
public void start(Project project, GraphicsControl graphicsControl) throws WrongStateException
project
- the projectgraphicsControl
- object that controls the graphics of this project
WrongStateException
- if the project is already being demonstratedpublic void pause(Project project) throws WrongStateException
project
- the project
WrongStateException
- if the project isn't being demonstratedpublic void stop(Project project) throws WrongStateException
project
- the project
WrongStateException
- if the project isn't being demonstratedpublic boolean wasDemonstrated(Project project)
project
- the project
public Demonstrator getDemonstrator(Project project) throws WrongStateException
project
- the project
WrongStateException
- if the project wasn't demonstrated yet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |