org.apache.batik.parser

Class PointsParser

public class PointsParser extends NumberParser

This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).
Field Summary
protected booleaneRead
Whether the last character was a 'e' or 'E'.
protected PointsHandlerpointsHandler
The points handler used to report parse events.
Constructor Summary
PointsParser()
Creates a new PointsParser.
Method Summary
protected voiddoParse()
Parses the current stream.
PointsHandlergetPointsHandler()
Returns the points handler in use.
voidsetPointsHandler(PointsHandler handler)
Allows an application to register a points handler.

Field Detail

eRead

protected boolean eRead
Whether the last character was a 'e' or 'E'.

pointsHandler

protected PointsHandler pointsHandler
The points handler used to report parse events.

Constructor Detail

PointsParser

public PointsParser()
Creates a new PointsParser.

Method Detail

doParse

protected void doParse()
Parses the current stream.

getPointsHandler

public PointsHandler getPointsHandler()
Returns the points handler in use.

setPointsHandler

public void setPointsHandler(PointsHandler handler)
Allows an application to register a points 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) 2008 Apache Software Foundation. All Rights Reserved.