|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.dom.svg.AbstractSVGLength
public abstract class AbstractSVGLength
Default implementation for SVGLength.
This implementation provides the basic
functionalities of SVGLength. To have
a complete implementation, an element is
required to resolve the units.
According to the usage of this AbstractSVGLength,
the reset()
method is after
changes being made to the unitType or the value
of this length. Before any values are return
to the user of the AbstractSVGLength, the
revalidate()
method is being called
to insure the validity of the value and unit type
held by this object.
Nested Class Summary | |
---|---|
protected class |
AbstractSVGLength.DefaultContext
To resolve the units. |
Field Summary | |
---|---|
protected UnitProcessor.Context |
context
The context used to resolve the units. |
protected short |
direction
This length's direction. |
static short |
HORIZONTAL_LENGTH
This constant represents horizontal lengths. |
static short |
OTHER_LENGTH
This constant represents other lengths. |
protected static java.lang.String[] |
UNITS
The unit string representations. |
protected short |
unitType
The type of this length. |
protected float |
value
The value of this length. |
static short |
VERTICAL_LENGTH
This constant represents vertical lengths. |
Constructor Summary | |
---|---|
AbstractSVGLength(short direction)
Creates a new AbstractSVGLength. |
Method Summary | |
---|---|
void |
convertToSpecifiedUnits(short unit)
DOM: Implements SVGLength#convertToSpecifiedUnits(short) . |
protected abstract SVGOMElement |
getAssociatedElement()
Return the SVGElement associated to this length. |
short |
getUnitType()
DOM: Implements SVGLength#getUnitType() . |
float |
getValue()
DOM: Implements SVGLength#getValue() . |
java.lang.String |
getValueAsString()
DOM: Implements SVGLength#getValueAsString() . |
float |
getValueInSpecifiedUnits()
DOM: Implements SVGLength#getValueInSpecifiedUnits() . |
void |
newValueSpecifiedUnits(short unit,
float value)
DOM: Implements SVGLength#newValueSpecifiedUnits(short,float) . |
protected void |
parse(java.lang.String s)
Parse a String value as a SVGLength. |
protected void |
reset()
Callback method after changes made to this length. |
protected void |
revalidate()
Callback method before any value is return from this length. |
void |
setValue(float value)
DOM: Implements SVGLength#setValue(float) . |
void |
setValueAsString(java.lang.String value)
DOM: Implements SVGLength#setValueAsString(String) . |
void |
setValueInSpecifiedUnits(float value)
DOM: Implements SVGLength#setValueInSpecifiedUnits(float) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short HORIZONTAL_LENGTH
public static final short VERTICAL_LENGTH
public static final short OTHER_LENGTH
protected short unitType
protected float value
protected short direction
protected UnitProcessor.Context context
protected static final java.lang.String[] UNITS
Constructor Detail |
---|
public AbstractSVGLength(short direction)
Method Detail |
---|
protected abstract SVGOMElement getAssociatedElement()
public short getUnitType()
SVGLength#getUnitType()
.
public float getValue()
SVGLength#getValue()
.
public void setValue(float value) throws org.w3c.dom.DOMException
SVGLength#setValue(float)
.
org.w3c.dom.DOMException
public float getValueInSpecifiedUnits()
SVGLength#getValueInSpecifiedUnits()
.
public void setValueInSpecifiedUnits(float value) throws org.w3c.dom.DOMException
SVGLength#setValueInSpecifiedUnits(float)
.
org.w3c.dom.DOMException
public java.lang.String getValueAsString()
SVGLength#getValueAsString()
.
public void setValueAsString(java.lang.String value) throws org.w3c.dom.DOMException
SVGLength#setValueAsString(String)
.
org.w3c.dom.DOMException
public void newValueSpecifiedUnits(short unit, float value)
SVGLength#newValueSpecifiedUnits(short,float)
.
public void convertToSpecifiedUnits(short unit)
SVGLength#convertToSpecifiedUnits(short)
.
protected void reset()
protected void revalidate()
protected void parse(java.lang.String s)
s
- String representation of a SVGlength.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |