com.teamdev.jxcapture.video
Class WindowSource

java.lang.Object
  extended by com.teamdev.jxcapture.MediaSource
      extended by com.teamdev.jxcapture.image.ImageSource
          extended by com.teamdev.jxcapture.video.VideoSource
              extended by com.teamdev.jxcapture.video.WindowSource

public final class WindowSource
extends VideoSource

This class represents a window video source.


Field Summary
 
Fields inherited from class com.teamdev.jxcapture.image.ImageSource
PROPERTY_SIZE
 
Fields inherited from class com.teamdev.jxcapture.MediaSource
PROPERTY_ACTIVE, PROPERTY_ENABLED, PROPERTY_NAME
 
Constructor Summary
WindowSource(com.teamdev.jxdesktop.ui.Window window)
          Creates source by specified window.
 
Method Summary
 java.awt.Dimension getSize()
          Returns the size of this source.
 com.teamdev.jxdesktop.ui.Window getWindow()
           
 void updateSize()
          Updates the size of this source according to the current window size.
 
Methods inherited from class com.teamdev.jxcapture.video.VideoSource
getAvailable
 
Methods inherited from class com.teamdev.jxcapture.image.ImageSource
getData, setSize
 
Methods inherited from class com.teamdev.jxcapture.MediaSource
activate, addPropertyChangeListener, deactivate, getName, getPropertyChangeSupport, isActive, isEnabled, release, removePropertyChangeListener, setEnabled, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowSource

public WindowSource(com.teamdev.jxdesktop.ui.Window window)
Creates source by specified window.

Parameters:
window - source
Method Detail

getWindow

public com.teamdev.jxdesktop.ui.Window getWindow()
Returns:
window of this source

getSize

public java.awt.Dimension getSize()
Description copied from class: ImageSource
Returns the size of this source.

Overrides:
getSize in class ImageSource
Returns:
image source size

updateSize

public void updateSize()
Updates the size of this source according to the current window size.