com.teamdev.jxcapture.image
Class ImageSource

java.lang.Object
  extended by com.teamdev.jxcapture.MediaSource
      extended by com.teamdev.jxcapture.image.ImageSource
Direct Known Subclasses:
VideoSource

public abstract class ImageSource
extends MediaSource

Abstract image source.


Field Summary
static java.lang.String PROPERTY_SIZE
           
 
Fields inherited from class com.teamdev.jxcapture.MediaSource
PROPERTY_ACTIVE, PROPERTY_ENABLED, PROPERTY_NAME
 
Constructor Summary
  ImageSource()
           
protected ImageSource(java.lang.String name)
           
protected ImageSource(java.lang.String name, boolean enabled)
           
protected ImageSource(java.lang.String name, java.awt.Dimension size, boolean enabled)
           
 
Method Summary
 java.lang.Object getData()
          Returns image data from this source.
 java.awt.Dimension getSize()
          Returns the size of this source.
protected  void setSize(java.awt.Dimension value)
          Set new dimension of this video source
 
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
 

Field Detail

PROPERTY_SIZE

public static final java.lang.String PROPERTY_SIZE
See Also:
Constant Field Values
Constructor Detail

ImageSource

protected ImageSource(java.lang.String name,
                      boolean enabled)

ImageSource

protected ImageSource(java.lang.String name,
                      java.awt.Dimension size,
                      boolean enabled)

ImageSource

protected ImageSource(java.lang.String name)

ImageSource

public ImageSource()
Method Detail

getSize

public java.awt.Dimension getSize()
Returns the size of this source.

Returns:
image source size

getData

public java.lang.Object getData()
Returns image data from this source.

Returns:
image data

setSize

protected void setSize(java.awt.Dimension value)
Set new dimension of this video source

Parameters:
value - new dimension