org.nuiton.widget
Class SwingSession.WindowState

java.lang.Object
  extended by org.nuiton.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 Summary
protected  Rectangle bounds
           
protected  int frameState
           
protected  Rectangle gcBounds
           
 
Constructor Summary
SwingSession.WindowState()
           
SwingSession.WindowState(Rectangle bounds, Rectangle gcBounds, int frameState)
           
 
Method Summary
protected  Window checkComponent(Object o)
           
static Rectangle computeVirtualGraphicsBounds()
          Calculates virtual graphic bounds.
 Rectangle getBounds()
           
 int getFrameState()
           
 Rectangle getGcBounds()
           
 SwingSession.State getState(Object o)
           
protected static Rectangle getWindowNormalBounds(Window window)
          Gets Window bounds from the client property
protected static boolean isResizable(Window window)
          Checks whether the window supports resizing
static void putWindowNormalBounds(Window window, Rectangle bounds)
          Puts Window bounds to client property.
 void setBounds(Rectangle bounds)
           
 void setFrameState(int frameState)
           
 void setGcBounds(Rectangle gcBounds)
           
 void setState(Object o, SwingSession.State state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bounds

protected Rectangle bounds

gcBounds

protected Rectangle gcBounds

frameState

protected int frameState
Constructor Detail

SwingSession.WindowState

public SwingSession.WindowState()

SwingSession.WindowState

public SwingSession.WindowState(Rectangle bounds,
                                Rectangle gcBounds,
                                int frameState)
Method Detail

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


Copyright © 2004-2011 CodeLutin. All Rights Reserved.