Class StagePeerBase
java.lang.Object
dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.base.WindowPeerBase
dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.base.StagePeerBase
- All Implemented Interfaces:
TKStage,StagePeer,WindowPeer
- Direct Known Subclasses:
GwtJ2clPrimaryStagePeer,GwtJ2clSecondaryStagePeer
- Author:
- Bruno Salmon
-
Field Summary
Fields inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.base.WindowPeerBase
listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract doubleprotected abstract doublevoidsetBounds(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.voidsetTKStageListener(TKStageListener listener) Listener for this stage peer to pass updates and events back to the stageMethods inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.base.WindowPeerBase
getScenePeer, getWindowMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.StagePeer
getStageMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.WindowPeer
getWindow, onSceneRootChanged, setVisible
-
Constructor Details
-
StagePeerBase
-
-
Method Details
-
setTKStageListener
Description copied from interface:TKStageListener for this stage peer to pass updates and events back to the stage- Specified by:
setTKStageListenerin interfaceTKStage- Overrides:
setTKStageListenerin classWindowPeerBase- Parameters:
listener- The listener provided by the stage
-
setBounds
public void setBounds(float x, float y, boolean xSet, boolean ySet, float w, float h, float cw, float ch, float xGravity, float yGravity) Description copied from interface:WindowPeerSets 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 * deltaWy -= yGravity * deltaH- Specified by:
setBoundsin interfaceTKStage- Specified by:
setBoundsin interfaceWindowPeer- 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
-
changedWindowSize
public void changedWindowSize()- Specified by:
changedWindowSizein interfaceStagePeer
-
getPeerWindowWidth
protected abstract double getPeerWindowWidth() -
getPeerWindowHeight
protected abstract double getPeerWindowHeight()
-