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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Window
static Rectangle
Calculates virtual graphic bounds.int
protected static Rectangle
getWindowNormalBounds
(Window window) GetsWindow
bounds from the client propertyprotected static boolean
isResizable
(Window window) Checks whether the window supports resizingstatic void
putWindowNormalBounds
(Window window, Rectangle bounds) PutsWindow
bounds to client property.void
void
setFrameState
(int frameState) void
setGcBounds
(Rectangle gcBounds) void
setState
(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
- theWindow
to be checked- Returns:
- true if the window supports resizing
-
getWindowNormalBounds
GetsWindow
bounds 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
PutsWindow
bounds to client property.- Parameters:
window
- the targetWindow
bounds
- bounds
-
getState
- Specified by:
getState
in interfaceSwingSession.State
-
setState
- Specified by:
setState
in interfaceSwingSession.State
-