public class WindowState extends 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(Rectangle bounds,
Rectangle gcBounds,
int screenCount,
int frameState) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getBounds() |
int |
getFrameState() |
Rectangle |
getGraphicsConfigurationBounds() |
int |
getScreenCount() |
void |
setBounds(Rectangle bounds) |
void |
setFrameState(int frameState) |
void |
setGraphicsConfigurationBounds(Rectangle gcBounds) |
void |
setScreenCount(int screenCount) |
public Rectangle getBounds()
public void setBounds(Rectangle bounds)
public int getScreenCount()
public void setScreenCount(int screenCount)
public int getFrameState()
public void setFrameState(int frameState)
public Rectangle getGraphicsConfigurationBounds()
public void setGraphicsConfigurationBounds(Rectangle gcBounds)
Copyright © 2009–2016. All rights reserved.