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
.
-
curCollage
- The currently displayed collage.
-
curEnvi
- Reference to the collage grammar environment.
-
display
- Collage AWT display
-
hotSpot1
- Hot spots for drag operations and origin offset.
-
initMessage
-
-
label
- Message strings to be shown in the preview window.
-
markColor
- Color of marks
-
offgraphics
-
-
offscreen
- Off-screen image.
-
offscreensize
-
-
offset
- Hot spots for drag operations and origin offset.
-
PreviewDisplay()
-
-
displayCollage(Envi, Collage, int, int)
-
-
mouseClicked(MouseEvent)
-
-
mouseDragged(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mouseMoved(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
- Creates the offscreen and blits it to the screen.
-
resetView()
-
-
showMessage(String)
-
-
update(Graphics)
- Does not clear the background.
-
zoomIn()
-
-
zoomOut()
-
offscreen
protected Image offscreen
- Off-screen image. This is used to avoid flickering when dragging
the displayed collages.
offscreensize
protected Dimension offscreensize
offgraphics
protected Graphics offgraphics
display
protected AWTDisplay display
- Collage AWT display
curCollage
protected Collage curCollage
- The currently displayed collage.
curEnvi
protected Envi curEnvi
- Reference to the collage grammar environment.
hotSpot1
protected Point hotSpot1
- Hot spots for drag operations and origin offset.
offset
protected Point offset
- Hot spots for drag operations and origin offset.
label
protected Label label
- Message strings to be shown in the preview window.
initMessage
protected final String initMessage
markColor
protected final Color markColor
- Color of marks
PreviewDisplay
public PreviewDisplay()
displayCollage
public void displayCollage(Envi envi,
Collage collage,
int index,
int total)
zoomIn
public void zoomIn()
zoomOut
public void zoomOut()
resetView
public void resetView()
showMessage
public void showMessage(String msg)
update
public void update(Graphics g)
- Does not clear the background. Simply calls paint().
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Creates the offscreen and blits it to the screen.
- Overrides:
- paint in class Container
mouseClicked
public void mouseClicked(MouseEvent event)
mousePressed
public void mousePressed(MouseEvent event)
mouseReleased
public void mouseReleased(MouseEvent event)
mouseEntered
public void mouseEntered(MouseEvent event)
mouseExited
public void mouseExited(MouseEvent event)
mouseDragged
public void mouseDragged(MouseEvent event)
mouseMoved
public void mouseMoved(MouseEvent event)
All Packages Class Hierarchy This Package Previous Next Index