Class AbstractSVGAnimatedLength.BaseSVGLength

java.lang.Object
io.sf.carte.echosvg.anim.dom.AbstractSVGLength
io.sf.carte.echosvg.anim.dom.AbstractSVGAnimatedLength.BaseSVGLength
All Implemented Interfaces:
SVGLength
Enclosing class:
AbstractSVGAnimatedLength

protected class AbstractSVGAnimatedLength.BaseSVGLength extends AbstractSVGLength
This class represents the SVGLength returned by AbstractSVGAnimatedLength.getBaseVal().
  • Field Details

    • valid

      protected boolean valid
      Whether this length is valid.
    • missing

      protected boolean missing
      Whether the attribute is missing.
  • Constructor Details

    • BaseSVGLength

      public BaseSVGLength(short direction)
      Creates a new BaseSVGLength.
      Parameters:
      direction - is one of HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH
  • Method Details

    • invalidate

      public void invalidate()
      Invalidates this length.
    • reset

      protected void reset()
      Resets the value of the associated attribute.
      Overrides:
      reset in class AbstractSVGLength
    • revalidate

      protected void revalidate()
      Initializes the length, if needed.
      Overrides:
      revalidate in class AbstractSVGLength
    • getAssociatedElement

      protected SVGOMElement getAssociatedElement()
      Returns the element this length is associated with.
      Specified by:
      getAssociatedElement in class AbstractSVGLength