org.apache.batik.parser

Class PreserveAspectRatioParser

public class PreserveAspectRatioParser extends AbstractParser

This class implements an event-based parser for the SVG preserveAspectRatio attribute values.
Field Summary
protected PreserveAspectRatioHandlerpreserveAspectRatioHandler
The PreserveAspectRatio handler used to report parse events.
Constructor Summary
PreserveAspectRatioParser()
Creates a new PreserveAspectRatioParser.
Method Summary
protected voiddoParse()
Parses the current stream.
PreserveAspectRatioHandlergetPreserveAspectRatioHandler()
Returns the length handler in use.
protected voidparsePreserveAspectRatio()
Parses a PreserveAspectRatio attribute.
voidsetPreserveAspectRatioHandler(PreserveAspectRatioHandler handler)
Allows an application to register a PreserveAspectRatioParser handler.
protected voidskipIdentifier()
Skips characters in the given reader until a white space is encountered.

Field Detail

preserveAspectRatioHandler

protected PreserveAspectRatioHandler preserveAspectRatioHandler
The PreserveAspectRatio handler used to report parse events.

Constructor Detail

PreserveAspectRatioParser

public PreserveAspectRatioParser()
Creates a new PreserveAspectRatioParser.

Method Detail

doParse

protected void doParse()
Parses the current stream.

getPreserveAspectRatioHandler

public PreserveAspectRatioHandler getPreserveAspectRatioHandler()
Returns the length handler in use.

parsePreserveAspectRatio

protected void parsePreserveAspectRatio()
Parses a PreserveAspectRatio attribute.

setPreserveAspectRatioHandler

public void setPreserveAspectRatioHandler(PreserveAspectRatioHandler handler)
Allows an application to register a PreserveAspectRatioParser 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.

skipIdentifier

protected void skipIdentifier()
Skips characters in the given reader until a white space is encountered.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.