Class AbstractSVGAnimatedLength

    • Field Detail

      • HORIZONTAL_LENGTH

        public static final short HORIZONTAL_LENGTH
        This constant represents horizontal lengths.
        See Also:
        Constant Field Values
      • VERTICAL_LENGTH

        public static final short VERTICAL_LENGTH
        This constant represents vertical lengths.
        See Also:
        Constant Field Values
      • OTHER_LENGTH

        public static final short OTHER_LENGTH
        This constant represents other lengths.
        See Also:
        Constant Field Values
      • direction

        protected short direction
        This length's direction.
      • changing

        protected boolean changing
        Whether the value is changing.
      • nonNegative

        protected boolean nonNegative
        Whether the value must be non-negative.
    • Constructor Detail

      • AbstractSVGAnimatedLength

        public AbstractSVGAnimatedLength​(AbstractElement elt,
                                         java.lang.String ns,
                                         java.lang.String ln,
                                         short dir,
                                         boolean nonneg)
        Creates a new SVGAnimatedLength.
        Parameters:
        elt - The associated element.
        ns - The attribute's namespace URI.
        ln - The attribute's local name.
        dir - The length's direction.
        nonneg - Whether the length must be non-negative.
    • Method Detail

      • getDefaultValue

        protected abstract java.lang.String getDefaultValue()
        Returns:
        the default value to use when the associated attribute was not specified.
      • getBaseVal

        public org.w3c.dom.svg.SVGLength getBaseVal()
        DOM: Implements SVGAnimatedLength.getBaseVal().
        Specified by:
        getBaseVal in interface org.w3c.dom.svg.SVGAnimatedLength
      • getAnimVal

        public org.w3c.dom.svg.SVGLength getAnimVal()
        DOM: Implements SVGAnimatedLength.getAnimVal().
        Specified by:
        getAnimVal in interface org.w3c.dom.svg.SVGAnimatedLength
      • getCheckedValue

        public float getCheckedValue()
        Gets the current animated length value. If the attribute is missing or malformed, an exception is thrown.
      • attrAdded

        public void attrAdded​(org.w3c.dom.Attr node,
                              java.lang.String newv)
        Called when an Attr node has been added.
        Specified by:
        attrAdded in interface LiveAttributeValue
      • attrModified

        public void attrModified​(org.w3c.dom.Attr node,
                                 java.lang.String oldv,
                                 java.lang.String newv)
        Called when an Attr node has been modified.
        Specified by:
        attrModified in interface LiveAttributeValue
      • attrRemoved

        public void attrRemoved​(org.w3c.dom.Attr node,
                                java.lang.String oldv)
        Called when an Attr node has been removed.
        Specified by:
        attrRemoved in interface LiveAttributeValue
      • attrChanged

        protected void attrChanged()
        Called when the attribute has changed in some way.