Package com.openfin.desktop.animation
Class OpacityTransition
- java.lang.Object
-
- com.openfin.desktop.animation.AbstractAnimation
-
- com.openfin.desktop.animation.OpacityTransition
-
public class OpacityTransition extends AbstractAnimation
A class representing a transition of a Window's opacity. The Opacity property represents the resulting opacity of the window. The value is clamped beween 0.0 and 1.0. Default: 1.0 The Duration property represents the total time in milliseconds for the transition to complete.- Since:
- 2/11/14
- Author:
- wche
-
-
Field Summary
-
Fields inherited from class com.openfin.desktop.animation.AbstractAnimation
jsonObject
-
-
Constructor Summary
Constructors Constructor Description OpacityTransition()ConstructorOpacityTransition(java.lang.Double opacity, java.lang.Integer duration)Consturctor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetDuration()Gets value of durationjava.lang.DoublegetOpacity()Gets value of OpacityvoidsetDuration(java.lang.Integer duration)Sets value of durationvoidsetOpacity(java.lang.Double opacity)Sets value of opacity-
Methods inherited from class com.openfin.desktop.animation.AbstractAnimation
toJsonObject
-
-
-
-
Method Detail
-
getOpacity
public java.lang.Double getOpacity()
Gets value of Opacity- Returns:
- Value of Opacity
-
setOpacity
public void setOpacity(java.lang.Double opacity)
Sets value of opacity- Parameters:
opacity- New value of opacity
-
getDuration
public java.lang.Integer getDuration()
Gets value of duration- Returns:
- Value of duration
-
setDuration
public void setDuration(java.lang.Integer duration)
Sets value of duration- Parameters:
duration- Value of duration
-
-