Class SVGOMAngle
java.lang.Object
org.apache.batik.dom.svg.SVGOMAngle
- All Implemented Interfaces:
org.w3c.dom.svg.SVGAngle
- Direct Known Subclasses:
SVGOMAnimatedMarkerOrientValue.AnimSVGAngle, SVGOMAnimatedMarkerOrientValue.BaseSVGAngle
Implementation of an
SVGAngle not associated with any attribute.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static double[][]Table of multipliers for angle unit conversion.protected static final String[]The unit string representations.protected floatThe value of this angle.Fields inherited from interface org.w3c.dom.svg.SVGAngle
SVG_ANGLETYPE_DEG, SVG_ANGLETYPE_GRAD, SVG_ANGLETYPE_RAD, SVG_ANGLETYPE_UNKNOWN, SVG_ANGLETYPE_UNSPECIFIED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertToSpecifiedUnits(short unit) DOM: ImplementsSVGAngle.convertToSpecifiedUnits(short).shortDOM: ImplementsSVGAngle.getUnitType().floatgetValue()DOM: ImplementsSVGAngle.getValue().DOM: ImplementsSVGAngle.getValueAsString().floatDOM: ImplementsSVGAngle.getValueInSpecifiedUnits().voidnewValueSpecifiedUnits(short unit, float value) DOM: ImplementsSVGAngle.newValueSpecifiedUnits(short,float).protected voidParse a String value as an SVGAngle.protected voidreset()Resets the associated attribute value according to the current value.protected voidUpdates the values in this object according to the associated attribute value.voidsetUnitType(short unitType) voidsetValue(float value) DOM: ImplementsSVGAngle.setValue(float).voidsetValueAsString(String value) DOM: ImplementsSVGAngle.setValueAsString(String).voidsetValueInSpecifiedUnits(float value) DOM: ImplementsSVGAngle.setValueInSpecifiedUnits(float).static floattoUnit(short fromUnit, float value, short toUnit) Converts an angle from one unit to another.
-
Field Details
-
value
protected float valueThe value of this angle. -
UNITS
The unit string representations. -
K
protected static double[][] KTable of multipliers for angle unit conversion.
-
-
Constructor Details
-
SVGOMAngle
public SVGOMAngle()
-
-
Method Details
-
getUnitType
public short getUnitType()DOM: ImplementsSVGAngle.getUnitType().- Specified by:
getUnitTypein interfaceorg.w3c.dom.svg.SVGAngle
-
getValue
public float getValue()DOM: ImplementsSVGAngle.getValue().- Specified by:
getValuein interfaceorg.w3c.dom.svg.SVGAngle
-
setValue
DOM: ImplementsSVGAngle.setValue(float).- Specified by:
setValuein interfaceorg.w3c.dom.svg.SVGAngle- Throws:
DOMException
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()DOM: ImplementsSVGAngle.getValueInSpecifiedUnits().- Specified by:
getValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGAngle
-
setValueInSpecifiedUnits
DOM: ImplementsSVGAngle.setValueInSpecifiedUnits(float).- Specified by:
setValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGAngle- Throws:
DOMException
-
getValueAsString
DOM: ImplementsSVGAngle.getValueAsString().- Specified by:
getValueAsStringin interfaceorg.w3c.dom.svg.SVGAngle
-
setValueAsString
DOM: ImplementsSVGAngle.setValueAsString(String).- Specified by:
setValueAsStringin interfaceorg.w3c.dom.svg.SVGAngle- Throws:
DOMException
-
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unit, float value) DOM: ImplementsSVGAngle.newValueSpecifiedUnits(short,float).- Specified by:
newValueSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGAngle
-
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unit) DOM: ImplementsSVGAngle.convertToSpecifiedUnits(short).- Specified by:
convertToSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGAngle
-
reset
protected void reset()Resets the associated attribute value according to the current value. This should be overridden in descendant classes that associate the angle object with an attribute. -
revalidate
protected void revalidate()Updates the values in this object according to the associated attribute value. This should be overridden in descendant classes that associate the angle object with an attribute. -
parse
Parse a String value as an SVGAngle. -
toUnit
public static float toUnit(short fromUnit, float value, short toUnit) Converts an angle from one unit to another. -
setUnitType
public void setUnitType(short unitType)
-