|
|||||||||
| Home >> All >> org >> apache >> batik >> [ parser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.parser
Class PathParser

java.lang.Objectorg.apache.batik.parser.AbstractParser
org.apache.batik.parser.NumberParser
org.apache.batik.parser.PathParser
- All Implemented Interfaces:
- org.apache.batik.i18n.Localizable, Parser
- public class PathParser
- extends NumberParser
This class implements an event-based parser for the SVG path's d attribute values.
- Version:
- $Id: PathParser.java,v 1.13 2004/08/18 07:14:47 vhardy Exp $
| Field Summary | |
protected PathHandler |
pathHandler
The path handler used to report parse events. |
| Fields inherited from class org.apache.batik.parser.NumberParser |
|
| Fields inherited from class org.apache.batik.parser.AbstractParser |
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader |
| Constructor Summary | |
PathParser()
Creates a new PathParser. |
|
| Method Summary | |
protected void |
doParse()
Method responsible for actually parsing data after AbstractParser has initialized itself. |
PathHandler |
getPathHandler()
Returns the path handler in use. |
protected void |
parsea()
Parses a 'a' command. |
protected void |
parseA()
Parses a 'A' command. |
protected void |
parsec()
Parses a 'c' command. |
protected void |
parseC()
Parses a 'C' command. |
protected void |
parseh()
Parses a 'h' command. |
protected void |
parseH()
Parses a 'H' command. |
protected void |
parsel()
Parses a 'l' command. |
protected void |
parseL()
Parses a 'L' command. |
protected void |
parsem()
Parses a 'm' command. |
protected void |
parseM()
Parses a 'M' command. |
protected void |
parseq()
Parses a 'q' command. |
protected void |
parseQ()
Parses a 'Q' command. |
protected void |
parses()
Parses a 's' command. |
protected void |
parseS()
Parses a 'S' command. |
protected void |
parset()
Parses a 't' command. |
protected void |
parseT()
Parses a 'T' command. |
protected void |
parsev()
Parses a 'v' command. |
protected void |
parseV()
Parses a 'V' command. |
void |
setPathHandler(PathHandler handler)
Allows an application to register a path handler. |
protected void |
skipSubPath()
Skips a sub-path. |
| Methods inherited from class org.apache.batik.parser.NumberParser |
buildFloat, parseFloat |
| 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 |
| Field Detail |
pathHandler
protected PathHandler pathHandler
- The path handler used to report parse events.
| Constructor Detail |
PathParser
public PathParser()
- Creates a new PathParser.
| Method Detail |
setPathHandler
public void setPathHandler(PathHandler handler)
- Allows an application to register a path 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.
getPathHandler
public PathHandler getPathHandler()
- Returns the path handler in use.
doParse
protected void doParse()
throws ParseException,
java.io.IOException
- Description copied from class:
AbstractParser - Method responsible for actually parsing data after AbstractParser
has initialized itself.
- Specified by:
doParsein classAbstractParser
parsem
protected void parsem()
throws ParseException,
java.io.IOException
- Parses a 'm' command.
parsel
protected void parsel()
throws ParseException,
java.io.IOException
- Parses a 'l' command.
parseM
protected void parseM()
throws ParseException,
java.io.IOException
- Parses a 'M' command.
parseL
protected void parseL()
throws ParseException,
java.io.IOException
- Parses a 'L' command.
parseh
protected void parseh()
throws ParseException,
java.io.IOException
- Parses a 'h' command.
parseH
protected void parseH()
throws ParseException,
java.io.IOException
- Parses a 'H' command.
parsev
protected void parsev()
throws ParseException,
java.io.IOException
- Parses a 'v' command.
parseV
protected void parseV()
throws ParseException,
java.io.IOException
- Parses a 'V' command.
parsec
protected void parsec()
throws ParseException,
java.io.IOException
- Parses a 'c' command.
parseC
protected void parseC()
throws ParseException,
java.io.IOException
- Parses a 'C' command.
parseq
protected void parseq()
throws ParseException,
java.io.IOException
- Parses a 'q' command.
parseQ
protected void parseQ()
throws ParseException,
java.io.IOException
- Parses a 'Q' command.
parses
protected void parses()
throws ParseException,
java.io.IOException
- Parses a 's' command.
parseS
protected void parseS()
throws ParseException,
java.io.IOException
- Parses a 'S' command.
parset
protected void parset()
throws ParseException,
java.io.IOException
- Parses a 't' command.
parseT
protected void parseT()
throws ParseException,
java.io.IOException
- Parses a 'T' command.
parsea
protected void parsea()
throws ParseException,
java.io.IOException
- Parses a 'a' command.
parseA
protected void parseA()
throws ParseException,
java.io.IOException
- Parses a 'A' command.
skipSubPath
protected void skipSubPath()
throws ParseException,
java.io.IOException
- Skips a sub-path.
|
|||||||||
| Home >> All >> org >> apache >> batik >> [ parser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC