FileDocCategorySizeDatePackage
FormatChangeEvent.javaAPI DocJMF 2.1.1e1901Mon May 12 12:20:34 BST 2003javax.media.format

FormatChangeEvent

public class FormatChangeEvent extends ControllerEvent
A FormatChangeEvent is posted by a Controller when the Format of its media changes.

Fields Summary
protected Format
oldFormat
protected Format
newFormat
Constructors Summary
public FormatChangeEvent(Controller source)
Constructs a FormatChangeEvent.

param
source The Controller that generated this event.

	super(source);
    
public FormatChangeEvent(Controller source, Format oldFormat, Format newFormat)
Constructs a FormatChangeEvent, indicating the old Format and the new Format.

param
source The Controller that generated this event.
param
oldFormat The Controller object's old Format.
param
newFormat The Controller object's new Format.

	super(source);
	this.oldFormat = oldFormat;
	this.newFormat = newFormat;
    
Methods Summary
public javax.media.FormatgetNewFormat()
Gets the object's new Format.

return
A Format that describes the Controller object's new format.

	return newFormat;
    
public javax.media.FormatgetOldFormat()
Gets the object's old Format.

return
A Format that describes the Controller object's original format.

	return oldFormat;