public interface PathHandler
PathParser instance in order to be
notified of parsing events.| Modifier and Type | Method and Description |
|---|---|
void |
arcAbs(double rx,
double ry,
double xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
double x,
double y)
Invoked when an absolute elliptical arc command has been parsed.
|
void |
arcRel(double rx,
double ry,
double xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
double x,
double y)
Invoked when a relative elliptical arc command has been parsed.
|
void |
closePath()
Invoked when a closepath has been parsed.
|
void |
curvetoCubicAbs(double x1,
double y1,
double x2,
double y2,
double x,
double y)
Invoked when an absolute cubic bezier curve command has been parsed.
|
void |
curvetoCubicRel(double x1,
double y1,
double x2,
double y2,
double x,
double y)
Invoked when a relative cubic bezier curve command has been parsed.
|
void |
curvetoCubicSmoothAbs(double x2,
double y2,
double x,
double y)
Invoked when an absolute smooth cubic bezier curve command has
been parsed.
|
void |
curvetoCubicSmoothRel(double x2,
double y2,
double x,
double y)
Invoked when a relative smooth cubic bezier curve command has
been parsed.
|
void |
curvetoQuadraticAbs(double x1,
double y1,
double x,
double y)
Invoked when an absolute quadratic bezier curve command has been parsed.
|
void |
curvetoQuadraticRel(double x1,
double y1,
double x,
double y)
Invoked when a relative quadratic bezier curve command has been parsed.
|
void |
curvetoQuadraticSmoothAbs(double x,
double y)
Invoked when an absolute smooth quadratic bezier curve command
has been parsed.
|
void |
curvetoQuadraticSmoothRel(double x,
double y)
Invoked when a relative smooth quadratic bezier curve command
has been parsed.
|
void |
endPath()
Invoked when the path ends.
|
void |
linetoAbs(double x,
double y)
Invoked when an absolute line command has been parsed.
|
void |
linetoHorizontalAbs(double x)
Invoked when an horizontal absolute line command has been parsed.
|
void |
linetoHorizontalRel(double x)
Invoked when an horizontal relative line command has been parsed.
|
void |
linetoRel(double x,
double y)
Invoked when a relative line command has been parsed.
|
void |
linetoVerticalAbs(double y)
Invoked when a vertical absolute line command has been parsed.
|
void |
linetoVerticalRel(double y)
Invoked when a vertical relative line command has been parsed.
|
void |
movetoAbs(double x,
double y)
Invoked when an absolute moveto command has been parsed.
|
void |
movetoRel(double x,
double y)
Invoked when a relative moveto command has been parsed.
|
void |
startPath()
Invoked when the path starts.
|
void startPath()
throws ParseException
ParseException - if an error occured while processing the pathvoid endPath()
throws ParseException
ParseException - if an error occured while processing the pathvoid movetoRel(double x,
double y)
throws ParseException
Command : m
x - the relative x coordinate for the end pointy - the relative y coordinate for the end pointParseException - if an error occured while processing the pathvoid movetoAbs(double x,
double y)
throws ParseException
Command : M
x - the absolute x coordinate for the end pointy - the absolute y coordinate for the end pointParseException - if an error occured while processing the pathvoid closePath()
throws ParseException
Command : z | Z
ParseException - if an error occured while processing the pathvoid linetoRel(double x,
double y)
throws ParseException
Command : l
x - the relative x coordinates for the end pointy - the relative y coordinates for the end pointParseException - if an error occured while processing the pathvoid linetoAbs(double x,
double y)
throws ParseException
Command : L
x - the absolute x coordinate for the end pointy - the absolute y coordinate for the end pointParseException - if an error occured while processing the pathvoid linetoHorizontalRel(double x)
throws ParseException
Command : h
x - the relative X coordinate of the end pointParseException - if an error occured while processing the pathvoid linetoHorizontalAbs(double x)
throws ParseException
Command : H
x - the absolute X coordinate of the end pointParseException - if an error occured while processing the pathvoid linetoVerticalRel(double y)
throws ParseException
Command : v
y - the relative Y coordinate of the end pointParseException - if an error occured while processing the pathvoid linetoVerticalAbs(double y)
throws ParseException
Command : V
y - the absolute Y coordinate of the end pointParseException - if an error occured while processing the pathvoid curvetoCubicRel(double x1,
double y1,
double x2,
double y2,
double x,
double y)
throws ParseException
Command : c
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 pointParseException - if an error occured while processing the pathvoid curvetoCubicAbs(double x1,
double y1,
double x2,
double y2,
double x,
double y)
throws ParseException
Command : C
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 pointParseException - if an error occured while processing the pathvoid curvetoCubicSmoothRel(double x2,
double y2,
double x,
double y)
throws ParseException
Command : s
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 pointParseException - if an error occured while processing the pathvoid curvetoCubicSmoothAbs(double x2,
double y2,
double x,
double y)
throws ParseException
Command : S
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 pointParseException - if an error occured while processing the pathvoid curvetoQuadraticRel(double x1,
double y1,
double x,
double y)
throws ParseException
Command : q
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 pointParseException - if an error occured while processing the pathvoid curvetoQuadraticAbs(double x1,
double y1,
double x,
double y)
throws ParseException
Command : Q
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 pointParseException - if an error occured while processing the pathvoid curvetoQuadraticSmoothRel(double x,
double y)
throws ParseException
Command : t
x - the relative x coordinate for the end pointy - the relative y coordinate for the end pointParseException - if an error occured while processing the pathvoid curvetoQuadraticSmoothAbs(double x,
double y)
throws ParseException
Command : T
x - the absolute x coordinate for the end pointy - the absolute y coordinate for the end pointParseException - if an error occured while processing the pathvoid arcRel(double rx,
double ry,
double xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
double x,
double y)
throws ParseException
Command : a
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 pointParseException - if an error occured while processing the pathvoid arcAbs(double rx,
double ry,
double xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
double x,
double y)
throws ParseException
Command : A
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 pointParseException - if an error occured while processing the path