Package org.apache.batik.dom.svg
Class AbstractSVGPointList.PointsListBuilder
- java.lang.Object
-
- org.apache.batik.dom.svg.AbstractSVGPointList.PointsListBuilder
-
- All Implemented Interfaces:
PointsHandler
- Enclosing class:
- AbstractSVGPointList
protected static class AbstractSVGPointList.PointsListBuilder extends java.lang.Object implements PointsHandler
Helper class to interface thePointsParser
and thePointsHandler
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ListHandler
listHandler
TheListHandler
to pass newly createdSVGPointItem
objects to.
-
Constructor Summary
Constructors Constructor Description PointsListBuilder(ListHandler listHandler)
Creates a new PointsListBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endPoints()
ImplementsPointsHandler.endPoints()
.void
point(float x, float y)
ImplementsPointsHandler.point(float,float)
.void
startPoints()
ImplementsPointsHandler.startPoints()
.
-
-
-
Field Detail
-
listHandler
protected ListHandler listHandler
TheListHandler
to pass newly createdSVGPointItem
objects to.
-
-
Constructor Detail
-
PointsListBuilder
public PointsListBuilder(ListHandler listHandler)
Creates a new PointsListBuilder.
-
-
Method Detail
-
startPoints
public void startPoints() throws ParseException
ImplementsPointsHandler.startPoints()
.- Specified by:
startPoints
in interfacePointsHandler
- Throws:
ParseException
- if an error occured while processing the points
-
point
public void point(float x, float y) throws ParseException
ImplementsPointsHandler.point(float,float)
.- Specified by:
point
in interfacePointsHandler
- Parameters:
x
- the x coordinate of the pointy
- the y coordinate of the point- Throws:
ParseException
- if an error occured while processing the points
-
endPoints
public void endPoints() throws ParseException
ImplementsPointsHandler.endPoints()
.- Specified by:
endPoints
in interfacePointsHandler
- Throws:
ParseException
- if an error occured while processing the points
-
-