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
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
oldFormat
protected Format oldFormat
newFormat
protected Format newFormat
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.
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 1999-2000 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.