public final class WindowMethodsImpl extends Object
WindowMethods
interface methods.WindowMethods
Constructor and Description |
---|
WindowMethodsImpl() |
Modifier and Type | Method and Description |
---|---|
static <W extends Window,T extends W> |
center(W window)
Centers window relative to screen center.
|
static <W extends Window,T extends W> |
center(W window,
Component relativeTo)
Centers window relative to the specified component center.
|
static <W extends Window,T extends W> |
center(W window,
Component relativeTo,
int width,
int height)
Changes window size and centers it relative to screen center.
|
static <W extends Window,T extends W> |
center(W window,
int width,
int height)
Changes window size and centers it relative to screen center.
|
static <W extends Window> |
getWindowOpacity(W window)
Returns window opacity.
|
static <W extends Window> |
isWindowOpaque(W window)
Returns whether window is opaque or not.
|
static <W extends Window,T extends W> |
packToHeight(W window,
int height)
Packs window to its preffered width and specified height.
|
static <W extends Window,T extends W> |
packToWidth(W window,
int width)
Packs window to its preffered height and specified width.
|
static <W extends Window,T extends W> |
setWindowOpacity(W window,
float opacity)
Sets window opacity if that option is supported by the underlying system.
|
static <W extends Window,T extends W> |
setWindowOpaque(W window,
boolean opaque)
Sets window opaque if that option is supported by the underlying system.
|
public static <W extends Window> boolean isWindowOpaque(W window)
W
- provided window typewindow
- window to processpublic static <W extends Window,T extends W> T setWindowOpaque(W window, boolean opaque)
W
- provided window typeT
- actual window typewindow
- window to modifyopaque
- whether should make window opaque or notpublic static <W extends Window> float getWindowOpacity(W window)
W
- provided window typewindow
- window to processpublic static <W extends Window,T extends W> T setWindowOpacity(W window, float opacity)
W
- provided window typeT
- actual window typewindow
- window to modifyopacity
- new window opacitypublic static <W extends Window,T extends W> T center(W window)
W
- provided window typeT
- actual window typewindow
- window to processpublic static <W extends Window,T extends W> T center(W window, Component relativeTo)
W
- provided window typeT
- actual window typewindow
- window to processrelativeTo
- component used to center windowpublic static <W extends Window,T extends W> T center(W window, int width, int height)
W
- provided window typeT
- actual window typewindow
- window to processwidth
- new window widthheight
- new window heightpublic static <W extends Window,T extends W> T center(W window, Component relativeTo, int width, int height)
W
- provided window typeT
- actual window typewindow
- window to processrelativeTo
- component used to center windowwidth
- new window widthheight
- new window heightpublic static <W extends Window,T extends W> T packToWidth(W window, int width)
W
- provided window typeT
- actual window typewindow
- window to processwidth
- new window widthpublic static <W extends Window,T extends W> T packToHeight(W window, int height)
W
- provided window typeT
- actual window typewindow
- window to processheight
- new window heightCopyright © 2020. All rights reserved.