|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.svg.AbstractParser com.mxgraph.util.svg.NumberParser com.mxgraph.util.svg.PathParser
public class PathParser
This class implements an event-based parser for the SVG path's d attribute values.
Field Summary | |
---|---|
protected PathHandler |
pathHandler
The path handler used to report parse events. |
Fields inherited from class com.mxgraph.util.svg.AbstractParser |
---|
BUNDLE_CLASSNAME, current, errorHandler, reader |
Constructor Summary | |
---|---|
PathParser(PathHandler handler)
Creates a new PathParser. |
Method Summary | |
---|---|
protected void |
_parsel(boolean expectNumber)
|
protected void |
_parseL(boolean expectNumber)
|
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. |
protected void |
reportUnexpected(int ch)
|
void |
setPathHandler(PathHandler handler)
Allows an application to register a path handler. |
protected boolean |
skipCommaSpaces2()
Skips the whitespaces and an optional comma. |
protected void |
skipSubPath()
Skips a sub-path. |
Methods inherited from class com.mxgraph.util.svg.NumberParser |
---|
buildFloat, parseFloat |
Methods inherited from class com.mxgraph.util.svg.AbstractParser |
---|
createErrorMessage, getBundleClassName, getCurrent, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, skipCommaSpaces, skipSpaces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PathHandler pathHandler
Constructor Detail |
---|
public PathParser(PathHandler handler)
Method Detail |
---|
public void setPathHandler(PathHandler 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 PathHandler getPathHandler()
protected void doParse() throws ParseException, IOException
AbstractParser
doParse
in class AbstractParser
ParseException
IOException
protected void parsem() throws ParseException, IOException
ParseException
IOException
protected void parseM() throws ParseException, IOException
ParseException
IOException
protected void parsel() throws ParseException, IOException
ParseException
IOException
protected void _parsel(boolean expectNumber) throws ParseException, IOException
ParseException
IOException
protected void parseL() throws ParseException, IOException
ParseException
IOException
protected void _parseL(boolean expectNumber) throws ParseException, IOException
ParseException
IOException
protected void parseh() throws ParseException, IOException
ParseException
IOException
protected void parseH() throws ParseException, IOException
ParseException
IOException
protected void parsev() throws ParseException, IOException
ParseException
IOException
protected void parseV() throws ParseException, IOException
ParseException
IOException
protected void parsec() throws ParseException, IOException
ParseException
IOException
protected void parseC() throws ParseException, IOException
ParseException
IOException
protected void parseq() throws ParseException, IOException
ParseException
IOException
protected void parseQ() throws ParseException, IOException
ParseException
IOException
protected void parses() throws ParseException, IOException
ParseException
IOException
protected void parseS() throws ParseException, IOException
ParseException
IOException
protected void parset() throws ParseException, IOException
ParseException
IOException
protected void parseT() throws ParseException, IOException
ParseException
IOException
protected void parsea() throws ParseException, IOException
ParseException
IOException
protected void parseA() throws ParseException, IOException
ParseException
IOException
protected void skipSubPath() throws ParseException, IOException
ParseException
IOException
protected void reportUnexpected(int ch) throws ParseException, IOException
ParseException
IOException
protected boolean skipCommaSpaces2() throws IOException
IOException
|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |