|
|||||||||
| Home >> All >> org >> apache >> batik >> dom >> [ svg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.dom.svg
Class AbstractSVGLength

java.lang.Objectorg.apache.batik.dom.svg.AbstractSVGLength
- All Implemented Interfaces:
- org.w3c.dom.svg.SVGLength
- Direct Known Subclasses:
- AbstractSVGAnimatedLength.BaseSVGLength, AbstractSVGLengthList.SVGLengthItem, SVGOMLength
- public abstract class AbstractSVGLength
- extends java.lang.Object
- implements org.w3c.dom.svg.SVGLength
- extends java.lang.Object
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.
- Version:
- $Id: AbstractSVGLength.java,v 1.7 2005/03/29 02:26:36 cam Exp $
| Nested Class Summary | |
protected class |
AbstractSVGLength.DefaultContext
To resolve the units. |
| Field Summary | |
protected org.apache.batik.parser.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. |
| Fields inherited from interface org.w3c.dom.svg.SVGLength |
SVG_LENGTHTYPE_CM, SVG_LENGTHTYPE_EMS, SVG_LENGTHTYPE_EXS, SVG_LENGTHTYPE_IN, SVG_LENGTHTYPE_MM, SVG_LENGTHTYPE_NUMBER, SVG_LENGTHTYPE_PC, SVG_LENGTHTYPE_PERCENTAGE, SVG_LENGTHTYPE_PT, SVG_LENGTHTYPE_PX, SVG_LENGTHTYPE_UNKNOWN |
| Constructor Summary | |
AbstractSVGLength(short direction)
Creates a new AbstractSVGLength. |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
HORIZONTAL_LENGTH
public static final short HORIZONTAL_LENGTH
- This constant represents horizontal lengths.
- See Also:
- Constant Field Values
VERTICAL_LENGTH
public static final short VERTICAL_LENGTH
- This constant represents vertical lengths.
- See Also:
- Constant Field Values
OTHER_LENGTH
public static final short OTHER_LENGTH
- This constant represents other lengths.
- See Also:
- Constant Field Values
unitType
protected short unitType
- The type of this length.
value
protected float value
- The value of this length.
direction
protected short direction
- This length's direction.
context
protected org.apache.batik.parser.UnitProcessor.Context context
- The context used to resolve the units.
UNITS
protected static final java.lang.String[] UNITS
- The unit string representations.
| Constructor Detail |
AbstractSVGLength
public AbstractSVGLength(short direction)
- Creates a new AbstractSVGLength.
| Method Detail |
getAssociatedElement
protected abstract SVGOMElement getAssociatedElement()
- Return the SVGElement associated to this length.
getUnitType
public short getUnitType()
- DOM: Implements SVGLength.getUnitType()>
SVGLength.getUnitType()55 .- Specified by:
getUnitTypein interfaceorg.w3c.dom.svg.SVGLength
getValue
public float getValue()
- DOM: Implements SVGLength.getValue()>
SVGLength.getValue()55 .- Specified by:
getValuein interfaceorg.w3c.dom.svg.SVGLength
setValue
public void setValue(float value)
throws org.w3c.dom.DOMException
- DOM: Implements SVGLength.setValue(float)>
SVGLength.setValue(float)55 .- Specified by:
setValuein interfaceorg.w3c.dom.svg.SVGLength
getValueInSpecifiedUnits
public float getValueInSpecifiedUnits()
- DOM: Implements SVGLength.getValueInSpecifiedUnits()>
SVGLength.getValueInSpecifiedUnits()55 .- Specified by:
getValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength
setValueInSpecifiedUnits
public void setValueInSpecifiedUnits(float value)
throws org.w3c.dom.DOMException
- DOM: Implements SVGLength.setValueInSpecifiedUnits(float)>
SVGLength.setValueInSpecifiedUnits(float)55 .- Specified by:
setValueInSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength
getValueAsString
public java.lang.String getValueAsString()
- DOM: Implements SVGLength.getValueAsString()>
SVGLength.getValueAsString()55 .- Specified by:
getValueAsStringin interfaceorg.w3c.dom.svg.SVGLength
setValueAsString
public void setValueAsString(java.lang.String value) throws org.w3c.dom.DOMException
- DOM: Implements SVGLength.setValueAsString(String)>
SVGLength.setValueAsString(String)55 .- Specified by:
setValueAsStringin interfaceorg.w3c.dom.svg.SVGLength
newValueSpecifiedUnits
public void newValueSpecifiedUnits(short unit,
float value)
- DOM: Implements SVGLength.newValueSpecifiedUnits(short,float)>
SVGLength.newValueSpecifiedUnits(short,float)55 .- Specified by:
newValueSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength
convertToSpecifiedUnits
public void convertToSpecifiedUnits(short unit)
- DOM: Implements SVGLength.convertToSpecifiedUnits(short)>
SVGLength.convertToSpecifiedUnits(short)55 .- Specified by:
convertToSpecifiedUnitsin interfaceorg.w3c.dom.svg.SVGLength
reset
protected void reset()
- Callback method after changes
made to this length.
The default implementation does nothing.
revalidate
protected void revalidate()
- Callback method before any value
is return from this length.
The default implementation does nothing.
parse
protected void parse(java.lang.String s)
- Parse a String value as a SVGLength.
Initialize this length with the result
of the parsing of this value.
|
|||||||||
| Home >> All >> org >> apache >> batik >> dom >> [ svg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.batik.dom.svg.AbstractSVGLength