Class WindowState

java.lang.Object
jaxx.runtime.swing.session.WindowState
All Implemented Interfaces:
State

public class WindowState
extends java.lang.Object
implements State
State for Window
Since:
2.5.16
Author:
poussin, Kevin Morin - morin@codelutin.com
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.awt.Rectangle bounds  
    protected int frameState  
    protected java.awt.Rectangle gcBounds  
  • Constructor Summary

    Constructors
    Constructor Description
    WindowState()  
    WindowState​(java.awt.Rectangle bounds, java.awt.Rectangle gcBounds, int frameState)  
  • Method Summary

    Modifier and Type Method Description
    protected java.awt.Window checkComponent​(java.lang.Object o)  
    static java.awt.Rectangle computeVirtualGraphicsBounds()
    Calculates virtual graphic bounds.
    java.awt.Rectangle getBounds()  
    int getFrameState()  
    java.awt.Rectangle getGcBounds()  
    State getState​(java.lang.Object o)  
    protected static java.awt.Rectangle getWindowNormalBounds​(java.awt.Window window)
    Gets Window bounds from the client property
    protected static boolean isResizable​(java.awt.Window window)
    Checks whether the window supports resizing
    static void putWindowNormalBounds​(java.awt.Window window, java.awt.Rectangle bounds)
    Puts Window bounds to client property.
    void setBounds​(java.awt.Rectangle bounds)  
    void setFrameState​(int frameState)  
    void setGcBounds​(java.awt.Rectangle gcBounds)  
    void setState​(java.lang.Object o, State state)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bounds

      protected java.awt.Rectangle bounds
    • gcBounds

      protected java.awt.Rectangle gcBounds
    • frameState

      protected int frameState
  • Constructor Details

    • WindowState

      public WindowState()
    • WindowState

      public WindowState​(java.awt.Rectangle bounds, java.awt.Rectangle gcBounds, int frameState)
  • Method Details

    • getBounds

      public java.awt.Rectangle getBounds()
    • setBounds

      public void setBounds​(java.awt.Rectangle bounds)
    • getGcBounds

      public java.awt.Rectangle getGcBounds()
    • setGcBounds

      public void setGcBounds​(java.awt.Rectangle gcBounds)
    • getFrameState

      public int getFrameState()
    • setFrameState

      public void setFrameState​(int frameState)
    • checkComponent

      protected java.awt.Window checkComponent​(java.lang.Object o)
    • isResizable

      protected static boolean isResizable​(java.awt.Window window)
      Checks whether the window supports resizing
      Parameters:
      window - the Window to be checked
      Returns:
      true if the window supports resizing
    • getWindowNormalBounds

      protected static java.awt.Rectangle getWindowNormalBounds​(java.awt.Window window)
      Gets Window bounds from the client property
      Parameters:
      window - the source Window
      Returns:
      bounds from the client property
    • computeVirtualGraphicsBounds

      public static java.awt.Rectangle computeVirtualGraphicsBounds()
      Calculates virtual graphic bounds. On multiscreen systems all screens are united into one virtual screen.
      Returns:
      the graphic bounds
    • putWindowNormalBounds

      public static void putWindowNormalBounds​(java.awt.Window window, java.awt.Rectangle bounds)
      Puts Window bounds to client property.
      Parameters:
      window - the target Window
      bounds - bounds
    • getState

      public State getState​(java.lang.Object o)
      Specified by:
      getState in interface State
    • setState

      public void setState​(java.lang.Object o, State state)
      Specified by:
      setState in interface State