org.dvb.media
Class AspectRatioChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.dvb.media.VideoFormatEvent
          extended by org.dvb.media.AspectRatioChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class AspectRatioChangedEvent
extends VideoFormatEvent

Event signalling that the aspect ratio of the transmitted video has changed

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AspectRatioChangedEvent(java.lang.Object source, int newRatio)
          Construct the event
 
Method Summary
 int getNewRatio()
          Get the new aspect ratio of the transmitted video
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AspectRatioChangedEvent

public AspectRatioChangedEvent(java.lang.Object source,
                               int newRatio)
Construct the event

Parameters:
source - the source of the event
newRatio - the new aspect ratio of the transmitted video
Method Detail

getNewRatio

public int getNewRatio()
Get the new aspect ratio of the transmitted video

Returns:
the new aspect ratio of the video. The value of this is represented by one of the constants from the VideoFormatControl class and shall be the value passed into the constructor of the event.