Package org.loboevolution.svg.dom
Class SVGAngleImpl
java.lang.Object
org.loboevolution.svg.dom.SVGAngleImpl
- All Implemented Interfaces:
SVGAngle
SVGAngleImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.svg.SVGAngle
SVG_ANGLETYPE_DEG, SVG_ANGLETYPE_GRAD, SVG_ANGLETYPE_RAD, SVG_ANGLETYPE_UNKNOWN, SVG_ANGLETYPE_UNSPECIFIED -
Constructor Summary
ConstructorsConstructorDescriptionCreates and new SVGAngleImpl.SVGAngleImpl(float value) Creates and new SVGAngleImpl.SVGAngleImpl(String valueAndUnit) Creates a new SVGAngleImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertToSpecifiedUnits(short unitType) convertToSpecifiedUnits.shortgetUnitType.floatgetValue()getValue.getValueAsString.floatgetValueInSpecifiedUnits.voidnewValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.voidsetValue(float value) setValue.voidsetValueAsString(String valueAsString) setValueAsString.voidsetValueInSpecifiedUnits(float valueInSpecifiedUnits) setValueInSpecifiedUnits.
-
Constructor Details
-
SVGAngleImpl
public SVGAngleImpl()Creates and new SVGAngleImpl. Initialized to 0 degrees. -
SVGAngleImpl
public SVGAngleImpl(float value) Creates and new SVGAngleImpl. Initialized to value degrees. -
SVGAngleImpl
Creates a new SVGAngleImpl.- Parameters:
valueAndUnit- The String representation of the angle. eg. 90deg
-
-
Method Details
-
getUnitType
public short getUnitType()getUnitType.
- Specified by:
getUnitTypein interfaceSVGAngle- Returns:
- a short.
-
getValue
public float getValue()getValue.
-
setValue
public void setValue(float value) setValue.
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()getValueInSpecifiedUnits.
- Specified by:
getValueInSpecifiedUnitsin interfaceSVGAngle- Returns:
- a float.
-
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float valueInSpecifiedUnits) setValueInSpecifiedUnits.
- Specified by:
setValueInSpecifiedUnitsin interfaceSVGAngle- Parameters:
valueInSpecifiedUnits- a float.
-
getValueAsString
getValueAsString.
- Specified by:
getValueAsStringin interfaceSVGAngle- Returns:
- a
Stringobject.
-
setValueAsString
setValueAsString.
- Specified by:
setValueAsStringin interfaceSVGAngle- Parameters:
valueAsString- aStringobject.
-
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.
- Specified by:
newValueSpecifiedUnitsin interfaceSVGAngle- Parameters:
unitType- a short.valueInSpecifiedUnits- a float.
-
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unitType) convertToSpecifiedUnits.
- Specified by:
convertToSpecifiedUnitsin interfaceSVGAngle- Parameters:
unitType- a short.
-