Class SVGLengthImpl

java.lang.Object
org.loboevolution.html.dom.svgimpl.SVGLengthImpl
All Implemented Interfaces:
SVGLength

public class SVGLengthImpl extends Object implements SVGLength

SVGLengthImpl class.

  • Constructor Details

    • SVGLengthImpl

      public SVGLengthImpl()

      Constructor for SVGLengthImpl.

    • SVGLengthImpl

      public SVGLengthImpl(short unitType)

      Constructor for SVGLengthImpl.

      Parameters:
      unitType - a short.
    • SVGLengthImpl

      public SVGLengthImpl(short unitType, float valueInSpecifiedUnits)

      Constructor for SVGLengthImpl.

      Parameters:
      unitType - a short.
      valueInSpecifiedUnits - a float.
    • SVGLengthImpl

      public SVGLengthImpl(String valueAsString)

      Constructor for SVGLengthImpl.

      Parameters:
      valueAsString - a String object.
    • SVGLengthImpl

      public SVGLengthImpl(float valueInSpecifiedUnits)

      Constructor for SVGLengthImpl.

      Parameters:
      valueInSpecifiedUnits - a float.
  • Method Details

    • getUnitType

      public short getUnitType()

      getUnitType.

      Specified by:
      getUnitType in interface SVGLength
      Returns:
      a short.
    • getValue

      public float getValue()

      getValue.

      Specified by:
      getValue in interface SVGLength
      Returns:
      a float.
    • setValue

      public void setValue(float value)

      setValue.

      Specified by:
      setValue in interface SVGLength
      Parameters:
      value - a float.
    • getValueAsString

      public String getValueAsString()

      getValueAsString.

      Specified by:
      getValueAsString in interface SVGLength
      Returns:
      a String object.
    • setValueAsString

      public void setValueAsString(String valueAsStr)

      setValueAsString.

      Specified by:
      setValueAsString in interface SVGLength
      Parameters:
      valueAsStr - a String object.
    • newValueSpecifiedUnits

      public void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits)

      newValueSpecifiedUnits.

      Specified by:
      newValueSpecifiedUnits in interface SVGLength
      Parameters:
      unitType - a short.
      valueInSpecifiedUnits - a float.
    • convertToSpecifiedUnits

      public void convertToSpecifiedUnits(short unitType)

      convertToSpecifiedUnits.

      Specified by:
      convertToSpecifiedUnits in interface SVGLength
      Parameters:
      unitType - a short.
    • getValueInSpecifiedUnits

      public float getValueInSpecifiedUnits()

      getValueInSpecifiedUnits.

      Specified by:
      getValueInSpecifiedUnits in interface SVGLength
      Returns:
      a float.
    • setValueInSpecifiedUnits

      public void setValueInSpecifiedUnits(float valueInSpecifiedUnits)

      setValueInSpecifiedUnits.

      Specified by:
      setValueInSpecifiedUnits in interface SVGLength
      Parameters:
      valueInSpecifiedUnits - a float.
    • getTransformedLength

      protected float getTransformedLength(AffineTransform transform)

      getTransformedLength.

      Parameters:
      transform - a AffineTransform object.
      Returns:
      a float.