public interface TKStageListener
Modifier and Type | Method and Description |
---|---|
void |
changedAlwaysOnTop(boolean alwaysOnTop)
The stages peer has changed it's "always on top" flag.
|
void |
changedFocused(boolean focused,
FocusCause cause)
The stages peer focused state has changed.
|
void |
changedFullscreen(boolean fs)
The stages peer has changed its full screen status
|
void |
changedIconified(boolean iconified)
The stages peer has become iconified or uniconified
|
void |
changedLocation(float x,
float y)
The stages peer's location have changed so we need to update the scene
|
void |
changedMaximized(boolean maximized)
The stages peer has become maximized or unmaximized
|
void |
changedResizable(boolean resizable)
The stages peer has become resizable or nonresizable
|
void |
changedScreen(java.lang.Object from,
java.lang.Object to)
The stage's peer has moved to another screen.
|
void |
changedSize(float width,
float height)
The stages peer's size have changed so we need to update the scene
|
void |
closed()
Called if the stages peer has closed.
|
void |
closing()
Called if the window is closing do to something that has happened on the peer.
|
void |
focusUngrab()
Focus grab has been reset for the stage peer.
|
void changedLocation(float x, float y)
x
- the new Xy
- The new Yvoid changedSize(float width, float height)
width
- The new Widthheight
- The new Heightvoid changedFocused(boolean focused, FocusCause cause)
focused
- True if the stage's peer now contains the focuscause
- The cause of (de)activationvoid changedIconified(boolean iconified)
iconified
- True if the stage's peer is now iconifiedvoid changedMaximized(boolean maximized)
maximized
- True if the stage's peer is now maximizedvoid changedAlwaysOnTop(boolean alwaysOnTop)
alwaysOnTop
- void changedResizable(boolean resizable)
resizable
- True if the stage's peer is now resizablevoid changedFullscreen(boolean fs)
fs
- True if the stage's peer is now full screen, false otherwisevoid changedScreen(java.lang.Object from, java.lang.Object to)
from
- An object that identifies the old screen (may be null)to
- An object that identifies the new screenvoid closing()
void closed()
void focusUngrab()
TKStage.grabFocus()
when the grab
is reset either by user action (e.g. clicking the titlebar of the
stage), or via a call to TKStage.ungrabFocus()
.