Package org.apache.batik.parser
Interface LengthHandler
-
- All Known Subinterfaces:
LengthListHandler
- All Known Implementing Classes:
AbstractSVGLengthList.LengthListBuilder,DefaultLengthHandler,DefaultLengthListHandler,LengthArrayProducer,UnitProcessor.UnitResolver
public interface LengthHandlerThis interface must be implemented and then registred as the handler of aLengthParserinstance in order to be notified of parsing events.- Version:
- $Id: LengthHandler.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcm()Invoked when 'cm' has been parsed.voidem()Invoked when 'em' has been parsed.voidendLength()Invoked when the length attribute ends.voidex()Invoked when 'ex' has been parsed.voidin()Invoked when 'in' has been parsed.voidlengthValue(float v)Invoked when a float value has been parsed.voidmm()Invoked when 'mm' has been parsed.voidpc()Invoked when 'pc' has been parsed.voidpercentage()Invoked when '%' has been parsed.voidpt()Invoked when 'pt' has been parsed.voidpx()Invoked when 'px' has been parsed.voidstartLength()Invoked when the length attribute starts.
-
-
-
Method Detail
-
startLength
void startLength() throws ParseExceptionInvoked when the length attribute starts.- Throws:
ParseException- if an error occures while processing the length
-
lengthValue
void lengthValue(float v) throws ParseExceptionInvoked when a float value has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
em
void em() throws ParseException
Invoked when 'em' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
ex
void ex() throws ParseException
Invoked when 'ex' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
in
void in() throws ParseException
Invoked when 'in' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
cm
void cm() throws ParseException
Invoked when 'cm' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
mm
void mm() throws ParseException
Invoked when 'mm' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
pc
void pc() throws ParseException
Invoked when 'pc' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
pt
void pt() throws ParseException
Invoked when 'pt' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
px
void px() throws ParseException
Invoked when 'px' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
percentage
void percentage() throws ParseExceptionInvoked when '%' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
endLength
void endLength() throws ParseExceptionInvoked when the length attribute ends.- Throws:
ParseException- if an error occures while processing the length
-
-