Class AnimateMotion

    • Field Detail

      • matchPoint

        static final java.util.regex.Matcher matchPoint
      • path

        private java.awt.geom.GeneralPath path
      • rotateType

        private int rotateType
      • rotate

        private double rotate
      • bezierSegs

        final java.util.ArrayList<Bezier> bezierSegs
      • curveLength

        double curveLength
    • Constructor Detail

      • AnimateMotion

        public AnimateMotion()
        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 AnimateXform
        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
      • setPoint

        protected static void setPoint​(java.awt.geom.Point2D.Float pt,
                                       java.lang.String x,
                                       java.lang.String y)
      • buildPath

        private void buildPath​(java.lang.String from,
                               java.lang.String to)
      • paramaterizePath

        private void paramaterizePath()
      • eval

        public java.awt.geom.AffineTransform eval​(java.awt.geom.AffineTransform xform,
                                                  double interp)
        Evaluates this animation element for the passed interpolation time. Interp must be on [0..1].
        Specified by:
        eval in class AnimateXform
      • getPath

        public java.awt.geom.GeneralPath getPath()
        Returns:
        the path
      • setPath

        public void setPath​(java.awt.geom.GeneralPath path)
        Parameters:
        path - the path to set
      • getRotateType

        public int getRotateType()
        Returns:
        the rotateType
      • setRotateType

        public void setRotateType​(int rotateType)
        Parameters:
        rotateType - the rotateType to set
      • getRotate

        public double getRotate()
        Returns:
        the rotate
      • setRotate

        public void setRotate​(double rotate)
        Parameters:
        rotate - the rotate to set