org.jrabbit.standard.intro.base
Class ImageAudioIntro

java.lang.Object
  extended by org.jrabbit.standard.intro.base.ImageIntro
      extended by org.jrabbit.standard.intro.base.ImageAudioIntro
All Implemented Interfaces:
Renderable, Updateable, Createable, Destroyable, Intro
Direct Known Subclasses:
BaseLogoIntro

public abstract class ImageAudioIntro
extends ImageIntro

ImageAudioIntro extends ImageIntro to also allow a single clip of Sound to be loaded and used by the Intro.

Author:
Chris Molini

Field Summary
protected  SoundData sound
          The SoundData this Intro will utilize.
protected  Loader soundLoader
          The Loader that will load the desired SoundData.
 
Fields inherited from class org.jrabbit.standard.intro.base.ImageIntro
image, imageLoader
 
Constructor Summary
ImageAudioIntro(Loader imageLoader, Loader soundLoader)
          Creates an ImageAudioIntro that uses the Image and SoundData retrieved from the supplied Loaders.
ImageAudioIntro(java.lang.String imageFilepath, java.lang.String soundFilepath)
          Creates an ImageAudioIntro that uses the Image and SoundData retrieved from the indicated system locations.
 
Method Summary
 void create()
          Loads both the desired Image and the desired SoundData this Intro will use.
 void destroy()
          Destroys both the Image and SoundData used by this Intro.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jrabbit.standard.intro.Intro
finished, start
 
Methods inherited from interface org.jrabbit.base.core.types.Updateable
update
 
Methods inherited from interface org.jrabbit.base.core.types.Renderable
render
 

Field Detail

soundLoader

protected Loader soundLoader
The Loader that will load the desired SoundData.


sound

protected SoundData sound
The SoundData this Intro will utilize.

Constructor Detail

ImageAudioIntro

public ImageAudioIntro(java.lang.String imageFilepath,
                       java.lang.String soundFilepath)
Creates an ImageAudioIntro that uses the Image and SoundData retrieved from the indicated system locations.

Parameters:
imageFilepath - The system location of the source image.
soundFilepath - The system location of the source audio.

ImageAudioIntro

public ImageAudioIntro(Loader imageLoader,
                       Loader soundLoader)
Creates an ImageAudioIntro that uses the Image and SoundData retrieved from the supplied Loaders.

Parameters:
imageFilepath - The loader that accesses the desired source image.
soundFilepath - The loader that accesses the desired source sound.
Method Detail

create

public void create()
Loads both the desired Image and the desired SoundData this Intro will use.

Specified by:
create in interface Createable
Overrides:
create in class ImageIntro

destroy

public void destroy()
Destroys both the Image and SoundData used by this Intro.

Specified by:
destroy in interface Destroyable
Overrides:
destroy in class ImageIntro