public class SVGOMAngle
extends java.lang.Object
SVGAngle
not associated with any attribute.Modifier and Type | Field and Description |
---|---|
protected static double[][] |
K
Table of multipliers for angle unit conversion.
|
protected static java.lang.String[] |
UNITS
The unit string representations.
|
protected short |
unitType
The type of this angle.
|
protected float |
value
The value of this angle.
|
Constructor and Description |
---|
SVGOMAngle() |
Modifier and Type | Method and Description |
---|---|
void |
convertToSpecifiedUnits(short unit)
DOM: Implements
SVGAngle#convertToSpecifiedUnits(short) . |
short |
getUnitType()
DOM: Implements
SVGAngle#getUnitType() . |
float |
getValue()
DOM: Implements
SVGAngle#getValue() . |
java.lang.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(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 |
setValue(float value)
DOM: Implements
SVGAngle#setValue(float) . |
void |
setValueAsString(java.lang.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.
|
protected short unitType
protected float value
protected static final java.lang.String[] UNITS
protected static double[][] K
public short getUnitType()
SVGAngle#getUnitType()
.public float getValue()
SVGAngle#getValue()
.public void setValue(float value) throws org.w3c.dom.DOMException
SVGAngle#setValue(float)
.org.w3c.dom.DOMException
public float getValueInSpecifiedUnits()
SVGAngle#getValueInSpecifiedUnits()
.public void setValueInSpecifiedUnits(float value) throws org.w3c.dom.DOMException
SVGAngle#setValueInSpecifiedUnits(float)
.org.w3c.dom.DOMException
public java.lang.String getValueAsString()
SVGAngle#getValueAsString()
.public void setValueAsString(java.lang.String value) throws org.w3c.dom.DOMException
SVGAngle#setValueAsString(String)
.org.w3c.dom.DOMException
public void newValueSpecifiedUnits(short unit, float value)
SVGAngle#newValueSpecifiedUnits(short,float)
.public void convertToSpecifiedUnits(short unit)
SVGAngle#convertToSpecifiedUnits(short)
.protected void reset()
protected void revalidate()
protected void parse(java.lang.String s)
public static float toUnit(short fromUnit, float value, short toUnit)
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.