Module io.sf.carte.echosvg.anim
Package io.sf.carte.echosvg.anim.dom
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
This class represents the SVGLength returned by
AbstractSVGAnimatedLength.getBaseVal()
.-
Nested Class Summary
Nested classes/interfaces inherited from class io.sf.carte.echosvg.anim.dom.AbstractSVGLength
AbstractSVGLength.DefaultContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether the attribute is missing.protected boolean
Whether this length is valid.Fields inherited from class io.sf.carte.echosvg.anim.dom.AbstractSVGLength
context, direction, HORIZONTAL_LENGTH, OTHER_LENGTH, UNITS, unitType, value, VERTICAL_LENGTH
Fields inherited from interface org.w3c.dom.svg.SVGLength
SVG_LENGTHTYPE_CM, SVG_LENGTHTYPE_EMS, SVG_LENGTHTYPE_EXS, SVG_LENGTHTYPE_IN, SVG_LENGTHTYPE_MM, SVG_LENGTHTYPE_NUMBER, SVG_LENGTHTYPE_PC, SVG_LENGTHTYPE_PERCENTAGE, SVG_LENGTHTYPE_PT, SVG_LENGTHTYPE_PX, SVG_LENGTHTYPE_UNKNOWN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SVGOMElement
Returns the element this length is associated with.void
Invalidates this length.protected void
reset()
Resets the value of the associated attribute.protected void
Initializes the length, if needed.Methods inherited from class io.sf.carte.echosvg.anim.dom.AbstractSVGLength
convertToSpecifiedUnits, getUnitType, getValue, getValueAsString, getValueInSpecifiedUnits, newValueSpecifiedUnits, parse, setValue, setValueAsString, setValueInSpecifiedUnits
-
Field Details
-
valid
protected boolean validWhether this length is valid. -
missing
protected boolean missingWhether 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 classAbstractSVGLength
-
revalidate
protected void revalidate()Initializes the length, if needed.- Overrides:
revalidate
in classAbstractSVGLength
-
getAssociatedElement
Returns the element this length is associated with.- Specified by:
getAssociatedElement
in classAbstractSVGLength
-