Class SVGLengthImpl
java.lang.Object
org.loboevolution.html.dom.svgimpl.SVGLengthImpl
- All Implemented Interfaces:
SVGLength
SVGLengthImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.html.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
ConstructorDescriptionConstructor for SVGLengthImpl.SVGLengthImpl
(float valueInSpecifiedUnits) Constructor for SVGLengthImpl.SVGLengthImpl
(short unitType) Constructor for SVGLengthImpl.SVGLengthImpl
(short unitType, float valueInSpecifiedUnits) Constructor for SVGLengthImpl.SVGLengthImpl
(String valueAsString) Constructor for SVGLengthImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
convertToSpecifiedUnits
(short unitType) convertToSpecifiedUnits.protected float
getTransformedLength
(AffineTransform transform) getTransformedLength.short
getUnitType.float
getValue()
getValue.getValueAsString.float
getValueInSpecifiedUnits.void
newValueSpecifiedUnits
(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.void
setValue
(float value) setValue.void
setValueAsString
(String valueAsStr) setValueAsString.void
setValueInSpecifiedUnits
(float valueInSpecifiedUnits) setValueInSpecifiedUnits.
-
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
Constructor for SVGLengthImpl.
- Parameters:
valueAsString
- aString
object.
-
SVGLengthImpl
public SVGLengthImpl(float valueInSpecifiedUnits) Constructor for SVGLengthImpl.
- Parameters:
valueInSpecifiedUnits
- a float.
-
-
Method Details
-
getUnitType
public short getUnitType()getUnitType.
- Specified by:
getUnitType
in interfaceSVGLength
- Returns:
- a short.
-
getValue
public float getValue()getValue.
-
setValue
public void setValue(float value) setValue.
-
getValueAsString
getValueAsString.
- Specified by:
getValueAsString
in interfaceSVGLength
- Returns:
- a
String
object.
-
setValueAsString
setValueAsString.
- Specified by:
setValueAsString
in interfaceSVGLength
- Parameters:
valueAsStr
- aString
object.
-
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.
- Specified by:
newValueSpecifiedUnits
in interfaceSVGLength
- Parameters:
unitType
- a short.valueInSpecifiedUnits
- a float.
-
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unitType) convertToSpecifiedUnits.
- Specified by:
convertToSpecifiedUnits
in interfaceSVGLength
- Parameters:
unitType
- a short.
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()getValueInSpecifiedUnits.
- Specified by:
getValueInSpecifiedUnits
in interfaceSVGLength
- Returns:
- a float.
-
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float valueInSpecifiedUnits) setValueInSpecifiedUnits.
- Specified by:
setValueInSpecifiedUnits
in interfaceSVGLength
- Parameters:
valueInSpecifiedUnits
- a float.
-
getTransformedLength
getTransformedLength.
- Parameters:
transform
- aAffineTransform
object.- Returns:
- a float.
-