javax.media
Class RateChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.ControllerEvent
                    |
                    +--javax.media.RateChangeEvent

public class RateChangeEvent
extends ControllerEvent

A RateChangeEvent is a ControllerEvent that is posted when a Controller's rate changes.

See Also:
Controller, ControllerListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RateChangeEvent(Controller from, float newRate)
           
 
Method Summary
 float getRate()
          Get the new rate of the Controller that generated this event.
 java.lang.String toString()
          Returns the String representation of this event's values.
 
Methods inherited from class javax.media.ControllerEvent
getSource, getSourceController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RateChangeEvent

public RateChangeEvent(Controller from,
                       float newRate)
Method Detail

getRate

public float getRate()
Get the new rate of the Controller that generated this event.
Returns:
The Controller's new rate.

toString

public java.lang.String toString()
Returns the String representation of this event's values.
Overrides:
toString in class ControllerEvent