- All Known Implementing Classes:
AbstractSVGAnimatedLength.AnimSVGLength
,AbstractSVGAnimatedLength.BaseSVGLength
,AbstractSVGLength
,AbstractSVGLengthList.SVGLengthItem
,SVGOMLength
public interface SVGLength
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convertToSpecifiedUnits
(short unitType) short
float
getValue()
float
void
newValueSpecifiedUnits
(short unitType, float valueInSpecifiedUnits) void
setValue
(float value) void
setValueAsString
(String valueAsString) void
setValueInSpecifiedUnits
(float valueInSpecifiedUnits)
-
Field Details
-
SVG_LENGTHTYPE_UNKNOWN
static final short SVG_LENGTHTYPE_UNKNOWN- See Also:
-
SVG_LENGTHTYPE_NUMBER
static final short SVG_LENGTHTYPE_NUMBER- See Also:
-
SVG_LENGTHTYPE_PERCENTAGE
static final short SVG_LENGTHTYPE_PERCENTAGE- See Also:
-
SVG_LENGTHTYPE_EMS
static final short SVG_LENGTHTYPE_EMS- See Also:
-
SVG_LENGTHTYPE_EXS
static final short SVG_LENGTHTYPE_EXS- See Also:
-
SVG_LENGTHTYPE_PX
static final short SVG_LENGTHTYPE_PX- See Also:
-
SVG_LENGTHTYPE_CM
static final short SVG_LENGTHTYPE_CM- See Also:
-
SVG_LENGTHTYPE_MM
static final short SVG_LENGTHTYPE_MM- See Also:
-
SVG_LENGTHTYPE_IN
static final short SVG_LENGTHTYPE_IN- See Also:
-
SVG_LENGTHTYPE_PT
static final short SVG_LENGTHTYPE_PT- See Also:
-
SVG_LENGTHTYPE_PC
static final short SVG_LENGTHTYPE_PC- See Also:
-
-
Method Details
-
getUnitType
short getUnitType() -
getValue
float getValue() -
setValue
- Throws:
DOMException
-
getValueInSpecifiedUnits
float getValueInSpecifiedUnits() -
setValueInSpecifiedUnits
- Throws:
DOMException
-
getValueAsString
String getValueAsString() -
setValueAsString
- Throws:
DOMException
-
newValueSpecifiedUnits
void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits) -
convertToSpecifiedUnits
void convertToSpecifiedUnits(short unitType)
-