com.openfin.desktop.animation
Class OpacityTransition

java.lang.Object
  extended by com.openfin.desktop.animation.AbstractAnimation
      extended by 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
OpacityTransition()
          Constructor
OpacityTransition(Double opacity, Integer duration)
          Consturctor
 
Method Summary
 Integer getDuration()
          Gets value of duration
 Double getOpacity()
          Gets value of Opacity
 void setDuration(Integer duration)
          Sets value of duration
 void setOpacity(Double opacity)
          Sets value of opacity
 
Methods inherited from class com.openfin.desktop.animation.AbstractAnimation
toJsonObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpacityTransition

public OpacityTransition()
Constructor


OpacityTransition

public OpacityTransition(Double opacity,
                         Integer duration)
Consturctor

Parameters:
opacity - Value of opacity
duration - Duration of the animation
Method Detail

getOpacity

public Double getOpacity()
Gets value of Opacity

Returns:
Value of Opacity

setOpacity

public void setOpacity(Double opacity)
Sets value of opacity

Parameters:
opacity - New value of opacity

getDuration

public Integer getDuration()
Gets value of duration

Returns:
Value of duration

setDuration

public void setDuration(Integer duration)
Sets value of duration

Parameters:
duration - Value of duration


Copyright © 2016. All rights reserved.