javax.media
Class SizeChangeEvent

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

public class SizeChangeEvent
extends FormatChangeEvent

Event which indicates that the input video has changed in size and the video renderer needs to be resized to specified size. Also includes the scale to which the video is going to be zoomed.

Since:
JMF 2.0
See Also:
Serialized Form

Field Summary
protected  int height
           
protected  float scale
           
protected  int width
           
 
Fields inherited from class javax.media.format.FormatChangeEvent
newFormat, oldFormat
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SizeChangeEvent(Controller from, int width, int height, float scale)
           
 
Method Summary
 int getHeight()
          Get the new height of the video input.
 float getScale()
          Get the new scale to which the video is being zoomed.
 int getWidth()
          Get the new width of the video input.
 
Methods inherited from class javax.media.format.FormatChangeEvent
getNewFormat, getOldFormat
 
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

width

protected int width

height

protected int height

scale

protected float scale
Constructor Detail

SizeChangeEvent

public SizeChangeEvent(Controller from,
                       int width,
                       int height,
                       float scale)
Method Detail

getWidth

public int getWidth()
Get the new width of the video input.

getHeight

public int getHeight()
Get the new height of the video input.

getScale

public float getScale()
Get the new scale to which the video is being zoomed.