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
-
Constructor Summary
Constructors Constructor Description OpacityTransition()
ConstructorOpacityTransition(java.lang.Double opacity, java.lang.Integer duration)
Consturctor -
Method Summary
Modifier and Type Method Description java.lang.Integer
getDuration()
Gets value of durationjava.lang.Double
getOpacity()
Gets value of Opacityvoid
setDuration(java.lang.Integer duration)
Sets value of durationvoid
setOpacity(java.lang.Double opacity)
Sets value of opacity
-
Constructor Details
-
OpacityTransition
public OpacityTransition()Constructor -
OpacityTransition
public OpacityTransition(java.lang.Double opacity, java.lang.Integer duration)Consturctor- Parameters:
opacity
- Value of opacityduration
- Duration of the animation
-
-
Method Details
-
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
-