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
FieldsModifier and TypeFieldDescriptionprotected booleanWhether the attribute is missing.protected booleanWhether this length is valid.Fields inherited from class io.sf.carte.echosvg.anim.dom.AbstractSVGLength
context, direction, HORIZONTAL_LENGTH, OTHER_LENGTH, unitType, value, VERTICAL_LENGTHFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SVGOMElementReturns the element this length is associated with.voidInvalidates this length.protected voidreset()Resets the value of the associated attribute.protected voidInitializes the length, if needed.Methods inherited from class io.sf.carte.echosvg.anim.dom.AbstractSVGLength
convertToSpecifiedUnits, getCSSUnitType, getUnitType, getValue, getValueAsString, getValueInSpecifiedUnits, newValueSpecifiedCSSUnits, 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:
resetin classAbstractSVGLength
-
revalidate
protected void revalidate()Initializes the length, if needed.- Overrides:
revalidatein classAbstractSVGLength
-
getAssociatedElement
Returns the element this length is associated with.- Specified by:
getAssociatedElementin classAbstractSVGLength
-