|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.util.TranslucencyUtil
Utilities for translucent windows in Java 6 update 10 and newer.
| Constructor Summary | |
TranslucencyUtil()
|
|
| Method Summary | |
static TranslucencyUtil |
get()
Returns the singleton instance of this class. |
abstract float |
getOpacity(java.awt.Window w)
Returns the opacity of a (fully, not per-pixel, translucent) window. |
abstract boolean |
isTranslucencySupported(boolean perPixel)
Returns whether translucency is supported by this JVM. |
abstract boolean |
setOpacity(java.awt.Window w,
float value)
Toggles the opacity of an entire window (i.e., non-per-pixel opacity). |
abstract boolean |
setOpaque(java.awt.Window w,
boolean opaque)
Toggles whether a window is fully opaque (e.g., toggles per-pixel translucency). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TranslucencyUtil()
| Method Detail |
public static TranslucencyUtil get()
null if something
went horribly wrong.public abstract float getOpacity(java.awt.Window w)
w - The window.
1.0f means
the window is fully opaque.setOpacity(Window, float)public abstract boolean isTranslucencySupported(boolean perPixel)
perPixel - Whether to check for per-pixel translucency (vs. just
translucency of an entire window, which is cheaper).
public abstract boolean setOpacity(java.awt.Window w,
float value)
w - The window to modify.value - The opacity.
getOpacity(Window),
setOpaque(Window, boolean)
public abstract boolean setOpaque(java.awt.Window w,
boolean opaque)
setOpacity(Window, float).
w - The window to modify.opaque - Whether the window should be fully opaque (versus
per-pixel translucent).
setOpacity(Window, float)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||