Package org.loboevolution.html.dom.svg
Interface SVGLength
- All Known Implementing Classes:
SVGLengthImpl
public interface SVGLength
SVGLength interface.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
Constant SVG_LENGTHTYPE_CM=6static final short
Constant SVG_LENGTHTYPE_EMS=3static final short
Constant SVG_LENGTHTYPE_EXS=4static final short
Constant SVG_LENGTHTYPE_IN=8static final short
Constant SVG_LENGTHTYPE_MM=7static final short
Constant SVG_LENGTHTYPE_NUMBER=1static final short
Constant SVG_LENGTHTYPE_PC=10static final short
Constant SVG_LENGTHTYPE_PERCENTAGE=2static final short
Constant SVG_LENGTHTYPE_PT=9static final short
Constant SVG_LENGTHTYPE_PX=5static final short
Constant SVG_LENGTHTYPE_UNKNOWN=0 -
Method Summary
Modifier and TypeMethodDescriptionvoid
convertToSpecifiedUnits
(short unitType) convertToSpecifiedUnits.short
getUnitType.float
getValue()
getValue.getValueAsString.float
getValueInSpecifiedUnits.void
newValueSpecifiedUnits
(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.void
setValue
(float value) setValue.void
setValueAsString
(String valueAsString) setValueAsString.void
setValueInSpecifiedUnits
(float valueInSpecifiedUnits) setValueInSpecifiedUnits.
-
Field Details
-
SVG_LENGTHTYPE_UNKNOWN
static final short SVG_LENGTHTYPE_UNKNOWNConstant SVG_LENGTHTYPE_UNKNOWN=0- See Also:
-
SVG_LENGTHTYPE_NUMBER
static final short SVG_LENGTHTYPE_NUMBERConstant SVG_LENGTHTYPE_NUMBER=1- See Also:
-
SVG_LENGTHTYPE_PERCENTAGE
static final short SVG_LENGTHTYPE_PERCENTAGEConstant SVG_LENGTHTYPE_PERCENTAGE=2- See Also:
-
SVG_LENGTHTYPE_EMS
static final short SVG_LENGTHTYPE_EMSConstant SVG_LENGTHTYPE_EMS=3- See Also:
-
SVG_LENGTHTYPE_EXS
static final short SVG_LENGTHTYPE_EXSConstant SVG_LENGTHTYPE_EXS=4- See Also:
-
SVG_LENGTHTYPE_PX
static final short SVG_LENGTHTYPE_PXConstant SVG_LENGTHTYPE_PX=5- See Also:
-
SVG_LENGTHTYPE_CM
static final short SVG_LENGTHTYPE_CMConstant SVG_LENGTHTYPE_CM=6- See Also:
-
SVG_LENGTHTYPE_MM
static final short SVG_LENGTHTYPE_MMConstant SVG_LENGTHTYPE_MM=7- See Also:
-
SVG_LENGTHTYPE_IN
static final short SVG_LENGTHTYPE_INConstant SVG_LENGTHTYPE_IN=8- See Also:
-
SVG_LENGTHTYPE_PT
static final short SVG_LENGTHTYPE_PTConstant SVG_LENGTHTYPE_PT=9- See Also:
-
SVG_LENGTHTYPE_PC
static final short SVG_LENGTHTYPE_PCConstant SVG_LENGTHTYPE_PC=10- See Also:
-
-
Method Details
-
getUnitType
short getUnitType()getUnitType.
- Returns:
- a short.
-
getValue
float getValue()getValue.
- Returns:
- a float.
-
setValue
void setValue(float value) setValue.
- Parameters:
value
- a float.- Throws:
DOMException
- if any.
-
getValueInSpecifiedUnits
float getValueInSpecifiedUnits()getValueInSpecifiedUnits.
- Returns:
- a float.
-
setValueInSpecifiedUnits
void setValueInSpecifiedUnits(float valueInSpecifiedUnits) setValueInSpecifiedUnits.
- Parameters:
valueInSpecifiedUnits
- a float.- Throws:
DOMException
- if any.
-
getValueAsString
String getValueAsString()getValueAsString.
- Returns:
- a
String
object.
-
setValueAsString
setValueAsString.
- Parameters:
valueAsString
- aString
object.- Throws:
DOMException
- if any.
-
newValueSpecifiedUnits
void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.
- Parameters:
unitType
- a short.valueInSpecifiedUnits
- a float.
-
convertToSpecifiedUnits
void convertToSpecifiedUnits(short unitType) convertToSpecifiedUnits.
- Parameters:
unitType
- a short.
-