org.noos.xing.mydoggy.plaf.ui.transparency
Interface TransparencyManager<E extends Component>

All Known Implementing Classes:
TransparencyAnimation.Translucent2TransparencyManager, WindowTransparencyManager

public interface TransparencyManager<E extends Component>

Author:
Angelo De Caro (angelo.decaro@gmail.com)

Method Summary
 boolean isAlphaModeEnabled(E component)
          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(E component, float transparency)
          Sets the transparency value for the spicified component.
 

Method Detail

isServiceAvailable

boolean isServiceAvailable()
Returns true if the manager can manage the transparency, false otherwise.

Returns:
true if the manager can manage the transparency, false otherwise.

setAlphaModeRatio

void setAlphaModeRatio(E component,
                       float transparency)
Sets the transparency value for the spicified component.

Parameters:
component - the component to which assign the transparency.
transparency - the transparency value. The valid range is [0.0 , 1.0].

isAlphaModeEnabled

boolean isAlphaModeEnabled(E component)
Returns true if the transparency value of the component if higher than zero, false otherwise.

Parameters:
component - 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.