W - window typepublic interface WindowMethods<W extends java.awt.Window>
extends com.alee.utils.swing.SwingMethods
SwingMethods,
WindowUtils| Modifier and Type | Method and Description |
|---|---|
W |
center()
Centers window relative to screen center.
|
W |
center(java.awt.Component relativeTo)
Centers window relative to the specified component center.
|
W |
center(java.awt.Component relativeTo,
int width,
int height)
Changes window size and centers it relative to the specified component center.
|
W |
center(int width,
int height)
Changes window size and centers it relative to screen center.
|
float |
getWindowOpacity()
Returns window opacity.
|
boolean |
isWindowOpaque()
Returns whether window is opaque or not.
|
W |
packAndCenter()
Packs and centers window relative to old position.
|
W |
packAndCenter(boolean animate)
Packs and centers window relative to old position.
|
W |
packToHeight(int height)
Packs window to its preffered width and specified height.
|
W |
packToWidth(int width)
Packs window to its preffered height and specified width.
|
W |
setWindowOpacity(float opacity)
Sets window opacity if that option is supported by the underlying system.
|
W |
setWindowOpaque(boolean opaque)
Sets window opaque if that option is supported by the underlying system.
|
boolean isWindowOpaque()
W setWindowOpaque(boolean opaque)
opaque - whether should make window opaque or notfloat getWindowOpacity()
W setWindowOpacity(float opacity)
opacity - new window opacityW center()
W center(java.awt.Component relativeTo)
relativeTo - component used to center windowW center(int width, int height)
width - new window widthheight - new window heightW center(java.awt.Component relativeTo, int width, int height)
relativeTo - component used to center windowwidth - new window widthheight - new window heightW packToWidth(int width)
width - new window widthW packToHeight(int height)
height - new window heightW packAndCenter()
W packAndCenter(boolean animate)
animate - whether should animate window size changes or not