org.apache.batik.parser
Class PreserveAspectRatioParser
java.lang.Object
|
+--org.apache.batik.parser.AbstractParser
|
+--org.apache.batik.parser.PreserveAspectRatioParser
- All Implemented Interfaces:
- Localizable, Parser
- public class PreserveAspectRatioParser
- extends AbstractParser
This class implements an event-based parser for the SVG preserveAspectRatio
attribute values.
Methods inherited from class org.apache.batik.parser.AbstractParser |
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
preserveAspectRatioHandler
protected PreserveAspectRatioHandler preserveAspectRatioHandler
- The PreserveAspectRatio handler used to report parse events.
PreserveAspectRatioParser
public PreserveAspectRatioParser()
- Creates a new PreserveAspectRatioParser.
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.
getPreserveAspectRatioHandler
public PreserveAspectRatioHandler getPreserveAspectRatioHandler()
- Returns the length handler in use.
doParse
protected void doParse()
throws ParseException,
java.io.IOException
- Parses the current stream.
- Overrides:
doParse
in class AbstractParser
parsePreserveAspectRatio
protected void parsePreserveAspectRatio()
throws ParseException,
java.io.IOException
- Parses a PreserveAspectRatio attribute.
skipIdentifier
protected void skipIdentifier()
throws java.io.IOException
- Skips characters in the given reader until a white space is encountered.
- Returns:
- the first character after the space.
Copyright © 2002 Apache Software Foundation. All Rights Reserved.