Interface SVGLength

All Known Implementing Classes:
SVGLengthImpl

public interface SVGLength

SVGLength interface.

  • Field Details

    • SVG_LENGTHTYPE_UNKNOWN

      static final short SVG_LENGTHTYPE_UNKNOWN
      Constant SVG_LENGTHTYPE_UNKNOWN=0
      See Also:
    • SVG_LENGTHTYPE_NUMBER

      static final short SVG_LENGTHTYPE_NUMBER
      Constant SVG_LENGTHTYPE_NUMBER=1
      See Also:
    • SVG_LENGTHTYPE_PERCENTAGE

      static final short SVG_LENGTHTYPE_PERCENTAGE
      Constant SVG_LENGTHTYPE_PERCENTAGE=2
      See Also:
    • SVG_LENGTHTYPE_EMS

      static final short SVG_LENGTHTYPE_EMS
      Constant SVG_LENGTHTYPE_EMS=3
      See Also:
    • SVG_LENGTHTYPE_EXS

      static final short SVG_LENGTHTYPE_EXS
      Constant SVG_LENGTHTYPE_EXS=4
      See Also:
    • SVG_LENGTHTYPE_PX

      static final short SVG_LENGTHTYPE_PX
      Constant SVG_LENGTHTYPE_PX=5
      See Also:
    • SVG_LENGTHTYPE_CM

      static final short SVG_LENGTHTYPE_CM
      Constant SVG_LENGTHTYPE_CM=6
      See Also:
    • SVG_LENGTHTYPE_MM

      static final short SVG_LENGTHTYPE_MM
      Constant SVG_LENGTHTYPE_MM=7
      See Also:
    • SVG_LENGTHTYPE_IN

      static final short SVG_LENGTHTYPE_IN
      Constant SVG_LENGTHTYPE_IN=8
      See Also:
    • SVG_LENGTHTYPE_PT

      static final short SVG_LENGTHTYPE_PT
      Constant SVG_LENGTHTYPE_PT=9
      See Also:
    • SVG_LENGTHTYPE_PC

      static final short SVG_LENGTHTYPE_PC
      Constant 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

      void setValueAsString(String valueAsString)

      setValueAsString.

      Parameters:
      valueAsString - a String 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.