com.hermetica.util3d
Interface demoTemplate


public abstract interface demoTemplate

Base class that all demo programs should subclass from to provide a standard framework that allows us to use a GUI demo bootstrapper. In our demos, we really ought to have blank constructors, since the booter will create a new instance of the class to read information about the demo from it, and we don't necessarily wish it to pop up windows left right and centre!

Version:
$Id: demoTemplate.java,v 1.4 1998/04/21 13:52:36 descarte Exp descarte $
Author:
Alligator Descartes

Method Summary
 java.lang.String getDescription()
          Returns the description of this demo
 int getHeight()
          Returns the height of this demo
 java.lang.String getName()
          Returns the name of the demo
 java.lang.String getOriginalAuthor()
          Returns the original author of this demo
 java.lang.String getVersion()
          Returns the version information for the demo
 int getWidth()
          Returns the width of this demo
 void setExit(boolean state)
          Sets whether or not the demo will call System.exit()
 void startDemo()
          Starts the demonstration running.
 

Method Detail

startDemo

public void startDemo()
Starts the demonstration running. This'll usually create the frame and so on.

getName

public java.lang.String getName()
Returns the name of the demo

getVersion

public java.lang.String getVersion()
Returns the version information for the demo

getDescription

public java.lang.String getDescription()
Returns the description of this demo

getWidth

public int getWidth()
Returns the width of this demo

getHeight

public int getHeight()
Returns the height of this demo

getOriginalAuthor

public java.lang.String getOriginalAuthor()
Returns the original author of this demo

setExit

public void setExit(boolean state)
Sets whether or not the demo will call System.exit()