public static class SwingSession.WindowState extends Object implements SwingSession.State
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
bounds |
protected int |
frameState |
protected Rectangle |
gcBounds |
Constructor and Description |
---|
WindowState() |
WindowState(Rectangle bounds,
Rectangle gcBounds,
int frameState) |
Modifier and Type | Method and Description |
---|---|
protected Window |
checkComponent(Object o) |
static Rectangle |
computeVirtualGraphicsBounds()
Calculates virtual graphic bounds.
|
Rectangle |
getBounds() |
int |
getFrameState() |
Rectangle |
getGcBounds() |
SwingSession.State |
getState(Object o) |
protected static Rectangle |
getWindowNormalBounds(Window window)
Gets
Window bounds from the client property |
protected static boolean |
isResizable(Window window)
Checks whether the window supports resizing
|
static void |
putWindowNormalBounds(Window window,
Rectangle bounds)
Puts
Window bounds to client property. |
void |
setBounds(Rectangle bounds) |
void |
setFrameState(int frameState) |
void |
setGcBounds(Rectangle gcBounds) |
void |
setState(Object o,
SwingSession.State state) |
protected Rectangle bounds
protected Rectangle gcBounds
protected int frameState
public Rectangle getBounds()
public void setBounds(Rectangle bounds)
public Rectangle getGcBounds()
public void setGcBounds(Rectangle gcBounds)
public int getFrameState()
public void setFrameState(int frameState)
protected static boolean isResizable(Window window)
window
- the Window
to be checkedprotected static Rectangle getWindowNormalBounds(Window window)
Window
bounds from the client propertywindow
- the source Window
public static Rectangle computeVirtualGraphicsBounds()
public static void putWindowNormalBounds(Window window, Rectangle bounds)
Window
bounds to client property.window
- the target Window
bounds
- boundspublic SwingSession.State getState(Object o)
getState
in interface SwingSession.State
public void setState(Object o, SwingSession.State state)
setState
in interface SwingSession.State
Copyright © 1999–2020 CodeLutin. All rights reserved.