Class AnimateColor

    • Field Detail

      • fromValue

        private java.awt.Color fromValue
      • toValue

        private java.awt.Color toValue
    • Constructor Detail

      • AnimateColor

        public AnimateColor()
        Creates a new instance of Animate
    • Method Detail

      • loaderStartElement

        public void loaderStartElement​(SVGLoaderHelper helper,
                                       org.xml.sax.Attributes attrs,
                                       SVGElement parent)
                                throws org.xml.sax.SAXException
        Description copied from class: SVGElement
        Called during SAX load process to notify that this tag has begun the process of being loaded
        Overrides:
        loaderStartElement in class AnimateBase
        Parameters:
        helper - - An object passed to all SVG elements involved in this build process to aid in sharing information.
        attrs - - Attributes of this tag
        Throws:
        org.xml.sax.SAXException
      • evalColor

        public java.awt.Color evalColor​(double interp)
        Evaluates this animation element for the passed interpolation time. Interp must be on [0..1].
        Specified by:
        evalColor in interface AnimateColorIface
      • getFromValue

        public java.awt.Color getFromValue()
        Returns:
        the fromValue
      • setFromValue

        public void setFromValue​(java.awt.Color fromValue)
        Parameters:
        fromValue - the fromValue to set
      • getToValue

        public java.awt.Color getToValue()
        Returns:
        the toValue
      • setToValue

        public void setToValue​(java.awt.Color toValue)
        Parameters:
        toValue - the toValue to set