Class SwingSession.WindowState

java.lang.Object
fr.ifremer.isisfish.ui.widget.SwingSession.WindowState
All Implemented Interfaces:
SwingSession.State
Enclosing class:
SwingSession

public static class SwingSession.WindowState extends Object implements SwingSession.State
State for Window
  • Field Details

    • bounds

      protected Rectangle bounds
    • gcBounds

      protected Rectangle gcBounds
    • frameState

      protected int frameState
  • Constructor Details

    • WindowState

      public WindowState()
    • WindowState

      public WindowState(Rectangle bounds, Rectangle gcBounds, int frameState)
  • Method Details

    • getBounds

      public Rectangle getBounds()
    • setBounds

      public void setBounds(Rectangle bounds)
    • getGcBounds

      public Rectangle getGcBounds()
    • setGcBounds

      public void setGcBounds(Rectangle gcBounds)
    • getFrameState

      public int getFrameState()
    • setFrameState

      public void setFrameState(int frameState)
    • checkComponent

      protected Window checkComponent(Object o)
    • isResizable

      protected static boolean isResizable(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 Rectangle getWindowNormalBounds(Window window)
      Gets Window bounds from the client property
      Parameters:
      window - the source Window
      Returns:
      bounds from the client property
    • computeVirtualGraphicsBounds

      public static 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(Window window, Rectangle bounds)
      Puts Window bounds to client property.
      Parameters:
      window - the target Window
      bounds - bounds
    • getState

      public SwingSession.State getState(Object o)
      Specified by:
      getState in interface SwingSession.State
    • setState

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