org.apache.batik.refimpl.parser
Class ConcretePreserveAspectRatioParser
java.lang.Object
|
+--org.apache.batik.refimpl.parser.AbstractParser
|
+--org.apache.batik.refimpl.parser.ConcretePreserveAspectRatioParser
- All Implemented Interfaces:
- Localizable, Parser, PreserveAspectRatioParser
- public class ConcretePreserveAspectRatioParser
- extends AbstractParser
- implements PreserveAspectRatioParser
This class implements an event-based parser for the SVG preserveAspectRatio
attribute values.
Methods inherited from class org.apache.batik.refimpl.parser.AbstractParser |
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, initialize, read, 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.
ConcretePreserveAspectRatioParser
public ConcretePreserveAspectRatioParser()
- 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.
- Specified by:
setPreserveAspectRatioHandler
in interface PreserveAspectRatioParser
- Parameters:
handler
- The transform list handler.
getPreserveAspectRatioHandler
public PreserveAspectRatioHandler getPreserveAspectRatioHandler()
- Returns the length handler in use.
- Specified by:
getPreserveAspectRatioHandler
in interface PreserveAspectRatioParser
parse
public void parse(java.io.Reader r)
throws ParseException
- Parses the given reader.
- Specified by:
parse
in interface Parser
skipIdentifier
protected void skipIdentifier()
- Skips characters in the given reader until a white space is encountered.
- Returns:
- the first character after the space.
Copyright © 2000 Apache Software Foundation. All Rights Reserved.