javax.media.format
Class FormatChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.media.MediaEvent
              |
              +--javax.media.ControllerEvent
                    |
                    +--javax.media.format.FormatChangeEvent
Direct Known Subclasses:
SizeChangeEvent

public class FormatChangeEvent
extends ControllerEvent

A FormatChangeEvent is posted by a Controller when the Format of its media changes.

See Also:
Serialized Form

Field Summary
protected  Format newFormat
           
protected  Format oldFormat
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FormatChangeEvent(Controller source)
          Constructs a FormatChangeEvent.
FormatChangeEvent(Controller source, Format oldFormat, Format newFormat)
          Constructs a FormatChangeEvent, indicating the old Format and the new Format.
 
Method Summary
 Format getNewFormat()
          Gets the object's new Format.
 Format getOldFormat()
          Gets the object's old Format.
 
Methods inherited from class javax.media.ControllerEvent
getSource, getSourceController, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

oldFormat

protected Format oldFormat

newFormat

protected Format newFormat
Constructor Detail

FormatChangeEvent

public FormatChangeEvent(Controller source)
Constructs a FormatChangeEvent.
Parameters:
source - The Controller that generated this event.

FormatChangeEvent

public FormatChangeEvent(Controller source,
                         Format oldFormat,
                         Format newFormat)
Constructs a FormatChangeEvent, indicating the old Format and the new Format.
Parameters:
source - The Controller that generated this event.
oldFormat - The Controller object's old Format.
newFormat - The Controller object's new Format.
Method Detail

getOldFormat

public Format getOldFormat()
Gets the object's old Format.
Returns:
A Format that describes the Controller object's original format.

getNewFormat

public Format getNewFormat()
Gets the object's new Format.
Returns:
A Format that describes the Controller object's new format.


Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.