public class Utils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LINUX
Integer ID for Linux distros
|
static int |
MAC_OS
Integer ID for OSX Mac systems
|
static int |
OTHER
Integer ID for other systems
|
static int |
UNIX
Integer ID for Unix environments
|
static int |
WINDOWS
Integer ID for other Windows versions, like Me, 2K and 9x
|
static int |
WINDOWS_10
Integer ID for Windows 10
|
static int |
WINDOWS_7
Integer ID for Windows 7
|
static int |
WINDOWS_8
Integer ID for Windows 8 and 8.1
|
static int |
WINDOWS_VISTA
Integer ID for Windows Vista
|
static int |
WINDOWS_XP
Integer ID for Windows XP
|
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Image |
getBackgroundCap(java.awt.Rectangle bounds)
Creates a background for a fake effect of translucency.
|
static int |
getOperativeSystem() |
static java.awt.Rectangle |
getScreenSize()
Checks the area available in the desktop, excluding the taskbar.
|
static boolean |
isTranslucencySupported()
Checks if the translucency effect is supported.
|
public static final int WINDOWS
public static final int WINDOWS_XP
public static final int WINDOWS_VISTA
public static final int WINDOWS_7
public static final int WINDOWS_8
public static final int WINDOWS_10
public static final int MAC_OS
public static final int LINUX
public static final int UNIX
public static final int OTHER
public static int getOperativeSystem()
public static java.awt.Rectangle getScreenSize()
sun.java2d.SunGraphicsEnvironment.getUsableBounds() is
performed. If this can't be done, the method fallbacks to the default
Toolkit.getDefaultToolkit().getScreenSize(), although such
method doesn't exclude the taskbar area.public static boolean isTranslucencySupported()
true if translucency is supported,
false otherwise.public static java.awt.Image getBackgroundCap(java.awt.Rectangle bounds)
bounds - The area to capture.BufferedImage with the area behind the JDialog.