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 theLengthListParserand theListHandler.
-
-
Field Summary
Fields Modifier and Type Field Description protected shortcurrentTypeThe length unit just parsed.protected floatcurrentValueThe the length value just parsed.protected ListHandlerlistHandlerThe ListHandler to pass newly createdAbstractSVGLengthList.SVGLengthItemobjects 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 voidcm()ImplementsLengthHandler.cm().voidem()ImplementsLengthHandler.em().voidendLength()ImplementsLengthHandler.endLength().voidendLengthList()ImplementsLengthListHandler.endLengthList().voidex()ImplementsLengthHandler.ex().voidin()ImplementsLengthHandler.in().voidlengthValue(float v)ImplementsLengthHandler.lengthValue(float).voidmm()ImplementsLengthHandler.mm().voidpc()ImplementsLengthHandler.pc().voidpercentage()ImplementsLengthHandler.percentage().voidpt()ImplementsLengthHandler.pt().voidpx()ImplementsLengthHandler.px().voidstartLength()ImplementsLengthHandler.startLength().voidstartLengthList()ImplementsLengthListHandler.startLengthList().
-
-
-
Field Detail
-
listHandler
protected ListHandler listHandler
The ListHandler to pass newly createdAbstractSVGLengthList.SVGLengthItemobjects 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 ParseExceptionImplementsLengthListHandler.startLengthList().- Specified by:
startLengthListin interfaceLengthListHandler- Throws:
ParseException- if an error occures while processing the length list.
-
startLength
public void startLength() throws ParseExceptionImplementsLengthHandler.startLength().- Specified by:
startLengthin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
lengthValue
public void lengthValue(float v) throws ParseExceptionImplementsLengthHandler.lengthValue(float).- Specified by:
lengthValuein interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
em
public void em() throws ParseExceptionImplementsLengthHandler.em().- Specified by:
emin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
ex
public void ex() throws ParseExceptionImplementsLengthHandler.ex().- Specified by:
exin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
in
public void in() throws ParseExceptionImplementsLengthHandler.in().- Specified by:
inin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
cm
public void cm() throws ParseExceptionImplementsLengthHandler.cm().- Specified by:
cmin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
mm
public void mm() throws ParseExceptionImplementsLengthHandler.mm().- Specified by:
mmin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
pc
public void pc() throws ParseExceptionImplementsLengthHandler.pc().- Specified by:
pcin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
pt
public void pt() throws ParseExceptionImplementsLengthHandler.pt().- Specified by:
ptin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
px
public void px() throws ParseExceptionImplementsLengthHandler.px().- Specified by:
pxin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
percentage
public void percentage() throws ParseExceptionImplementsLengthHandler.percentage().- Specified by:
percentagein interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
endLength
public void endLength() throws ParseExceptionImplementsLengthHandler.endLength().- Specified by:
endLengthin interfaceLengthHandler- Throws:
ParseException- if an error occures while processing the length
-
endLengthList
public void endLengthList() throws ParseExceptionImplementsLengthListHandler.endLengthList().- Specified by:
endLengthListin interfaceLengthListHandler- Throws:
ParseException- if an error occures while processing the length list.
-
-