org.noos.xing.mydoggy.plaf.ui.animation
Class TransparencyAnimation.Translucent2TransparencyManager

java.lang.Object
  extended by org.noos.xing.mydoggy.plaf.ui.animation.TransparencyAnimation.Translucent2TransparencyManager
All Implemented Interfaces:
TransparencyManager<Component>
Enclosing class:
TransparencyAnimation

public static class TransparencyAnimation.Translucent2TransparencyManager
extends Object
implements TransparencyManager<Component>


Field Summary
protected  TranslucentComponent translucentComponent
           
 
Constructor Summary
TransparencyAnimation.Translucent2TransparencyManager(TranslucentComponent translucentComponent)
           
 
Method Summary
 boolean isAlphaModeEnabled(Component 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(Component component, 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
 

Field Detail

translucentComponent

protected TranslucentComponent translucentComponent
Constructor Detail

TransparencyAnimation.Translucent2TransparencyManager

public TransparencyAnimation.Translucent2TransparencyManager(TranslucentComponent translucentComponent)
Method Detail

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<Component>
Returns:
true if the manager can manage the transparency, false otherwise.

setAlphaModeRatio

public void setAlphaModeRatio(Component component,
                              float transparency)
Description copied from interface: TransparencyManager
Sets the transparency value for the spicified component.

Specified by:
setAlphaModeRatio in interface TransparencyManager<Component>
Parameters:
component - the component to which assign the transparency.
transparency - the transparency value. The valid range is [0.0 , 1.0].

isAlphaModeEnabled

public boolean isAlphaModeEnabled(Component component)
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<Component>
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.