Class WindowState
- java.lang.Object
-
- org.nuiton.jaxx.runtime.swing.session.WindowState
-
-
Field Summary
Fields Modifier and Type Field Description protected Rectangleboundsprotected intframeStateprotected RectanglegcBounds
-
Constructor Summary
Constructors Constructor Description WindowState()WindowState(Rectangle bounds, Rectangle gcBounds, int frameState)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WindowcheckComponent(Object o)static RectanglecomputeVirtualGraphicsBounds()Calculates virtual graphic bounds.RectanglegetBounds()intgetFrameState()RectanglegetGcBounds()StategetState(Object o)protected static RectanglegetWindowNormalBounds(Window window)GetsWindowbounds from the client propertyprotected static booleanisResizable(Window window)Checks whether the window supports resizingstatic voidputWindowNormalBounds(Window window, Rectangle bounds)PutsWindowbounds to client property.voidsetBounds(Rectangle bounds)voidsetFrameState(int frameState)voidsetGcBounds(Rectangle gcBounds)voidsetState(Object o, State state)
-
-
-
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)
-
isResizable
protected static boolean isResizable(Window window)
Checks whether the window supports resizing- Parameters:
window- theWindowto be checked- Returns:
- true if the window supports resizing
-
getWindowNormalBounds
protected static Rectangle getWindowNormalBounds(Window window)
GetsWindowbounds from the client property- Parameters:
window- the sourceWindow- 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)
PutsWindowbounds to client property.- Parameters:
window- the targetWindowbounds- bounds
-
-