Package org.apache.batik.dom.svg
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
public class SVGOMAngle extends java.lang.Object implements org.w3c.dom.svg.SVGAngle
Implementation of anSVGAngle
not associated with any attribute.- Version:
- $Id: SVGOMAngle.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected static double[][]
K
Table of multipliers for angle unit conversion.protected static java.lang.String[]
UNITS
The unit string representations.private short
unitType
The type of this angle.protected float
value
The value of this angle.
-
Constructor Summary
Constructors Constructor Description SVGOMAngle()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convertToSpecifiedUnits(short unit)
DOM: ImplementsSVGAngle.convertToSpecifiedUnits(short)
.short
getUnitType()
DOM: ImplementsSVGAngle.getUnitType()
.float
getValue()
DOM: ImplementsSVGAngle.getValue()
.java.lang.String
getValueAsString()
DOM: ImplementsSVGAngle.getValueAsString()
.float
getValueInSpecifiedUnits()
DOM: ImplementsSVGAngle.getValueInSpecifiedUnits()
.void
newValueSpecifiedUnits(short unit, float value)
DOM: ImplementsSVGAngle.newValueSpecifiedUnits(short,float)
.protected void
parse(java.lang.String s)
Parse a String value as an SVGAngle.protected void
reset()
Resets the associated attribute value according to the current value.protected void
revalidate()
Updates the values in this object according to the associated attribute value.void
setUnitType(short unitType)
void
setValue(float value)
DOM: ImplementsSVGAngle.setValue(float)
.void
setValueAsString(java.lang.String value)
DOM: ImplementsSVGAngle.setValueAsString(String)
.void
setValueInSpecifiedUnits(float value)
DOM: ImplementsSVGAngle.setValueInSpecifiedUnits(float)
.static float
toUnit(short fromUnit, float value, short toUnit)
Converts an angle from one unit to another.
-
-
-
Method Detail
-
getUnitType
public short getUnitType()
DOM: ImplementsSVGAngle.getUnitType()
.- Specified by:
getUnitType
in interfaceorg.w3c.dom.svg.SVGAngle
-
getValue
public float getValue()
DOM: ImplementsSVGAngle.getValue()
.- Specified by:
getValue
in interfaceorg.w3c.dom.svg.SVGAngle
-
setValue
public void setValue(float value) throws org.w3c.dom.DOMException
DOM: ImplementsSVGAngle.setValue(float)
.- Specified by:
setValue
in interfaceorg.w3c.dom.svg.SVGAngle
- Throws:
org.w3c.dom.DOMException
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()
DOM: ImplementsSVGAngle.getValueInSpecifiedUnits()
.- Specified by:
getValueInSpecifiedUnits
in interfaceorg.w3c.dom.svg.SVGAngle
-
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float value) throws org.w3c.dom.DOMException
DOM: ImplementsSVGAngle.setValueInSpecifiedUnits(float)
.- Specified by:
setValueInSpecifiedUnits
in interfaceorg.w3c.dom.svg.SVGAngle
- Throws:
org.w3c.dom.DOMException
-
getValueAsString
public java.lang.String getValueAsString()
DOM: ImplementsSVGAngle.getValueAsString()
.- Specified by:
getValueAsString
in interfaceorg.w3c.dom.svg.SVGAngle
-
setValueAsString
public void setValueAsString(java.lang.String value) throws org.w3c.dom.DOMException
DOM: ImplementsSVGAngle.setValueAsString(String)
.- Specified by:
setValueAsString
in interfaceorg.w3c.dom.svg.SVGAngle
- Throws:
org.w3c.dom.DOMException
-
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unit, float value)
DOM: ImplementsSVGAngle.newValueSpecifiedUnits(short,float)
.- Specified by:
newValueSpecifiedUnits
in interfaceorg.w3c.dom.svg.SVGAngle
-
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unit)
DOM: ImplementsSVGAngle.convertToSpecifiedUnits(short)
.- Specified by:
convertToSpecifiedUnits
in 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
protected void parse(java.lang.String s)
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)
-
-