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.SVGAngleImplementation of anSVGAnglenot 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[][]KTable of multipliers for angle unit conversion.protected static java.lang.String[]UNITSThe unit string representations.private shortunitTypeThe type of this angle.protected floatvalueThe 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 voidconvertToSpecifiedUnits(short unit)DOM: ImplementsSVGAngle.convertToSpecifiedUnits(short).shortgetUnitType()DOM: ImplementsSVGAngle.getUnitType().floatgetValue()DOM: ImplementsSVGAngle.getValue().java.lang.StringgetValueAsString()DOM: ImplementsSVGAngle.getValueAsString().floatgetValueInSpecifiedUnits()DOM: ImplementsSVGAngle.getValueInSpecifiedUnits().voidnewValueSpecifiedUnits(short unit, float value)DOM: ImplementsSVGAngle.newValueSpecifiedUnits(short,float).protected voidparse(java.lang.String s)Parse a String value as an SVGAngle.protected voidreset()Resets the associated attribute value according to the current value.protected voidrevalidate()Updates the values in this object according to the associated attribute value.voidsetUnitType(short unitType)voidsetValue(float value)DOM: ImplementsSVGAngle.setValue(float).voidsetValueAsString(java.lang.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.
-
-
-
Method Detail
-
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
public void setValue(float value) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGAngle.setValue(float).- Specified by:
setValuein interfaceorg.w3c.dom.svg.SVGAngle- Throws:
org.w3c.dom.DOMException
-
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()
DOM: ImplementsSVGAngle.getValueInSpecifiedUnits().- Specified by:
getValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGAngle
-
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float value) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGAngle.setValueInSpecifiedUnits(float).- Specified by:
setValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGAngle- Throws:
org.w3c.dom.DOMException
-
getValueAsString
public java.lang.String getValueAsString()
DOM: ImplementsSVGAngle.getValueAsString().- Specified by:
getValueAsStringin interfaceorg.w3c.dom.svg.SVGAngle
-
setValueAsString
public void setValueAsString(java.lang.String value) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGAngle.setValueAsString(String).- Specified by:
setValueAsStringin 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:
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
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)
-
-