Package jaxx.runtime.swing.session
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.Rectangleboundsprotected intframeStateprotected java.awt.RectanglegcBounds -
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.WindowcheckComponent(java.lang.Object o)static java.awt.RectanglecomputeVirtualGraphicsBounds()Calculates virtual graphic bounds.java.awt.RectanglegetBounds()intgetFrameState()java.awt.RectanglegetGcBounds()StategetState(java.lang.Object o)protected static java.awt.RectanglegetWindowNormalBounds(java.awt.Window window)GetsWindowbounds from the client propertyprotected static booleanisResizable(java.awt.Window window)Checks whether the window supports resizingstatic voidputWindowNormalBounds(java.awt.Window window, java.awt.Rectangle bounds)PutsWindowbounds to client property.voidsetBounds(java.awt.Rectangle bounds)voidsetFrameState(int frameState)voidsetGcBounds(java.awt.Rectangle gcBounds)voidsetState(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- theWindowto be checked- Returns:
- true if the window supports resizing
-
getWindowNormalBounds
protected static java.awt.Rectangle getWindowNormalBounds(java.awt.Window window)GetsWindowbounds from the client property- Parameters:
window- the sourceWindow- 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)PutsWindowbounds to client property.- Parameters:
window- the targetWindowbounds- bounds
-
getState
-
setState
-