com.mxgraph.util.svg
Class PointsParser
- java.lang.Object
-
- com.mxgraph.util.svg.AbstractParser
-
- com.mxgraph.util.svg.NumberParser
-
- com.mxgraph.util.svg.PointsParser
-
- All Implemented Interfaces:
- Parser
public class PointsParser extends NumberParser
This class implements an event-based parser for the SVG points attribute values (used with polyline and polygon elements).
-
-
Field Summary
-
Fields inherited from class com.mxgraph.util.svg.AbstractParser
BUNDLE_CLASSNAME
-
-
Constructor Summary
Constructors Constructor and Description PointsParser(PointsHandler handler)Creates a new PointsParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PointsHandlergetPointsHandler()Returns the points handler in use.voidsetPointsHandler(PointsHandler handler)Allows an application to register a points 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
-
PointsParser
public PointsParser(PointsHandler handler)
Creates a new PointsParser.
-
-
Method Detail
-
setPointsHandler
public void setPointsHandler(PointsHandler handler)
Allows an application to register a points 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.
-
getPointsHandler
public PointsHandler getPointsHandler()
Returns the points handler in use.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG