|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
W
- window typepublic interface WindowMethods<W extends java.awt.Window>
This interface provides a set of methods that should be added into components that support custom window methods.
SwingMethods
,
WindowUtils
Method Summary | |
---|---|
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. |
Method Detail |
---|
W setWindowOpaque(boolean opaque)
opaque
- whether should make window opaque or notboolean isWindowOpaque()
W setWindowOpacity(float opacity)
opacity
- new window opacityfloat getWindowOpacity()
W center()
W center(java.awt.Component relativeTo)
relativeTo
- component used to center window
W center(int width, int height)
width
- new window widthheight
- new window height
W center(java.awt.Component relativeTo, int width, int height)
relativeTo
- component used to center windowwidth
- new window widthheight
- new window height
W packToWidth(int width)
width
- new window width
W packToHeight(int height)
height
- new window height
W packAndCenter()
W packAndCenter(boolean animate)
animate
- whether should animate window size changes or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |