All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collage.ui.PreviewDisplay

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

public class PreviewDisplay
extends Panel
implements MouseListener, MouseMotionListener
CollageSystem Preview display.

Note: Don't get confused by the name, this class does not implement the Display interface. It is merely a helper class for the class Previewer.


Variable Index

 o curCollage
The currently displayed collage.
 o curEnvi
Reference to the collage grammar environment.
 o display
Collage AWT display
 o hotSpot1
Hot spots for drag operations and origin offset.
 o initMessage
 o label
Message strings to be shown in the preview window.
 o markColor
Color of marks
 o offgraphics
 o offscreen
Off-screen image.
 o offscreensize
 o offset
Hot spots for drag operations and origin offset.

Constructor Index

 o PreviewDisplay()

Method Index

 o displayCollage(Envi, Collage, int, int)
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
Creates the offscreen and blits it to the screen.
 o resetView()
 o showMessage(String)
 o update(Graphics)
Does not clear the background.
 o zoomIn()
 o zoomOut()

Variables

 o offscreen
  protected Image offscreen
Off-screen image. This is used to avoid flickering when dragging the displayed collages.

 o offscreensize
  protected Dimension offscreensize
 o offgraphics
  protected Graphics offgraphics
 o display
  protected AWTDisplay display
Collage AWT display

 o curCollage
  protected Collage curCollage
The currently displayed collage.

 o curEnvi
  protected Envi curEnvi
Reference to the collage grammar environment.

 o hotSpot1
  protected Point hotSpot1
Hot spots for drag operations and origin offset.

 o offset
  protected Point offset
Hot spots for drag operations and origin offset.

 o label
  protected Label label
Message strings to be shown in the preview window.

 o initMessage
  protected final String initMessage
 o markColor
  protected final Color markColor
Color of marks

Constructors

 o PreviewDisplay
  public PreviewDisplay()

Methods

 o displayCollage
  public void displayCollage(Envi envi,
                             Collage collage,
                             int index,
                             int total)
 o zoomIn
  public void zoomIn()
 o zoomOut
  public void zoomOut()
 o resetView
  public void resetView()
 o showMessage
  public void showMessage(String msg)
 o update
  public void update(Graphics g)
Does not clear the background. Simply calls paint().

Overrides:
update in class Component
 o paint
  public void paint(Graphics g)
Creates the offscreen and blits it to the screen.

Overrides:
paint in class Container
 o mouseClicked
  public void mouseClicked(MouseEvent event)
 o mousePressed
  public void mousePressed(MouseEvent event)
 o mouseReleased
  public void mouseReleased(MouseEvent event)
 o mouseEntered
  public void mouseEntered(MouseEvent event)
 o mouseExited
  public void mouseExited(MouseEvent event)
 o mouseDragged
  public void mouseDragged(MouseEvent event)
 o mouseMoved
  public void mouseMoved(MouseEvent event)

All Packages  Class Hierarchy  This Package  Previous  Next  Index