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

Class marimba.gui.Presentation

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ContainerWidget
                   |
                   +----marimba.gui.GroupWidget
                           |
                           +----marimba.gui.Presentation

public class Presentation
extends GroupWidget
This class represents a presentation. A presentation is a top level widget that can be saved to a file. It takes care of the administration of external resources.
Version:
1.66, 01/17/97
Author:
Arthur van Hoff

Variable Index

 o base
The base of this presentation.
 o cursor
The current mouse cursor for this presentation.
 o cursorOptions
The possible options for the mouse cursor.
 o defaultCursor
The mouse cursor for this presentation.
 o error
 o icon
The name of the file containing the icon for this presentation.
 o loader
The class loader for this presentation.
 o resizable
Determines whether this presentation can be resized.
 o saved
 o selBackground
The background color for selections.
 o selForeground
The foreground color for selections.
 o title
The title of this presentation, displayed in the title bar when this presentation is run.

Constructor Index

 o Presentation()
Constructor.
 o Presentation(URL)
Construct a new presentation.

Method Index

 o addBase(String, String)
Add a base URL.
 o addBase(String, URL)
Add a base URL.
 o findWidget(String)
Find a widget in this presentation.
 o getAudioClip(String)
Get an audio clip.
 o getAudioClipAt(URL)
Get an audio clip using a url.
 o getBase()
Get the base of this presentation
 o getCursor()
Get the current mouse cursor.
 o getCursorOptions()
Get the possible options for the mouse cursor.
 o getDefaultCursor()
Get the default mouse cursor.
 o getIcon()
Get the icon.
 o getImage(String)
Get an image.
 o getPresentation()
Get the presentation.
 o getPresentation(String)
Get a presentation from a file
 o getPresentation(URL)
Get a presentation from a url.
 o getProperties(PropertyList)
Get properties.
 o getSelBackground()
Get background selection color.
 o getSelForeground()
Get foreground selection color.
 o getTitle()
Get the title of this presentation.
 o getURL(String)
Construct the absolute URL for a resource.
 o getURL(URL, String)
Construct the absolute URL for a resource.
 o getURLClassLoader()
Get the class loader for this presentation.
 o handleEvent(Event)
Handle an event.
 o isResizable()
Check whether this presentation is resizable.
 o newInstance(String)
Create an instance of a class in the context of this presentation.
 o paramString(StringBuffer)
For debugging only.
 o replace(Widget)
Make sure to set the right presentation in the player if this one is replaced.
 o resetCursor()
Reset the current cursor to the default one.
 o setBase(URL)
Set the base of this presentation, the loader is set to the current class loader from the threadgroup.
 o setBase(URL, URLClassLoader)
Set the base and class loader of this presentation
 o setCursor(int)
Set the current mouse cursor.
 o setDefaultCursor(int)
Set the default mouse cursor.
 o setIcon(String)
Set the icon.
 o setProperties(PropertyList)
Set the properties.
 o setResizable(boolean)
Enable/disable resizing this presentation.
 o setSelBackground(Color)
Set background selection color.
 o setSelColors(Color, Color)
Set both selection colors at once.
 o setSelForeground(Color)
Set foreground selection color.
 o setTitle(String)
Set the title of this presentation.

Variables

 o saved
  public boolean saved
 o error
  public static boolean error
 o cursorOptions
  public static Options cursorOptions
The possible options for the mouse cursor.
See Also:
getCursorOptions, cursor
 o base
  public URL base
The base of this presentation. Relative pathnames will start with this base.
See Also:
getBase, setBase
 o title
  public String title
The title of this presentation, displayed in the title bar when this presentation is run.
See Also:
getTitle, setTitle
 o icon
  public String icon
The name of the file containing the icon for this presentation.
See Also:
getIcon, setIcon
 o defaultCursor
  public int defaultCursor
The mouse cursor for this presentation. The constants for the cursor are defined in java.awt.Frame.
See Also:
getDefaultCursor, setDefaultCursor, resetCursor, cursorOptions
 o cursor
  public int cursor
The current mouse cursor for this presentation.
See Also:
getCursor, setCursor, defaultCursor
 o resizable
  public boolean resizable
Determines whether this presentation can be resized.
See Also:
isResizable, setResizable
 o selForeground
  public Color selForeground
The foreground color for selections.
See Also:
getSelForeground, setSelForeground, setSelColors
 o selBackground
  public Color selBackground
The background color for selections.
See Also:
getSelBackground, setSelBackground, setSelColors
 o loader
  public URLClassLoader loader
The class loader for this presentation.
See Also:
getURLClassLoader, setBase

Constructors

 o Presentation
  public Presentation()
Constructor.
 o Presentation
  public Presentation(URL base)
Construct a new presentation.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get properties.
Overrides:
getProperties in class GroupWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties.
Overrides:
setProperties in class GroupWidget
 o setSelForeground
  public void setSelForeground(Color selForeground)
Set foreground selection color.
See Also:
selForeground
 o setSelBackground
  public void setSelBackground(Color selBackground)
Set background selection color.
See Also:
selBackground
 o setSelColors
  public void setSelColors(Color selForeground,
                           Color selBackGround)
Set both selection colors at once.
See Also:
selForeground, selBackground
 o getSelForeground
  public Color getSelForeground()
Get foreground selection color.
Overrides:
getSelForeground in class Widget
See Also:
selForeground
 o getSelBackground
  public Color getSelBackground()
Get background selection color.
Overrides:
getSelBackground in class Widget
See Also:
selBackground
 o replace
  public void replace(Widget newWidget)
Make sure to set the right presentation in the player if this one is replaced.
Overrides:
replace in class Widget
 o getPresentation
  public Presentation getPresentation()
Get the presentation.
Overrides:
getPresentation in class Widget
 o getURLClassLoader
  public URLClassLoader getURLClassLoader()
Get the class loader for this presentation. This may return null.
See Also:
loader
 o getBase
  public URL getBase()
Get the base of this presentation
See Also:
base
 o setBase
  public void setBase(URL base)
Set the base of this presentation, the loader is set to the current class loader from the threadgroup.
See Also:
base, loader
 o setBase
  public void setBase(URL base,
                      URLClassLoader loader)
Set the base and class loader of this presentation
See Also:
base, loader
 o getTitle
  public String getTitle()
Get the title of this presentation.
See Also:
title
 o setTitle
  public void setTitle(String title)
Set the title of this presentation. This will change the title of the window if this presentation is embedded in a PlayerPanel who's parent is a Frame.
See Also:
title
 o getIcon
  public String getIcon()
Get the icon.
See Also:
icon
 o setIcon
  public void setIcon(String icon)
Set the icon.
See Also:
icon
 o getCursorOptions
  public Options getCursorOptions()
Get the possible options for the mouse cursor.
See Also:
cursorOptions
 o getDefaultCursor
  public int getDefaultCursor()
Get the default mouse cursor.
See Also:
defaultCursor
 o setDefaultCursor
  public void setDefaultCursor(int defaultCursor)
Set the default mouse cursor.
See Also:
defaultCursor
 o getCursor
  public int getCursor()
Get the current mouse cursor.
Overrides:
getCursor in class Widget
See Also:
cursor
 o setCursor
  public void setCursor(int cursor)
Set the current mouse cursor.
Overrides:
setCursor in class Widget
See Also:
cursor
 o resetCursor
  public void resetCursor()
Reset the current cursor to the default one.
Overrides:
resetCursor in class Widget
See Also:
defaultCursor, cursor
 o isResizable
  public boolean isResizable()
Check whether this presentation is resizable.
See Also:
resizable
 o setResizable
  public void setResizable(boolean resizable)
Enable/disable resizing this presentation.
See Also:
resizable
 o addBase
  public static void addBase(String name,
                             URL url)
Add a base URL. This lets you refer to a resource using the ~name/foo notation.
 o addBase
  public static void addBase(String name,
                             String str)
Add a base URL. This lets you refer to a resource using the ~name/foo notation.
 o getURL
  public static URL getURL(URL base,
                           String url)
Construct the absolute URL for a resource.
 o getURL
  public URL getURL(String url)
Construct the absolute URL for a resource.
 o getImage
  public Image getImage(String src)
Get an image.
Overrides:
getImage in class Widget
 o getAudioClip
  public AudioClip getAudioClip(String src)
Get an audio clip.
Overrides:
getAudioClip in class Widget
 o getAudioClipAt
  public AudioClip getAudioClipAt(URL url)
Get an audio clip using a url.
Overrides:
getAudioClipAt in class Widget
 o findWidget
  public Widget findWidget(String nm)
Find a widget in this presentation.
Overrides:
findWidget in class ContainerWidget
 o newInstance
  public synchronized Object newInstance(String nm) throws ClassNotFoundException, IllegalAccessException, InstantiationException
Create an instance of a class in the context of this presentation. This means that the class can be located in the same area as the presentation.
 o getPresentation
  public static synchronized Presentation getPresentation(URL url)
Get a presentation from a url.
 o getPresentation
  public static Presentation getPresentation(String file)
Get a presentation from a file
 o paramString
  public void paramString(StringBuffer buf)
For debugging only.
Overrides:
paramString in class GroupWidget
 o handleEvent
  public boolean handleEvent(Event evt)
Handle an event.
Overrides:
handleEvent in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index