Package org.apache.batik.anim.dom
Class AbstractSVGLengthList.LengthListBuilder
- java.lang.Object
-
- org.apache.batik.anim.dom.AbstractSVGLengthList.LengthListBuilder
-
- All Implemented Interfaces:
LengthHandler
,LengthListHandler
- Enclosing class:
- AbstractSVGLengthList
protected class AbstractSVGLengthList.LengthListBuilder extends java.lang.Object implements LengthListHandler
Helper class to interface theLengthListParser
and theListHandler
.
-
-
Field Summary
Fields Modifier and Type Field Description protected short
currentType
The length unit just parsed.protected float
currentValue
The the length value just parsed.protected ListHandler
listHandler
The ListHandler to pass newly createdAbstractSVGLengthList.SVGLengthItem
objects to.
-
Constructor Summary
Constructors Constructor Description LengthListBuilder(ListHandler listHandler)
Creates a new LengthListBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cm()
ImplementsLengthHandler.cm()
.void
em()
ImplementsLengthHandler.em()
.void
endLength()
ImplementsLengthHandler.endLength()
.void
endLengthList()
ImplementsLengthListHandler.endLengthList()
.void
ex()
ImplementsLengthHandler.ex()
.void
in()
ImplementsLengthHandler.in()
.void
lengthValue(float v)
ImplementsLengthHandler.lengthValue(float)
.void
mm()
ImplementsLengthHandler.mm()
.void
pc()
ImplementsLengthHandler.pc()
.void
percentage()
ImplementsLengthHandler.percentage()
.void
pt()
ImplementsLengthHandler.pt()
.void
px()
ImplementsLengthHandler.px()
.void
startLength()
ImplementsLengthHandler.startLength()
.void
startLengthList()
ImplementsLengthListHandler.startLengthList()
.
-
-
-
Field Detail
-
listHandler
protected ListHandler listHandler
The ListHandler to pass newly createdAbstractSVGLengthList.SVGLengthItem
objects to.
-
currentValue
protected float currentValue
The the length value just parsed.
-
currentType
protected short currentType
The length unit just parsed.
-
-
Constructor Detail
-
LengthListBuilder
public LengthListBuilder(ListHandler listHandler)
Creates a new LengthListBuilder.
-
-
Method Detail
-
startLengthList
public void startLengthList() throws ParseException
ImplementsLengthListHandler.startLengthList()
.- Specified by:
startLengthList
in interfaceLengthListHandler
- Throws:
ParseException
- if an error occures while processing the length list.
-
startLength
public void startLength() throws ParseException
ImplementsLengthHandler.startLength()
.- Specified by:
startLength
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
lengthValue
public void lengthValue(float v) throws ParseException
ImplementsLengthHandler.lengthValue(float)
.- Specified by:
lengthValue
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
em
public void em() throws ParseException
ImplementsLengthHandler.em()
.- Specified by:
em
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
ex
public void ex() throws ParseException
ImplementsLengthHandler.ex()
.- Specified by:
ex
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
in
public void in() throws ParseException
ImplementsLengthHandler.in()
.- Specified by:
in
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
cm
public void cm() throws ParseException
ImplementsLengthHandler.cm()
.- Specified by:
cm
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
mm
public void mm() throws ParseException
ImplementsLengthHandler.mm()
.- Specified by:
mm
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
pc
public void pc() throws ParseException
ImplementsLengthHandler.pc()
.- Specified by:
pc
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
pt
public void pt() throws ParseException
ImplementsLengthHandler.pt()
.- Specified by:
pt
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
px
public void px() throws ParseException
ImplementsLengthHandler.px()
.- Specified by:
px
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
percentage
public void percentage() throws ParseException
ImplementsLengthHandler.percentage()
.- Specified by:
percentage
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
endLength
public void endLength() throws ParseException
ImplementsLengthHandler.endLength()
.- Specified by:
endLength
in interfaceLengthHandler
- Throws:
ParseException
- if an error occures while processing the length
-
endLengthList
public void endLengthList() throws ParseException
ImplementsLengthListHandler.endLengthList()
.- Specified by:
endLengthList
in interfaceLengthListHandler
- Throws:
ParseException
- if an error occures while processing the length list.
-
-