|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.dom.svg.SVGOMLength
This class implements SVGLength
.
Field Summary | |
protected AttributeModifier |
attributeModifier
The associated attribute modifier. |
protected short |
direction
This length direction. |
protected static java.lang.String[] |
UNITS
The units representations. |
protected short |
unitType
The unit type. |
protected float |
valueInSpecifiedUnits
The value in specified units. |
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 | |
SVGOMLength()
|
Method Summary | |
void |
cm()
Implements LengthHandler.cm() . |
void |
convertToSpecifiedUnits(short unitType)
DOM: Implements SVGLength.convertToSpecifiedUnits(short) . |
void |
em()
Implements LengthHandler.em() . |
void |
endLength()
Implements LengthHandler.endLength() . |
void |
ex()
Implements LengthHandler.ex() . |
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 |
in()
Implements LengthHandler.in() . |
void |
lengthValue(float v)
Implements LengthHandler.lengthValue(float) . |
void |
mm()
Implements LengthHandler.mm() . |
void |
newValueSpecifiedUnits(short unitType,
float valueInSpecifiedUnits)
DOM: Implements SVGLength.newValueSpecifiedUnits(short, float) . |
protected void |
parseLength(java.lang.String text)
Parses the given length representation. |
void |
pc()
Implements LengthHandler.pc() . |
void |
percentage()
Implements LengthHandler.percentage() . |
void |
pt()
Implements LengthHandler.pt() . |
void |
px()
Implements LengthHandler.px() . |
void |
setAttributeModifier(AttributeModifier am)
Sets the associated attribute modifier. |
void |
setDirection(short dir)
Sets the length direction. |
void |
setValue(float value)
DOM: Implements SVGLength.setValue(float) . |
void |
setValueAsString(java.lang.String valueAsString)
DOM: Implements SVGLength.setValueAsString(String) . |
void |
setValueInSpecifiedUnits(float value)
DOM: Implements SVGLength.setValueInSpecifiedUnits(float) . |
void |
startLength()
Implements LengthHandler.startLength() . |
void |
valueChanged(Attr oldValue,
Attr newValue)
Called when the string representation of the value as been modified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String[] UNITS
protected float valueInSpecifiedUnits
protected short unitType
protected AttributeModifier attributeModifier
protected short direction
Constructor Detail |
public SVGOMLength()
Method Detail |
public void setAttributeModifier(AttributeModifier am)
public void setDirection(short dir)
public void valueChanged(Attr oldValue, Attr newValue)
valueChanged
in interface LiveAttributeValue
oldValue
- The old Attr node.newValue
- The new Attr node.public short getUnitType()
SVGLength.getUnitType()
.getUnitType
in interface SVGLength
public float getValue()
SVGLength.getValue()
.getValue
in interface SVGLength
public void setValue(float value) throws DOMException
SVGLength.setValue(float)
.setValue
in interface SVGLength
public float getValueInSpecifiedUnits()
SVGLength.getValueInSpecifiedUnits()
.getValueInSpecifiedUnits
in interface SVGLength
public void setValueInSpecifiedUnits(float value) throws DOMException
SVGLength.setValueInSpecifiedUnits(float)
.setValueInSpecifiedUnits
in interface SVGLength
public java.lang.String getValueAsString()
SVGLength.getValueAsString()
.getValueAsString
in interface SVGLength
public void setValueAsString(java.lang.String valueAsString) throws DOMException
SVGLength.setValueAsString(String)
.setValueAsString
in interface SVGLength
public void newValueSpecifiedUnits(short unitType, float valueInSpecifiedUnits)
SVGLength.newValueSpecifiedUnits(short, float)
.newValueSpecifiedUnits
in interface SVGLength
public void convertToSpecifiedUnits(short unitType)
SVGLength.convertToSpecifiedUnits(short)
.convertToSpecifiedUnits
in interface SVGLength
protected void parseLength(java.lang.String text)
public void startLength() throws ParseException
LengthHandler.startLength()
.startLength
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void lengthValue(float v) throws ParseException
LengthHandler.lengthValue(float)
.lengthValue
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void em() throws ParseException
LengthHandler.em()
.em
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void ex() throws ParseException
LengthHandler.ex()
.ex
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void in() throws ParseException
LengthHandler.in()
.in
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void cm() throws ParseException
LengthHandler.cm()
.cm
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void mm() throws ParseException
LengthHandler.mm()
.mm
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void pc() throws ParseException
LengthHandler.pc()
.pc
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void pt() throws ParseException
LengthHandler.pt()
.pt
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void px() throws ParseException
LengthHandler.px()
.px
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void percentage() throws ParseException
LengthHandler.percentage()
.percentage
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the lengthpublic void endLength() throws ParseException
LengthHandler.endLength()
.endLength
in interface LengthHandler
org.apache.batik.parser.LengthHandler
ParseException
- if an error occures while processing
the length
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |