|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alee.utils.ProprietaryUtils
public final class ProprietaryUtils
This utility class operates only with proprietary API calls. Their usage is inevitable, otherwise i would have replaced them with something else.
Constructor Summary | |
---|---|
ProprietaryUtils()
|
Method Summary | |
---|---|
static float |
getWindowOpacity(java.awt.Window window)
Returns window opacity. |
static boolean |
isWindowOpaque(java.awt.Window window)
Returns whether window is opaque or not. |
static boolean |
isWindowTransparencyAllowed()
Returns whether window transparency is supported on current OS 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProprietaryUtils()
Method Detail |
---|
public 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 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 process
public 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 process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |