Package org.apache.batik.dom.svg
Class AbstractSVGPathSegList.PathSegListBuilder
java.lang.Object
org.apache.batik.parser.DefaultPathHandler
org.apache.batik.dom.svg.AbstractSVGPathSegList.PathSegListBuilder
- All Implemented Interfaces:
PathHandler
- Enclosing class:
AbstractSVGPathSegList
-
Field Summary
FieldsFields inherited from class org.apache.batik.parser.DefaultPathHandler
INSTANCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
arcAbs
(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y) void
arcRel
(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y) void
ImplementsPathHandler.closePath()
.void
curvetoCubicAbs
(float x1, float y1, float x2, float y2, float x, float y) void
curvetoCubicRel
(float x1, float y1, float x2, float y2, float x, float y) void
curvetoCubicSmoothAbs
(float x2, float y2, float x, float y) void
curvetoCubicSmoothRel
(float x2, float y2, float x, float y) void
curvetoQuadraticAbs
(float x1, float y1, float x, float y) void
curvetoQuadraticRel
(float x1, float y1, float x, float y) void
curvetoQuadraticSmoothAbs
(float x, float y) void
curvetoQuadraticSmoothRel
(float x, float y) void
endPath()
ImplementsPathHandler.endPath()
.void
linetoAbs
(float x, float y) ImplementsPathHandler.linetoAbs(float,float)
.void
linetoHorizontalAbs
(float x) ImplementsPathHandler.linetoHorizontalAbs(float)
.void
linetoHorizontalRel
(float x) ImplementsPathHandler.linetoHorizontalRel(float)
.void
linetoRel
(float x, float y) ImplementsPathHandler.linetoRel(float,float)
.void
linetoVerticalAbs
(float y) ImplementsPathHandler.linetoVerticalAbs(float)
.void
linetoVerticalRel
(float y) ImplementsPathHandler.linetoVerticalRel(float)
.void
movetoAbs
(float x, float y) ImplementsPathHandler.movetoAbs(float,float)
.void
movetoRel
(float x, float y) ImplementsPathHandler.movetoRel(float,float)
.void
ImplementsPathHandler.startPath()
.
-
Field Details
-
listHandler
-
-
Constructor Details
-
PathSegListBuilder
-
-
Method Details
-
startPath
ImplementsPathHandler.startPath()
.- Specified by:
startPath
in interfacePathHandler
- Overrides:
startPath
in classDefaultPathHandler
- Throws:
ParseException
- if an error occured while processing the path
-
endPath
ImplementsPathHandler.endPath()
.- Specified by:
endPath
in interfacePathHandler
- Overrides:
endPath
in classDefaultPathHandler
- Throws:
ParseException
- if an error occured while processing the path
-
movetoRel
ImplementsPathHandler.movetoRel(float,float)
.- Specified by:
movetoRel
in interfacePathHandler
- Overrides:
movetoRel
in classDefaultPathHandler
- Parameters:
x
- the relative x coordinate for the end pointy
- the relative y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
movetoAbs
ImplementsPathHandler.movetoAbs(float,float)
.- Specified by:
movetoAbs
in interfacePathHandler
- Overrides:
movetoAbs
in classDefaultPathHandler
- Parameters:
x
- the absolute x coordinate for the end pointy
- the absolute y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
closePath
ImplementsPathHandler.closePath()
.- Specified by:
closePath
in interfacePathHandler
- Overrides:
closePath
in classDefaultPathHandler
- Throws:
ParseException
- if an error occured while processing the path
-
linetoRel
ImplementsPathHandler.linetoRel(float,float)
.- Specified by:
linetoRel
in interfacePathHandler
- Overrides:
linetoRel
in classDefaultPathHandler
- Parameters:
x
- the relative x coordinates for the end pointy
- the relative y coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
-
linetoAbs
ImplementsPathHandler.linetoAbs(float,float)
.- Specified by:
linetoAbs
in interfacePathHandler
- Overrides:
linetoAbs
in classDefaultPathHandler
- Parameters:
x
- the absolute x coordinate for the end pointy
- the absolute y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
linetoHorizontalRel
ImplementsPathHandler.linetoHorizontalRel(float)
.- Specified by:
linetoHorizontalRel
in interfacePathHandler
- Overrides:
linetoHorizontalRel
in classDefaultPathHandler
- Parameters:
x
- the relative X coordinate of the end point- Throws:
ParseException
- if an error occured while processing the path
-
linetoHorizontalAbs
ImplementsPathHandler.linetoHorizontalAbs(float)
.- Specified by:
linetoHorizontalAbs
in interfacePathHandler
- Overrides:
linetoHorizontalAbs
in classDefaultPathHandler
- Parameters:
x
- the absolute X coordinate of the end point- Throws:
ParseException
- if an error occured while processing the path
-
linetoVerticalRel
ImplementsPathHandler.linetoVerticalRel(float)
.- Specified by:
linetoVerticalRel
in interfacePathHandler
- Overrides:
linetoVerticalRel
in classDefaultPathHandler
- Parameters:
y
- the relative Y coordinate of the end point- Throws:
ParseException
- if an error occured while processing the path
-
linetoVerticalAbs
ImplementsPathHandler.linetoVerticalAbs(float)
.- Specified by:
linetoVerticalAbs
in interfacePathHandler
- Overrides:
linetoVerticalAbs
in classDefaultPathHandler
- Parameters:
y
- the absolute Y coordinate of the end point- Throws:
ParseException
- if an error occured while processing the path
-
curvetoCubicRel
public void curvetoCubicRel(float x1, float y1, float x2, float y2, float x, float y) throws ParseException - Specified by:
curvetoCubicRel
in interfacePathHandler
- Overrides:
curvetoCubicRel
in classDefaultPathHandler
- Parameters:
x1
- the relative x coordinate for the first control pointy1
- the relative y coordinate for the first control pointx2
- the relative x coordinate for the second control pointy2
- the relative y coordinate for the second control pointx
- the relative x coordinate for the end pointy
- the relative y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
curvetoCubicAbs
public void curvetoCubicAbs(float x1, float y1, float x2, float y2, float x, float y) throws ParseException - Specified by:
curvetoCubicAbs
in interfacePathHandler
- Overrides:
curvetoCubicAbs
in classDefaultPathHandler
- Parameters:
x1
- the absolute x coordinate for the first control pointy1
- the absolute y coordinate for the first control pointx2
- the absolute x coordinate for the second control pointy2
- the absolute y coordinate for the second control pointx
- the absolute x coordinate for the end pointy
- the absolute y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
curvetoCubicSmoothRel
- Specified by:
curvetoCubicSmoothRel
in interfacePathHandler
- Overrides:
curvetoCubicSmoothRel
in classDefaultPathHandler
- Parameters:
x2
- the relative x coordinate for the second control pointy2
- the relative y coordinate for the second control pointx
- the relative x coordinate for the end pointy
- the relative y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
curvetoCubicSmoothAbs
- Specified by:
curvetoCubicSmoothAbs
in interfacePathHandler
- Overrides:
curvetoCubicSmoothAbs
in classDefaultPathHandler
- Parameters:
x2
- the absolute x coordinate for the second control pointy2
- the absolute y coordinate for the second control pointx
- the absolute x coordinate for the end pointy
- the absolute y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
curvetoQuadraticRel
- Specified by:
curvetoQuadraticRel
in interfacePathHandler
- Overrides:
curvetoQuadraticRel
in classDefaultPathHandler
- Parameters:
x1
- the relative x coordinate for the control pointy1
- the relative y coordinate for the control pointx
- the relative x coordinate for the end pointy
- the relative x coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
curvetoQuadraticAbs
- Specified by:
curvetoQuadraticAbs
in interfacePathHandler
- Overrides:
curvetoQuadraticAbs
in classDefaultPathHandler
- Parameters:
x1
- the absolute x coordinate for the control pointy1
- the absolute y coordinate for the control pointx
- the absolute x coordinate for the end pointy
- the absolute x coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
curvetoQuadraticSmoothRel
- Specified by:
curvetoQuadraticSmoothRel
in interfacePathHandler
- Overrides:
curvetoQuadraticSmoothRel
in classDefaultPathHandler
- Parameters:
x
- the relative x coordinate for the end pointy
- the relative y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
curvetoQuadraticSmoothAbs
- Specified by:
curvetoQuadraticSmoothAbs
in interfacePathHandler
- Overrides:
curvetoQuadraticSmoothAbs
in classDefaultPathHandler
- Parameters:
x
- the absolute x coordinate for the end pointy
- the absolute y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
arcRel
public void arcRel(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y) throws ParseException - Specified by:
arcRel
in interfacePathHandler
- Overrides:
arcRel
in classDefaultPathHandler
- Parameters:
rx
- the X axis radius for the ellipsery
- the Y axis radius for the ellipsexAxisRotation
- the rotation angle in degrees for the ellipse's X-axis relative to the X-axislargeArcFlag
- the value of the large-arc-flagsweepFlag
- the value of the sweep-flagx
- the relative x coordinate for the end pointy
- the relative y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-
arcAbs
public void arcAbs(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y) throws ParseException - Specified by:
arcAbs
in interfacePathHandler
- Overrides:
arcAbs
in classDefaultPathHandler
- Parameters:
rx
- the X axis radius for the ellipsery
- the Y axis radius for the ellipsexAxisRotation
- the rotation angle in degrees for the ellipse's X-axis relative to the X-axislargeArcFlag
- the value of the large-arc-flagsweepFlag
- the value of the sweep-flagx
- the absolute x coordinate for the end pointy
- the absolute y coordinate for the end point- Throws:
ParseException
- if an error occured while processing the path
-