|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.teamdev.jxcapture.MediaSource
public abstract class MediaSource
Abstract media source device.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_ACTIVE
|
static java.lang.String |
PROPERTY_ENABLED
|
static java.lang.String |
PROPERTY_NAME
|
Constructor Summary | |
---|---|
protected |
MediaSource()
|
protected |
MediaSource(java.lang.String name)
|
protected |
MediaSource(java.lang.String name,
boolean enabled)
|
Method Summary | |
---|---|
void |
activate()
Activates this media source. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
deactivate()
Deactivates this media source. |
java.lang.String |
getName()
Returns the system name of the device. |
protected java.beans.PropertyChangeSupport |
getPropertyChangeSupport()
|
boolean |
isActive()
Check if this source is active. |
boolean |
isEnabled()
Check if device is enabled. |
void |
release()
Releases this media source. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
protected void |
setEnabled(boolean enabled)
|
protected void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_ENABLED
public static final java.lang.String PROPERTY_NAME
public static final java.lang.String PROPERTY_ACTIVE
Constructor Detail |
---|
protected MediaSource(java.lang.String name, boolean enabled)
protected MediaSource(java.lang.String name)
protected MediaSource()
Method Detail |
---|
protected void setName(java.lang.String name)
protected void setEnabled(boolean enabled)
public java.lang.String getName()
public boolean isEnabled()
public java.lang.String toString()
toString
in class java.lang.Object
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removedprotected java.beans.PropertyChangeSupport getPropertyChangeSupport()
public void activate()
public void deactivate()
public boolean isActive()
public void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |