Class apps.tests.TestSimpleViewer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class apps.tests.TestSimpleViewer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----apps.tests.TestSimpleViewer

public class TestSimpleViewer
extends Applet
The main class for the test program for SimpleViewer and ComputerGraphicsViewable.

Constructor Index

 o TestSimpleViewer()

Method Index

 o action(Event, Object)
Handle applet GUI events.
 o displayMsg(String)
Display a text message to the user.
 o getAppletInfo()
Provide information about this applet.
 o init()
Creation and initialization of user interface components, etc.
 o main(String[])
Main program for application entry point.
 o newViewable()
Display a new viewable in the frame.
 o start()
Things to be done after initialization.

Constructors

 o TestSimpleViewer
  public TestSimpleViewer()

Methods

 o main
  public static void main(String argv[])
Main program for application entry point.
Parameters:
argv - An array of Strings representing command line parameters
 o init
  public void init()
Creation and initialization of user interface components, etc.
Overrides:
init in class Applet
 o start
  public void start()
Things to be done after initialization.
Overrides:
start in class Applet
 o getAppletInfo
  public String getAppletInfo()
Provide information about this applet.
Returns:
A string containing information about this applet.
Overrides:
getAppletInfo in class Applet
 o displayMsg
  public final static void displayMsg(String msg)
Display a text message to the user.
Parameters:
msg - A string containing the message to display.
 o action
  public boolean action(Event ev,
                        Object obj)
Handle applet GUI events.
Parameters:
ev - The event that caused the action.
obj - The action.
Returns:
true if the event has been handled; false to pass it to parent.
Overrides:
action in class Component
 o newViewable
  public void newViewable()
Display a new viewable in the frame.

All Packages  Class Hierarchy  This Package  Previous  Next  Index