|
mxGraph 1.11.0.0 |
|||||||||
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.PointsParser
public class PointsParser
This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).
Field Summary | |
---|---|
protected boolean |
eRead
Whether the last character was a 'e' or 'E'. |
protected PointsHandler |
pointsHandler
The points handler used to report parse events. |
Fields inherited from class com.mxgraph.util.svg.AbstractParser |
---|
BUNDLE_CLASSNAME, current, errorHandler, reader |
Constructor Summary | |
---|---|
PointsParser(PointsHandler handler)
Creates a new PointsParser. |
Method Summary | |
---|---|
protected void |
doParse()
Parses the current stream. |
PointsHandler |
getPointsHandler()
Returns the points handler in use. |
void |
setPointsHandler(PointsHandler handler)
Allows an application to register a points handler. |
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 PointsHandler pointsHandler
protected boolean eRead
Constructor Detail |
---|
public PointsParser(PointsHandler handler)
Method Detail |
---|
public void setPointsHandler(PointsHandler 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 PointsHandler getPointsHandler()
protected void doParse() throws ParseException, IOException
doParse
in class AbstractParser
ParseException
IOException
|
mxGraph 1.11.0.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |