All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collage.ui.CollageApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----collage.ui.CollageApplet

public class CollageApplet
extends Applet
CollageSystem applet.

This class implements a GUI interface and controller for all components of the CollageSystem.

Version:
09 Jun 1997
Author:
Nils Schwabe

Variable Index

 o cgrDirectory
 o derivationResult
The derivation result object (created by this object).
 o envi
The environment object.
 o fileName
 o mainPanel
 o preview
 o selection
The derivation result selection object (created by this object).
 o showingEditor
 o switchButton
 o textArea

Constructor Index

 o CollageApplet()

Method Index

 o compileGrammar()
Parses the currently edited text.
 o getNextFrame()
Returns the nearest Frame instance that is a parent of this applet.
 o init()
 o loadGrammar()
Displays a file selector and loads a new grammar into the editor window.
 o saveGrammar(boolean)
Saves the currently edited grammar into a file.
 o showTitle()
Shows the window title, containing the name of the current collage grammar file.
 o start()
 o stop()
 o switchToEditor()
Switches to the editor window.
 o switchToPreviewer()
Switches to the preview (2D view) window.

Variables

 o mainPanel
  protected Panel mainPanel
 o preview
  protected Previewer preview
 o textArea
  protected TextArea textArea
 o cgrDirectory
  protected String cgrDirectory
 o fileName
  protected String fileName
 o showingEditor
  protected boolean showingEditor
 o switchButton
  protected Button switchButton
 o envi
  protected Envi envi
The environment object. The environment is created by this object.

 o derivationResult
  protected DerivationResult derivationResult
The derivation result object (created by this object).

 o selection
  protected DerivationResultSelection selection
The derivation result selection object (created by this object).

Constructors

 o CollageApplet
  public CollageApplet()

Methods

 o init
  public void init()
Overrides:
init in class Applet
 o start
  public void start()
Overrides:
start in class Applet
 o stop
  public void stop()
Overrides:
stop in class Applet
 o getNextFrame
  protected Frame getNextFrame()
Returns the nearest Frame instance that is a parent of this applet.

 o showTitle
  protected void showTitle()
Shows the window title, containing the name of the current collage grammar file.

 o loadGrammar
  protected void loadGrammar()
Displays a file selector and loads a new grammar into the editor window.

 o saveGrammar
  protected void saveGrammar(boolean saveAs)
Saves the currently edited grammar into a file.

Parameters:
saveAs - Display a file selector, save under current name otherwise.
 o compileGrammar
  protected void compileGrammar()
Parses the currently edited text. If successfully, the environment object is changed, old displays are deregistered and new ones are registered, and the environment change is announced to registered listeners (which causes all views and displays to update their state).

 o switchToEditor
  protected void switchToEditor()
Switches to the editor window.

 o switchToPreviewer
  protected void switchToPreviewer()
Switches to the preview (2D view) window.


All Packages  Class Hierarchy  This Package  Previous  Next  Index