Package fr.ifremer.isisfish.ui.widget
Class SwingSession.WindowState
java.lang.Object
fr.ifremer.isisfish.ui.widget.SwingSession.WindowState
- All Implemented Interfaces:
SwingSession.State
- Enclosing class:
- SwingSession
State for Window
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Windowstatic RectangleCalculates virtual graphic bounds.intprotected 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.voidvoidsetFrameState(int frameState) voidsetGcBounds(Rectangle gcBounds) voidsetState(Object o, SwingSession.State state)
-
Field Details
-
bounds
-
gcBounds
-
frameState
protected int frameState
-
-
Constructor Details
-
WindowState
public WindowState() -
WindowState
-
-
Method Details
-
getBounds
-
setBounds
-
getGcBounds
-
setGcBounds
-
getFrameState
public int getFrameState() -
setFrameState
public void setFrameState(int frameState) -
checkComponent
-
isResizable
Checks whether the window supports resizing- Parameters:
window- theWindowto be checked- Returns:
- true if the window supports resizing
-
getWindowNormalBounds
GetsWindowbounds from the client property- Parameters:
window- the sourceWindow- Returns:
- bounds from the client property
-
computeVirtualGraphicsBounds
Calculates virtual graphic bounds. On multiscreen systems all screens are united into one virtual screen.- Returns:
- the graphic bounds
-
putWindowNormalBounds
PutsWindowbounds to client property.- Parameters:
window- the targetWindowbounds- bounds
-
getState
- Specified by:
getStatein interfaceSwingSession.State
-
setState
- Specified by:
setStatein interfaceSwingSession.State
-