public final class WindowSource extends VideoSource
PROPERTY_SIZEPROPERTY_ACTIVE, PROPERTY_ENABLED, PROPERTY_NAME| Constructor and Description |
|---|
WindowSource(com.teamdev.jxdesktop.ui.Window window)
Creates source by specified window.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAvailablegetData, getLocation, setLocation, setSizeactivate, addPropertyChangeListener, deactivate, getName, getPropertyChangeSupport, isActive, isEnabled, release, removePropertyChangeListener, setEnabled, setName, toStringpublic WindowSource(com.teamdev.jxdesktop.ui.Window window)
window - sourcepublic com.teamdev.jxdesktop.ui.Window getWindow()
public java.awt.Dimension getSize()
ImageSourcegetSize in class ImageSourcepublic void updateSize()