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
-
cgrDirectory
-
-
derivationResult
- The derivation result object (created by this object).
-
envi
- The environment object.
-
fileName
-
-
mainPanel
-
-
preview
-
-
selection
- The derivation result selection object (created by this object).
-
showingEditor
-
-
switchButton
-
-
textArea
-
-
CollageApplet()
-
-
compileGrammar()
- Parses the currently edited text.
-
getNextFrame()
- Returns the nearest
Frame
instance that is a
parent of this applet.
-
init()
-
-
loadGrammar()
- Displays a file selector and loads a new grammar into the editor window.
-
saveGrammar(boolean)
- Saves the currently edited grammar into a file.
-
showTitle()
- Shows the window title, containing the name of the current collage grammar file.
-
start()
-
-
stop()
-
-
switchToEditor()
- Switches to the editor window.
-
switchToPreviewer()
- Switches to the preview (2D view) window.
mainPanel
protected Panel mainPanel
preview
protected Previewer preview
textArea
protected TextArea textArea
cgrDirectory
protected String cgrDirectory
fileName
protected String fileName
showingEditor
protected boolean showingEditor
switchButton
protected Button switchButton
envi
protected Envi envi
- The environment object. The environment is created by this object.
derivationResult
protected DerivationResult derivationResult
- The derivation result object (created by this object).
selection
protected DerivationResultSelection selection
- The derivation result selection object (created by this object).
CollageApplet
public CollageApplet()
init
public void init()
- Overrides:
- init in class Applet
start
public void start()
- Overrides:
- start in class Applet
stop
public void stop()
- Overrides:
- stop in class Applet
getNextFrame
protected Frame getNextFrame()
- Returns the nearest
Frame
instance that is a
parent of this applet.
showTitle
protected void showTitle()
- Shows the window title, containing the name of the current collage grammar file.
loadGrammar
protected void loadGrammar()
- Displays a file selector and loads a new grammar into the editor window.
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.
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).
switchToEditor
protected void switchToEditor()
- Switches to the editor window.
switchToPreviewer
protected void switchToPreviewer()
- Switches to the preview (2D view) window.
All Packages Class Hierarchy This Package Previous Next Index