Class SVGAngleImpl
java.lang.Object
org.loboevolution.html.dom.svgimpl.SVGAngleImpl
- All Implemented Interfaces:
SVGAngle
SVGAngleImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.html.dom.svg.SVGAngle
SVG_ANGLETYPE_DEG, SVG_ANGLETYPE_GRAD, SVG_ANGLETYPE_RAD, SVG_ANGLETYPE_UNKNOWN, SVG_ANGLETYPE_UNSPECIFIED
-
Constructor Summary
ConstructorDescriptionCreates and new SVGAngleImpl.SVGAngleImpl
(float value) Creates and new SVGAngleImpl.SVGAngleImpl
(String valueAndUnit) Creates a new SVGAngleImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
convertToSpecifiedUnits
(short unitType) convertToSpecifiedUnits.short
getUnitType.float
getValue()
getValue.getValueAsString.float
getValueInSpecifiedUnits.void
newValueSpecifiedUnits
(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.void
setValue
(float value) setValue.void
setValueAsString
(String valueAsString) setValueAsString.void
setValueInSpecifiedUnits
(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:
getUnitType
in interfaceSVGAngle
- Returns:
- a short.
-
getValue
public float getValue()getValue.
-
setValue
public void setValue(float value) setValue.
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()getValueInSpecifiedUnits.
- Specified by:
getValueInSpecifiedUnits
in interfaceSVGAngle
- Returns:
- a float.
-
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float valueInSpecifiedUnits) setValueInSpecifiedUnits.
- Specified by:
setValueInSpecifiedUnits
in interfaceSVGAngle
- Parameters:
valueInSpecifiedUnits
- a float.
-
getValueAsString
getValueAsString.
- Specified by:
getValueAsString
in interfaceSVGAngle
- Returns:
- a
String
object.
-
setValueAsString
setValueAsString.
- Specified by:
setValueAsString
in interfaceSVGAngle
- Parameters:
valueAsString
- aString
object.
-
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits) newValueSpecifiedUnits.
- Specified by:
newValueSpecifiedUnits
in interfaceSVGAngle
- Parameters:
unitType
- a short.valueInSpecifiedUnits
- a float.
-
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unitType) convertToSpecifiedUnits.
- Specified by:
convertToSpecifiedUnits
in interfaceSVGAngle
- Parameters:
unitType
- a short.
-