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 Summary

      Constructors 
      Constructor Description
      OpacityTransition()
      Constructor
      OpacityTransition​(java.lang.Double opacity, java.lang.Integer duration)
      Consturctor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getDuration()
      Gets value of duration
      java.lang.Double getOpacity()
      Gets value of Opacity
      void setDuration​(java.lang.Integer duration)
      Sets value of duration
      void setOpacity​(java.lang.Double opacity)
      Sets value of opacity
      • 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​(java.lang.Double opacity,
                                 java.lang.Integer duration)
        Consturctor
        Parameters:
        opacity - Value of opacity
        duration - Duration of the animation
    • 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