public static class SessionStorage.WindowState
extends java.lang.Object
Window
state preserved across
sessions: the Window's bounds
, and the bounds of the
Window's GraphicsConfiguration
, i.e. the bounds of the
screen that the Window appears on. If the Window is actually a
Frame, we also store its extendedState. WindowState
objects
are stored and restored by the WindowProperty
class.Constructor and Description |
---|
WindowState() |
WindowState(java.awt.Rectangle bounds,
java.awt.Rectangle gcBounds,
int screenCount,
int frameState) |
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBounds() |
int |
getFrameState() |
java.awt.Rectangle |
getGraphicsConfigurationBounds() |
int |
getScreenCount() |
void |
setBounds(java.awt.Rectangle bounds) |
void |
setFrameState(int frameState) |
void |
setGraphicsConfigurationBounds(java.awt.Rectangle gcBounds) |
void |
setScreenCount(int screenCount) |
public WindowState()
public WindowState(java.awt.Rectangle bounds, java.awt.Rectangle gcBounds, int screenCount, int frameState)
public java.awt.Rectangle getBounds()
public void setBounds(java.awt.Rectangle bounds)
public int getScreenCount()
public void setScreenCount(int screenCount)
public int getFrameState()
public void setFrameState(int frameState)
public java.awt.Rectangle getGraphicsConfigurationBounds()
public void setGraphicsConfigurationBounds(java.awt.Rectangle gcBounds)