public final class ProprietaryUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HEAVY_WEIGHT_POPUP |
static int |
LIGHT_WEIGHT_POPUP
Key used to indicate a light weight popup should be used.
|
static int |
MEDIUM_WEIGHT_POPUP
Key used to indicate a medium weight Popup should be used.
|
| Constructor and Description |
|---|
ProprietaryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static float |
getWindowOpacity(java.awt.Window window)
Returns window opacity.
|
static java.awt.Shape |
getWindowShape(java.awt.Window window)
Returns window shape.
|
static boolean |
isAllowLinuxTransparency()
Returns whether per-pixel transparent windows usage is allowed on Linux systems or not.
|
static boolean |
isWindowOpaque(java.awt.Window window)
Returns whether window is opaque or not.
|
static boolean |
isWindowShapeAllowed()
Returns whether window shape is allowed globally or not.
|
static boolean |
isWindowTransparencyAllowed()
Returns whether window transparency is allowed globally or not.
|
static void |
setAllowLinuxTransparency(boolean allow)
Sets whether per-pixel transparent windows usage is allowed on Linux systems or not.
|
static void |
setupUIDefaults(javax.swing.UIDefaults table)
Installs some proprietary L&F defaults for proper text rendering.
|
static void |
setWindowOpacity(java.awt.Window window,
float opacity)
Sets window opacity if that option is supported by the underlying system.
|
static void |
setWindowOpaque(java.awt.Window window,
boolean opaque)
Sets window opaque if that option is supported by the underlying system.
|
static void |
setWindowShape(java.awt.Window window,
java.awt.Shape shape)
Sets window shape if that option is supported by the underlying system.
|
static void |
setWindowShapeAllowed(boolean allowed)
Sets whether window shape is allowed globally or not.
|
static void |
setWindowTransparencyAllowed(boolean allowed)
Sets whether window transparency is allowed globally or not.
|
public static final int LIGHT_WEIGHT_POPUP
public static final int MEDIUM_WEIGHT_POPUP
public static final int HEAVY_WEIGHT_POPUP
public static boolean isAllowLinuxTransparency()
public static void setAllowLinuxTransparency(boolean allow)
allow - whether per-pixel transparent windows usage is allowed on Linux systems or notpublic static void setupUIDefaults(javax.swing.UIDefaults table)
table.put ( sun.swing.SwingUtilities2.AA_TEXT_PROPERTY_KEY, sun.swing.SwingUtilities2.AATextInfo.getAATextInfo ( true ) );
but it doesn't directly use any proprietary API.table - defaults tablepublic static boolean isWindowTransparencyAllowed()
public static void setWindowTransparencyAllowed(boolean allowed)
allowed - whether window transparency is allowed globally or notpublic static boolean isWindowShapeAllowed()
public static void setWindowShapeAllowed(boolean allowed)
allowed - whether window shape is allowed globally or notpublic static void setWindowOpaque(java.awt.Window window,
boolean opaque)
window - window to processopaque - whether should make window opaque or notpublic static boolean isWindowOpaque(java.awt.Window window)
window - window to processpublic static void setWindowOpacity(java.awt.Window window,
float opacity)
window - window to processopacity - new window opacitypublic static float getWindowOpacity(java.awt.Window window)
window - window to processpublic static void setWindowShape(java.awt.Window window,
java.awt.Shape shape)
window - window to processshape - new window shapepublic static java.awt.Shape getWindowShape(java.awt.Window window)
window - window to process