javax.media.format
Class FormatChangeEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.media.MediaEvent
|
+--javax.media.ControllerEvent
|
+--javax.media.format.FormatChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
- 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.