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
-
GFIX
-
-
nwidgets
-
-
presentation
-
-
widgets
-
-
PlayerPanel()
- Constructor
-
PlayerPanel(Object)
- Constructor with context
-
clearPopups()
- Clear all popups.
-
currentFocus()
- Return the current focus.
-
destroy()
- Call this when the panel is disposed.
-
editing()
- True when editing.
-
firstFocus()
- Focus on the first widget.
-
fit()
- Fit the presentation in the player.
-
flush()
- Flush the backing store
-
getContext()
- Get the player's context.
-
getDefaultButton()
- Get the default button.
-
getDefaultButton(Widget)
- Search for default button recursive.
-
getPresentation()
- Get the current presentation.
-
handleEvent(Event)
- Post an event to this presentation.
-
imageUpdate(Image, int, int, int, int, int)
- Set the icon image once the image has arrived.
-
layout()
- Layout this panel.
-
list(PrintStream, int)
- Debugging only.
-
locateWidget(int, int)
- Locate the top most widget located at position x,y
in global coordinates.
-
minimumSize()
- Minimum Size.
-
mouseLocation()
- Mouse location.
-
paint(Graphics)
- Paint the panel
-
paintOverlay(Graphics, int, int, int, int)
- Paint the editor overlay.
-
postEvent(Event)
- Put an event in the queue.
-
preferredSize()
- Preferred Size
-
repaint()
- Repaint everything.
-
repaint(long, int, int, int, int)
- Repaint an area of the screen.
-
replacePresentation(Presentation)
- Replace the current presentation.
-
setContext(Object)
- Set the player's context.
-
setPresentation(Presentation)
- Set the presentation.
-
start()
- Call this when the panel is first shown on the screen.
-
stop()
- Call this when the panel is taken from the screen.
-
update(Graphics)
- Update the panel
GFIX
public static boolean GFIX
presentation
protected Presentation presentation
nwidgets
protected int nwidgets
widgets
protected PopupWidget widgets[]
PlayerPanel
public PlayerPanel()
- Constructor
PlayerPanel
public PlayerPanel(Object context)
- Constructor with context
editing
public boolean editing()
- True when editing.
getPresentation
public Presentation getPresentation()
- Get the current presentation.
getContext
public Object getContext()
- Get the player's context.
setContext
public void setContext(Object context)
- Set the player's context.
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.
getDefaultButton
protected Widget getDefaultButton(Widget w)
- Search for default button recursive.
mouseLocation
public Point mouseLocation()
- Mouse location. This will return null if the
mouse is not inside the window.
setPresentation
public void setPresentation(Presentation p)
- Set the presentation.
replacePresentation
protected void replacePresentation(Presentation p)
- Replace the current presentation.
fit
public void fit()
- Fit the presentation in the player.
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
preferredSize
public Dimension preferredSize()
- Preferred Size
- Overrides:
- preferredSize in class Container
minimumSize
public Dimension minimumSize()
- Minimum Size.
- Overrides:
- minimumSize in class Container
layout
public void layout()
- Layout this panel.
- Overrides:
- layout in class Container
paintOverlay
public void paintOverlay(Graphics g,
int x,
int y,
int width,
int height)
- Paint the editor overlay.
paint
public void paint(Graphics g)
- Paint the panel
- Overrides:
- paint in class Component
update
public void update(Graphics g)
- Update the panel
- Overrides:
- update in class Component
repaint
public void repaint()
- Repaint everything.
- Overrides:
- repaint in class Component
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
start
public void start()
- Call this when the panel is first shown on the screen.
stop
public void stop()
- Call this when the panel is taken from the screen.
destroy
public void destroy()
- Call this when the panel is disposed.
clearPopups
public synchronized void clearPopups()
- Clear all popups.
currentFocus
public Widget currentFocus()
- Return the current focus.
firstFocus
public void firstFocus()
- Focus on the first widget.
locateWidget
public Widget locateWidget(int x,
int y)
- Locate the top most widget located at position x,y
in global coordinates.
handleEvent
public boolean handleEvent(Event evt)
- Post an event to this presentation.
- Overrides:
- handleEvent in class Component
postEvent
public boolean postEvent(Event evt)
- Put an event in the queue.
- Overrides:
- postEvent in class Component
flush
public static void flush()
- Flush the backing store
list
public void list(PrintStream out,
int indent)
- Debugging only.
- Overrides:
- list in class Container
All Packages Class Hierarchy This Package Previous Next Index