org.noos.xing.mydoggy.plaf.ui.transparency
Class WindowTransparencyManager
java.lang.Object
org.noos.xing.mydoggy.plaf.ui.transparency.WindowTransparencyManager
- All Implemented Interfaces:
- TransparencyManager<Window>
public class WindowTransparencyManager
- extends Object
- implements TransparencyManager<Window>
- Author:
- Angelo De Caro (angelo.decaro@gmail.com)
|
Method Summary |
boolean |
isAlphaModeEnabled(Window window)
Returns true if the transparency value of the component if higher than zero,
false otherwise. |
boolean |
isServiceAvailable()
Returns true if the manager can manage the transparency, false otherwise. |
void |
setAlphaModeRatio(Window window,
float transparency)
Sets the transparency value for the spicified component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowTransparencyManager
public WindowTransparencyManager()
isServiceAvailable
public boolean isServiceAvailable()
- Description copied from interface:
TransparencyManager
- Returns true if the manager can manage the transparency, false otherwise.
- Specified by:
isServiceAvailable in interface TransparencyManager<Window>
- Returns:
- true if the manager can manage the transparency, false otherwise.
setAlphaModeRatio
public void setAlphaModeRatio(Window window,
float transparency)
- Description copied from interface:
TransparencyManager
- Sets the transparency value for the spicified component.
- Specified by:
setAlphaModeRatio in interface TransparencyManager<Window>
- Parameters:
window - the component to which assign the transparency.transparency - the transparency value. The valid range is [0.0 , 1.0].
isAlphaModeEnabled
public boolean isAlphaModeEnabled(Window window)
- Description copied from interface:
TransparencyManager
- Returns true if the transparency value of the
component if higher than zero,
false otherwise.
- Specified by:
isAlphaModeEnabled in interface TransparencyManager<Window>
- Parameters:
window - the component for which retrieve the transparency value.
- Returns:
- true if the transparency value of the
component if higher than zero,
false otherwise.
Copyright © 2012. All Rights Reserved.