|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.svg.SVGOMAngle
public class SVGOMAngle
Implementation of an SVGAngle not associated with any attribute.
| Field Summary | |
|---|---|
protected static double[][] |
K
Table of multipliers for angle unit conversion. |
protected static String[] |
UNITS
The unit string representations. |
protected float |
value
The 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 | |
|---|---|
SVGOMAngle()
|
|
| Method Summary | |
|---|---|
void |
convertToSpecifiedUnits(short unit)
DOM: Implements SVGAngle.convertToSpecifiedUnits(short). |
short |
getUnitType()
DOM: Implements SVGAngle.getUnitType(). |
float |
getValue()
DOM: Implements SVGAngle.getValue(). |
String |
getValueAsString()
DOM: Implements SVGAngle.getValueAsString(). |
float |
getValueInSpecifiedUnits()
DOM: Implements SVGAngle.getValueInSpecifiedUnits(). |
void |
newValueSpecifiedUnits(short unit,
float value)
DOM: Implements SVGAngle.newValueSpecifiedUnits(short,float). |
protected void |
parse(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: Implements SVGAngle.setValue(float). |
void |
setValueAsString(String value)
DOM: Implements SVGAngle.setValueAsString(String). |
void |
setValueInSpecifiedUnits(float value)
DOM: Implements SVGAngle.setValueInSpecifiedUnits(float). |
static float |
toUnit(short fromUnit,
float value,
short toUnit)
Converts an angle from one unit to another. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float value
protected static final String[] UNITS
protected static double[][] K
| Constructor Detail |
|---|
public SVGOMAngle()
| Method Detail |
|---|
public short getUnitType()
SVGAngle.getUnitType().
getUnitType in interface org.w3c.dom.svg.SVGAnglepublic float getValue()
SVGAngle.getValue().
getValue in interface org.w3c.dom.svg.SVGAngle
public void setValue(float value)
throws DOMException
SVGAngle.setValue(float).
setValue in interface org.w3c.dom.svg.SVGAngleDOMExceptionpublic float getValueInSpecifiedUnits()
SVGAngle.getValueInSpecifiedUnits().
getValueInSpecifiedUnits in interface org.w3c.dom.svg.SVGAngle
public void setValueInSpecifiedUnits(float value)
throws DOMException
SVGAngle.setValueInSpecifiedUnits(float).
setValueInSpecifiedUnits in interface org.w3c.dom.svg.SVGAngleDOMExceptionpublic String getValueAsString()
SVGAngle.getValueAsString().
getValueAsString in interface org.w3c.dom.svg.SVGAngle
public void setValueAsString(String value)
throws DOMException
SVGAngle.setValueAsString(String).
setValueAsString in interface org.w3c.dom.svg.SVGAngleDOMException
public void newValueSpecifiedUnits(short unit,
float value)
SVGAngle.newValueSpecifiedUnits(short,float).
newValueSpecifiedUnits in interface org.w3c.dom.svg.SVGAnglepublic void convertToSpecifiedUnits(short unit)
SVGAngle.convertToSpecifiedUnits(short).
convertToSpecifiedUnits in interface org.w3c.dom.svg.SVGAngleprotected void reset()
protected void revalidate()
protected void parse(String s)
public static float toUnit(short fromUnit,
float value,
short toUnit)
public void setUnitType(short unitType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||