All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.player.event.SampleEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----guinea.player.event.SampleEvent

public class SampleEvent
extends EventObject
Sample events are sent by samples when interesting things happen.


Variable Index

· frame
Timestamp of event.
· LOOPED
Sample event type, sample looped.
· POSCHANGE
Sample event type, notification of current position in sample.
· STARTED
Sample event type, sample has started.
· STOPPED
Sample event type, sample has stopped.
· type
Event type.

Constructor Index

· SampleEvent(Object)
Create a new sample event.
· SampleEvent(Object, int, long)
Create a new sample with specified type and timestamp.

Method Index

· getFrame()
Get timestamp of event.
· getSample()
Get source as a SoundSample instead of Object.
· getType()
Get type of event.
· toString()
Return a string representation of the event.

Variables

· STARTED
 public static final int STARTED
Sample event type, sample has started.

· STOPPED
 public static final int STOPPED
Sample event type, sample has stopped.

· LOOPED
 public static final int LOOPED
Sample event type, sample looped.

· POSCHANGE
 public static final int POSCHANGE
Sample event type, notification of current position in sample.

· frame
 protected long frame
Timestamp of event.

· type
 protected int type
Event type.

Constructors

· SampleEvent
 public SampleEvent(Object source)
Create a new sample event.

Parameters:
source - source of event.
· SampleEvent
 public SampleEvent(Object source,
                    int type,
                    long frame)
Create a new sample with specified type and timestamp.

Parameters:
source - source of event.
frame - timestamp of event.

Methods

· getSample
 public SoundSample getSample()
Get source as a SoundSample instead of Object.

· getFrame
 public long getFrame()
Get timestamp of event.

· getType
 public int getType()
Get type of event.

· toString
 public String toString()
Return a string representation of the event.

Overrides:
toString in class EventObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index