Interface LengthHandler
- All Known Subinterfaces:
LengthListHandler
- All Known Implementing Classes:
AbstractSVGLengthList.LengthListBuilder, DefaultLengthHandler, DefaultLengthListHandler, LengthArrayProducer, UnitProcessor.UnitResolver
public interface LengthHandler
This interface must be implemented and then registred as the
handler of a
LengthParser instance in order to be
notified of parsing events.- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionvoidcm()Invoked when 'cm' has been parsed.voidem()Invoked when 'em' has been parsed.voidInvoked 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.voidInvoked when '%' has been parsed.voidpt()Invoked when 'pt' has been parsed.voidpx()Invoked when 'px' has been parsed.voidInvoked when the length attribute starts.
-
Method Details
-
startLength
Invoked when the length attribute starts.- Throws:
ParseException- if an error occures while processing the length
-
lengthValue
Invoked when a float value has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
em
Invoked when 'em' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
ex
Invoked when 'ex' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
in
Invoked when 'in' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
cm
Invoked when 'cm' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
mm
Invoked when 'mm' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
pc
Invoked when 'pc' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
pt
Invoked when 'pt' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
px
Invoked when 'px' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
percentage
Invoked when '%' has been parsed.- Throws:
ParseException- if an error occures while processing the length
-
endLength
Invoked when the length attribute ends.- Throws:
ParseException- if an error occures while processing the length
-