Package com.sun.javafx.tk
Interface TKStage
- All Known Subinterfaces:
StagePeer
,WindowPeer
- All Known Implementing Classes:
GwtJ2clPrimaryStagePeer
,GwtJ2clSecondaryStagePeer
,GwtJ2clWindowPeer
,StagePeerBase
,WindowPeerBase
public interface TKStage
TKStage - Peer interface for a Stage
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBounds
(float x, float y, boolean xSet, boolean ySet, float w, float h, float cw, float ch, float xGravity, float yGravity) Sets the window bounds to the specified values.void
void
setTKStageListener
(TKStageListener listener) Listener for this stage peer to pass updates and events back to the stagevoid
setVisible
(boolean visible) Set if the stage is visible on screen
-
Method Details
-
setTKStageListener
Listener for this stage peer to pass updates and events back to the stage- Parameters:
listener
- The listener provided by the stage
-
setBounds
void setBounds(float x, float y, boolean xSet, boolean ySet, float w, float h, float cw, float ch, float xGravity, float yGravity) Sets the window bounds to the specified values. Gravity values specify how to correct window location if only its size changes (for example when stage decorations are added). User initiated resizing should be ignored and must not influence window location through this mechanism. The corresponding correction formulas are:x -= xGravity * deltaW
y -= yGravity * deltaH
- Parameters:
x
- the new window horizontal position, ignored if xSet is set to falsey
- the new window vertical position, ignored if ySet is set to falsexSet
- indicates whether the x parameter is validySet
- indicates whether the y parameter is validw
- the new window width, ignored if set to -1h
- the new window height, ignored if set to -1cw
- the new window content width, ignored if set to -1ch
- the new window content height, ignored if set to -1xGravity
- the xGravity coefficientyGravity
- the yGravity coefficient
-
setTitle
-
setVisible
void setVisible(boolean visible) Set if the stage is visible on screen- Parameters:
visible
- True if the stage should be visible
-