com.mxgraph.util.svg
Class PathParser
- java.lang.Object
-
- com.mxgraph.util.svg.AbstractParser
-
- com.mxgraph.util.svg.NumberParser
-
- com.mxgraph.util.svg.PathParser
-
- All Implemented Interfaces:
- Parser
public class PathParser extends NumberParser
This class implements an event-based parser for the SVG path's d attribute values.
-
-
Field Summary
-
Fields inherited from class com.mxgraph.util.svg.AbstractParser
BUNDLE_CLASSNAME
-
-
Constructor Summary
Constructors Constructor and Description PathParser(PathHandler handler)Creates a new PathParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PathHandlergetPathHandler()Returns the path handler in use.voidsetPathHandler(PathHandler handler)Allows an application to register a path handler.-
Methods inherited from class com.mxgraph.util.svg.NumberParser
buildFloat
-
Methods inherited from class com.mxgraph.util.svg.AbstractParser
getCurrent, parse, setErrorHandler
-
-
-
-
Constructor Detail
-
PathParser
public PathParser(PathHandler handler)
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.
- Parameters:
handler- The transform list handler.
-
getPathHandler
public PathHandler getPathHandler()
Returns the path handler in use.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG