org.apache.batik.parser

Class LengthParser

public class LengthParser extends AbstractParser

This class implements an event-based parser for the SVG length values.
Field Summary
protected LengthHandlerlengthHandler
The length handler used to report parse events.
Constructor Summary
LengthParser()
Creates a new LengthParser.
Method Summary
protected voiddoParse()
LengthHandlergetLengthHandler()
Returns the length handler in use.
protected voidparseLength()
Parses a length value.
voidsetLengthHandler(LengthHandler handler)
Allows an application to register a length handler.

Field Detail

lengthHandler

protected LengthHandler lengthHandler
The length handler used to report parse events.

Constructor Detail

LengthParser

public LengthParser()
Creates a new LengthParser.

Method Detail

doParse

protected void doParse()

getLengthHandler

public LengthHandler getLengthHandler()
Returns the length handler in use.

parseLength

protected void parseLength()
Parses a length value.

setLengthHandler

public void setLengthHandler(LengthHandler handler)
Allows an application to register a length handler.

If the application does not register a handler, all events reported by the parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately.

Parameters: handler The transform list handler.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.