Class 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
    • 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