|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.batik.parser.AbstractParser org.apache.batik.parser.PreserveAspectRatioParser
This class implements an event-based parser for the SVG preserveAspectRatio attribute values.
Field Summary | |
protected PreserveAspectRatioHandler |
preserveAspectRatioHandler
The PreserveAspectRatio handler used to report parse events. |
Fields inherited from class org.apache.batik.parser.AbstractParser |
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader |
Constructor Summary | |
PreserveAspectRatioParser()
Creates a new PreserveAspectRatioParser. |
Method Summary | |
protected void |
doParse()
Parses the current stream. |
PreserveAspectRatioHandler |
getPreserveAspectRatioHandler()
Returns the length handler in use. |
protected void |
parsePreserveAspectRatio()
Parses a PreserveAspectRatio attribute. |
void |
setPreserveAspectRatioHandler(PreserveAspectRatioHandler handler)
Allows an application to register a PreserveAspectRatioParser handler. |
protected void |
skipIdentifier()
Skips characters in the given reader until a white space is encountered. |
Methods inherited from class org.apache.batik.parser.AbstractParser |
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PreserveAspectRatioHandler preserveAspectRatioHandler
Constructor Detail |
public PreserveAspectRatioParser()
Method Detail |
public void setPreserveAspectRatioHandler(PreserveAspectRatioHandler 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.
handler
- The transform list handler.public PreserveAspectRatioHandler getPreserveAspectRatioHandler()
protected void doParse() throws ParseException, IOException
doParse
in class AbstractParser
ParseException
IOException
protected void parsePreserveAspectRatio() throws ParseException, IOException
ParseException
IOException
protected void skipIdentifier() throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |