Class GwtJ2clSecondaryStagePeer

All Implemented Interfaces:
TKStage, StagePeer, WindowPeer

public final class GwtJ2clSecondaryStagePeer extends StagePeerBase
Author:
Bruno Salmon
  • Constructor Details

    • GwtJ2clSecondaryStagePeer

      public GwtJ2clSecondaryStagePeer(Stage stage)
  • Method Details

    • getScenePeer

      protected ScenePeerBase getScenePeer()
      Specified by:
      getScenePeer in class WindowPeerBase
    • getPeerWindowWidth

      protected double getPeerWindowWidth()
      Specified by:
      getPeerWindowWidth in class StagePeerBase
    • getPeerWindowHeight

      protected double getPeerWindowHeight()
      Specified by:
      getPeerWindowHeight in class StagePeerBase
    • 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: WindowPeer
      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
      Specified by:
      setBounds in interface TKStage
      Specified by:
      setBounds in interface WindowPeer
      Overrides:
      setBounds in class StagePeerBase
      Parameters:
      x - the new window horizontal position, ignored if xSet is set to false
      y - the new window vertical position, ignored if ySet is set to false
      xSet - indicates whether the x parameter is valid
      ySet - indicates whether the y parameter is valid
      w - the new window width, ignored if set to -1
      h - the new window height, ignored if set to -1
      cw - the new window content width, ignored if set to -1
      ch - the new window content height, ignored if set to -1
      xGravity - the xGravity coefficient
      yGravity - the yGravity coefficient
    • setTitle

      public void setTitle(String title)
    • setVisible

      public void setVisible(boolean visible)
      Description copied from interface: TKStage
      Set if the stage is visible on screen
      Parameters:
      visible - True if the stage should be visible
    • onSceneRootChanged

      public void onSceneRootChanged()