All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collage.ui.Previewer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----collage.ui.Previewer

public class Previewer
extends Panel
implements Display
2D collage display class. This class implements a collage Display that outputs the collages (in 2D only) to the screen using AWT graphics functions.

Version:
11 Jun 1997
Author:
Nils Schwabe

Variable Index

 o canvas
The canvas that displays the current collage.
 o derivationResult
The result of the current derivation (back-reference).
 o list
The list that displays the currently available Display objects.
 o selection
The current selection (back-reference).

Constructor Index

 o Previewer(DerivationResultSelection)

Method Index

 o modelChange(ModelChangeEvent)
Called when the environment (Envi object) has changed.
 o showMessage(String)

Variables

 o derivationResult
  protected DerivationResult derivationResult
The result of the current derivation (back-reference).

 o selection
  protected DerivationResultSelection selection
The current selection (back-reference).

 o canvas
  protected PreviewDisplay canvas
The canvas that displays the current collage.

 o list
  protected ListOfDisplays list
The list that displays the currently available Display objects.

Constructors

 o Previewer
  public Previewer(DerivationResultSelection selection)

Methods

 o modelChange
  public void modelChange(ModelChangeEvent event)
Called when the environment (Envi object) has changed.

In response to any change in the environment model (grammar, parameters, whatever), a new derivation is carried out by this method, and the derivation result object, which is also a model, is changed. This change triggers all active views that display the result of a derivation, including the internal View object of this object.

 o showMessage
  public void showMessage(String msg)

All Packages  Class Hierarchy  This Package  Previous  Next  Index