Package org.loboevolution.svg.dom
Class SVGLengthImpl
java.lang.Object
org.loboevolution.svg.dom.SVGLengthImpl
- All Implemented Interfaces:
SVGLength
SVGLengthImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.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
ConstructorsConstructorDescriptionConstructor 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 TypeMethodDescriptionvoidconvertToSpecifiedUnits(short unitType) convertToSpecifiedUnits.protected floatgetTransformedLength(AffineTransform transform) getTransformedLength.shortgetUnitType.floatgetValue()getValue.getValueAsString.floatgetValueInSpecifiedUnits.voidnewValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.voidsetValue(float value) setValue.voidsetValueAsString(String valueAsStr) setValueAsString.voidsetValueInSpecifiedUnits(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- aStringobject.
-
SVGLengthImpl
public SVGLengthImpl(float valueInSpecifiedUnits) Constructor for SVGLengthImpl.
- Parameters:
valueInSpecifiedUnits- a float.
-
-
Method Details
-
getUnitType
public short getUnitType()getUnitType.
- Specified by:
getUnitTypein interfaceSVGLength- Returns:
- a short.
-
getValue
public float getValue()getValue.
-
setValue
public void setValue(float value) setValue.
-
getValueAsString
getValueAsString.
- Specified by:
getValueAsStringin interfaceSVGLength- Returns:
- a
Stringobject.
-
setValueAsString
setValueAsString.
- Specified by:
setValueAsStringin interfaceSVGLength- Parameters:
valueAsStr- aStringobject.
-
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.
- Specified by:
newValueSpecifiedUnitsin interfaceSVGLength- Parameters:
unitType- a short.valueInSpecifiedUnits- a float.
-
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unitType) convertToSpecifiedUnits.
- Specified by:
convertToSpecifiedUnitsin interfaceSVGLength- Parameters:
unitType- a short.
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()getValueInSpecifiedUnits.
- Specified by:
getValueInSpecifiedUnitsin interfaceSVGLength- Returns:
- a float.
-
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float valueInSpecifiedUnits) setValueInSpecifiedUnits.
- Specified by:
setValueInSpecifiedUnitsin interfaceSVGLength- Parameters:
valueInSpecifiedUnits- a float.
-
getTransformedLength
getTransformedLength.
- Parameters:
transform- aAffineTransformobject.- Returns:
- a float.
-