GP.Graphics
Class Sound

java.lang.Object
  |
  +--GP.Graphics.Shape
        |
        +--GP.Graphics.Image
              |
              +--GP.Graphics.Sound
All Implemented Interfaces:
Behavioral, Colorable, Graphic, Movable, Orientable, Originable, Playable, Positionable, Reactive, Refreshable, Scalable, Selectable, Viewable

public class Sound
extends Image


Fields inherited from class GP.Graphics.Shape
ourNumShapes
 
Constructor Summary
Sound(Container container, java.lang.String soundFileName)
           
Sound(Container container, java.lang.String soundFileName, java.lang.String imageFileName)
           
Sound(java.lang.String soundFileName)
           
Sound(java.lang.String soundFileName, java.lang.String imageFileName)
           
 
Method Summary
 void Play()
          This method should tell the object to start playing.
 void React()
          This method is automatically called when the user clicks (presses and releases the mouse button) inside the object.
 void Stop()
          This method should tell the object to stop what it is doing.
 
Methods inherited from class GP.Graphics.Image
Copy, GetAWTImage, GetName, GetSize, Initialized, Scale, SetAWTImage, SetSize, toString
 
Methods inherited from class GP.Graphics.Shape
Act, AddBehavior, ApplyBehaviors, ApplyInstincts, DeSelect, equals, Fill, Frame, GetApplet, GetBoxBoundedSize, GetColor, GetContainer, GetCurrentTime, GetFillStyle, GetOrientation, GetPivot, GetPosition, Hide, IsPositionInside, IsVisible, Move, Move, Move, MoveBackward, MoveForward, MoveToBack, MoveToFront, Pause, PositionIsOnlyInsideMe, PreferedSize, Refresh, RemoveAllBehaviors, RemoveBehavior, ReplaceAllBehaviors, Scale, Scale, Select, SetColor, SetContainer, SetFillStyle, SetOrientation, SetPivot, SetPosition, Show, Show, Start, Turn, Turn, Turn, Turn, Turn, Turn
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sound

public Sound(java.lang.String soundFileName)

Sound

public Sound(java.lang.String soundFileName,
             java.lang.String imageFileName)

Sound

public Sound(Container container,
             java.lang.String soundFileName)

Sound

public Sound(Container container,
             java.lang.String soundFileName,
             java.lang.String imageFileName)
Method Detail

React

public void React()
Description copied from class: Shape
This method is automatically called when the user clicks (presses and releases the mouse button) inside the object. The programer should never need to call this method directly. The programer should override this method in a subclass to do something useful.
Overrides:
React in class Shape

Play

public void Play()
Description copied from interface: Playable
This method should tell the object to start playing.
Overrides:
Play in class Shape

Stop

public void Stop()
Description copied from interface: Playable
This method should tell the object to stop what it is doing.
Overrides:
Stop in class Shape