public final class WindowSource extends VideoSource
PROPERTY_SIZE
PROPERTY_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.
|
getAvailable
getData, getLocation, setLocation, setSize
activate, addPropertyChangeListener, deactivate, getName, getPropertyChangeSupport, isActive, isEnabled, release, removePropertyChangeListener, setEnabled, setName, toString
public WindowSource(com.teamdev.jxdesktop.ui.Window window)
window
- sourcepublic com.teamdev.jxdesktop.ui.Window getWindow()
public java.awt.Dimension getSize()
ImageSource
getSize
in class ImageSource
public void updateSize()