Class marimba.gui.PlayerPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.PlayerPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----marimba.gui.PlayerPanel

public class PlayerPanel
extends Panel
implements WidgetConstants
A Panel for displaying Presentations. This class takes care of all the event distribution and paiting for the presentation.
Version:
1.80, 01/17/97
Author:
Arthur van Hoff

Variable Index

 o GFIX
 o nwidgets
 o presentation
 o widgets

Constructor Index

 o PlayerPanel()
Constructor
 o PlayerPanel(Object)
Constructor with context

Method Index

 o clearPopups()
Clear all popups.
 o currentFocus()
Return the current focus.
 o destroy()
Call this when the panel is disposed.
 o editing()
True when editing.
 o firstFocus()
Focus on the first widget.
 o fit()
Fit the presentation in the player.
 o flush()
Flush the backing store
 o getContext()
Get the player's context.
 o getDefaultButton()
Get the default button.
 o getDefaultButton(Widget)
Search for default button recursive.
 o getPresentation()
Get the current presentation.
 o handleEvent(Event)
Post an event to this presentation.
 o imageUpdate(Image, int, int, int, int, int)
Set the icon image once the image has arrived.
 o layout()
Layout this panel.
 o list(PrintStream, int)
Debugging only.
 o locateWidget(int, int)
Locate the top most widget located at position x,y in global coordinates.
 o minimumSize()
Minimum Size.
 o mouseLocation()
Mouse location.
 o paint(Graphics)
Paint the panel
 o paintOverlay(Graphics, int, int, int, int)
Paint the editor overlay.
 o postEvent(Event)
Put an event in the queue.
 o preferredSize()
Preferred Size
 o repaint()
Repaint everything.
 o repaint(long, int, int, int, int)
Repaint an area of the screen.
 o replacePresentation(Presentation)
Replace the current presentation.
 o setContext(Object)
Set the player's context.
 o setPresentation(Presentation)
Set the presentation.
 o start()
Call this when the panel is first shown on the screen.
 o stop()
Call this when the panel is taken from the screen.
 o update(Graphics)
Update the panel

Variables

 o GFIX
  public static boolean GFIX
 o presentation
  protected Presentation presentation
 o nwidgets
  protected int nwidgets
 o widgets
  protected PopupWidget widgets[]

Constructors

 o PlayerPanel
  public PlayerPanel()
Constructor
 o PlayerPanel
  public PlayerPanel(Object context)
Constructor with context

Methods

 o editing
  public boolean editing()
True when editing.
 o getPresentation
  public Presentation getPresentation()
Get the current presentation.
 o getContext
  public Object getContext()
Get the player's context.
 o setContext
  public void setContext(Object context)
Set the player's context.
 o getDefaultButton
  public Widget getDefaultButton()
Get the default button. Return null when no default button exists. If more default buttons exist, the first one found is returned.
 o getDefaultButton
  protected Widget getDefaultButton(Widget w)
Search for default button recursive.
 o mouseLocation
  public Point mouseLocation()
Mouse location. This will return null if the mouse is not inside the window.
 o setPresentation
  public void setPresentation(Presentation p)
Set the presentation.
 o replacePresentation
  protected void replacePresentation(Presentation p)
Replace the current presentation.
 o fit
  public void fit()
Fit the presentation in the player.
 o imageUpdate
  public boolean imageUpdate(Image img,
                             int flags,
                             int x,
                             int y,
                             int width,
                             int height)
Set the icon image once the image has arrived.
Overrides:
imageUpdate in class Component
 o preferredSize
  public Dimension preferredSize()
Preferred Size
Overrides:
preferredSize in class Container
 o minimumSize
  public Dimension minimumSize()
Minimum Size.
Overrides:
minimumSize in class Container
 o layout
  public void layout()
Layout this panel.
Overrides:
layout in class Container
 o paintOverlay
  public void paintOverlay(Graphics g,
                           int x,
                           int y,
                           int width,
                           int height)
Paint the editor overlay.
 o paint
  public void paint(Graphics g)
Paint the panel
Overrides:
paint in class Component
 o update
  public void update(Graphics g)
Update the panel
Overrides:
update in class Component
 o repaint
  public void repaint()
Repaint everything.
Overrides:
repaint in class Component
 o repaint
  public void repaint(long tm,
                      int x,
                      int y,
                      int width,
                      int height)
Repaint an area of the screen.
Overrides:
repaint in class Component
 o start
  public void start()
Call this when the panel is first shown on the screen.
 o stop
  public void stop()
Call this when the panel is taken from the screen.
 o destroy
  public void destroy()
Call this when the panel is disposed.
 o clearPopups
  public synchronized void clearPopups()
Clear all popups.
 o currentFocus
  public Widget currentFocus()
Return the current focus.
 o firstFocus
  public void firstFocus()
Focus on the first widget.
 o locateWidget
  public Widget locateWidget(int x,
                             int y)
Locate the top most widget located at position x,y in global coordinates.
 o handleEvent
  public boolean handleEvent(Event evt)
Post an event to this presentation.
Overrides:
handleEvent in class Component
 o postEvent
  public boolean postEvent(Event evt)
Put an event in the queue.
Overrides:
postEvent in class Component
 o flush
  public static void flush()
Flush the backing store
 o list
  public void list(PrintStream out,
                   int indent)
Debugging only.
Overrides:
list in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index