JavaCAD
|
Public Member Functions | |
void | startPath () throws ParseException |
void | endPath () throws ParseException |
void | movetoRel (float x, float y) throws ParseException |
void | movetoAbs (float x, float y) throws ParseException |
void | closePath () throws ParseException |
void | linetoRel (float x, float y) throws ParseException |
void | linetoAbs (float x, float y) throws ParseException |
void | linetoHorizontalRel (float x) throws ParseException |
void | linetoHorizontalAbs (float x) throws ParseException |
void | linetoVerticalRel (float y) throws ParseException |
void | linetoVerticalAbs (float y) throws ParseException |
void | curvetoCubicRel (float x1, float y1, float x2, float y2, float x, float y) throws ParseException |
void | curvetoCubicAbs (float x1, float y1, float x2, float y2, float x, float y) throws ParseException |
void | curvetoCubicSmoothRel (float x2, float y2, float x, float y) throws ParseException |
void | curvetoCubicSmoothAbs (float x2, float y2, float x, float y) throws ParseException |
void | curvetoQuadraticRel (float x1, float y1, float x, float y) throws ParseException |
void | curvetoQuadraticAbs (float x1, float y1, float x, float y) throws ParseException |
void | curvetoQuadraticSmoothRel (float x, float y) throws ParseException |
void | curvetoQuadraticSmoothAbs (float x, float y) throws ParseException |
void | arcRel (float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y) throws ParseException |
void | arcAbs (float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y) throws ParseException |
This interface must be implemented and then registred as the handler of a PathParser
instance in order to be notified of parsing events.
Definition at line 29 of file PathHandler.java.
void com.piro.bezier.PathHandler.arcAbs | ( | float | rx, |
float | ry, | ||
float | xAxisRotation, | ||
boolean | largeArcFlag, | ||
boolean | sweepFlag, | ||
float | x, | ||
float | y | ||
) | throws ParseException |
Invoked when an absolute elliptical arc command has been parsed.
Command : A
rx | the X axis radius for the ellipse |
ry | the Y axis radius for the ellipse |
xAxisRotation | the rotation angle in degrees for the ellipse's X-axis relative to the X-axis |
largeArcFlag | the value of the large-arc-flag |
sweepFlag | the value of the sweep-flag |
x | the absolute x coordinate for the end point |
y | the absolute y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.arcRel | ( | float | rx, |
float | ry, | ||
float | xAxisRotation, | ||
boolean | largeArcFlag, | ||
boolean | sweepFlag, | ||
float | x, | ||
float | y | ||
) | throws ParseException |
Invoked when a relative elliptical arc command has been parsed.
Command : a
rx | the X axis radius for the ellipse |
ry | the Y axis radius for the ellipse |
xAxisRotation | the rotation angle in degrees for the ellipse's X-axis relative to the X-axis |
largeArcFlag | the value of the large-arc-flag |
sweepFlag | the value of the sweep-flag |
x | the relative x coordinate for the end point |
y | the relative y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.closePath | ( | ) | throws ParseException |
Invoked when a closepath has been parsed.
Command : z | Z
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.curvetoCubicAbs | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | x, | ||
float | y | ||
) | throws ParseException |
Invoked when an absolute cubic bezier curve command has been parsed.
Command : C
x1 | the absolute x coordinate for the first control point |
y1 | the absolute y coordinate for the first control point |
x2 | the absolute x coordinate for the second control point |
y2 | the absolute y coordinate for the second control point |
x | the absolute x coordinate for the end point |
y | the absolute y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.curvetoCubicRel | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | x, | ||
float | y | ||
) | throws ParseException |
Invoked when a relative cubic bezier curve command has been parsed.
Command : c
x1 | the relative x coordinate for the first control point |
y1 | the relative y coordinate for the first control point |
x2 | the relative x coordinate for the second control point |
y2 | the relative y coordinate for the second control point |
x | the relative x coordinate for the end point |
y | the relative y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.curvetoCubicSmoothAbs | ( | float | x2, |
float | y2, | ||
float | x, | ||
float | y | ||
) | throws ParseException |
Invoked when an absolute smooth cubic bezier curve command has been parsed. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point.
Command : S
x2 | the absolute x coordinate for the second control point |
y2 | the absolute y coordinate for the second control point |
x | the absolute x coordinate for the end point |
y | the absolute y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.curvetoCubicSmoothRel | ( | float | x2, |
float | y2, | ||
float | x, | ||
float | y | ||
) | throws ParseException |
Invoked when a relative smooth cubic bezier curve command has been parsed. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point.
Command : s
x2 | the relative x coordinate for the second control point |
y2 | the relative y coordinate for the second control point |
x | the relative x coordinate for the end point |
y | the relative y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.curvetoQuadraticAbs | ( | float | x1, |
float | y1, | ||
float | x, | ||
float | y | ||
) | throws ParseException |
Invoked when an absolute quadratic bezier curve command has been parsed.
Command : Q
x1 | the absolute x coordinate for the control point |
y1 | the absolute y coordinate for the control point |
x | the absolute x coordinate for the end point |
y | the absolute x coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.curvetoQuadraticRel | ( | float | x1, |
float | y1, | ||
float | x, | ||
float | y | ||
) | throws ParseException |
Invoked when a relative quadratic bezier curve command has been parsed.
Command : q
x1 | the relative x coordinate for the control point |
y1 | the relative y coordinate for the control point |
x | the relative x coordinate for the end point |
y | the relative x coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.curvetoQuadraticSmoothAbs | ( | float | x, |
float | y | ||
) | throws ParseException |
Invoked when an absolute smooth quadratic bezier curve command has been parsed. The control point is assumed to be the reflection of the control point on the previous command relative to the current point.
Command : T
x | the absolute x coordinate for the end point |
y | the absolute y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.curvetoQuadraticSmoothRel | ( | float | x, |
float | y | ||
) | throws ParseException |
Invoked when a relative smooth quadratic bezier curve command has been parsed. The control point is assumed to be the reflection of the control point on the previous command relative to the current point.
Command : t
x | the relative x coordinate for the end point |
y | the relative y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.endPath | ( | ) | throws ParseException |
Invoked when the path ends.
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.linetoAbs | ( | float | x, |
float | y | ||
) | throws ParseException |
Invoked when an absolute line command has been parsed.
Command : L
x | the absolute x coordinate for the end point |
y | the absolute y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.linetoHorizontalAbs | ( | float | x | ) | throws ParseException |
Invoked when an horizontal absolute line command has been parsed.
Command : H
x | the absolute X coordinate of the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.linetoHorizontalRel | ( | float | x | ) | throws ParseException |
Invoked when an horizontal relative line command has been parsed.
Command : h
x | the relative X coordinate of the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.linetoRel | ( | float | x, |
float | y | ||
) | throws ParseException |
Invoked when a relative line command has been parsed.
Command : l
x | the relative x coordinates for the end point |
y | the relative y coordinates for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.linetoVerticalAbs | ( | float | y | ) | throws ParseException |
Invoked when a vertical absolute line command has been parsed.
Command : V
y | the absolute Y coordinate of the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.linetoVerticalRel | ( | float | y | ) | throws ParseException |
Invoked when a vertical relative line command has been parsed.
Command : v
y | the relative Y coordinate of the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.movetoAbs | ( | float | x, |
float | y | ||
) | throws ParseException |
Invoked when an absolute moveto command has been parsed.
Command : M
x | the absolute x coordinate for the end point |
y | the absolute y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.movetoRel | ( | float | x, |
float | y | ||
) | throws ParseException |
Invoked when a relative moveto command has been parsed.
Command : m
x | the relative x coordinate for the end point |
y | the relative y coordinate for the end point |
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.
void com.piro.bezier.PathHandler.startPath | ( | ) | throws ParseException |
Invoked when the path starts.
ParseException | if an error occured while processing the path |
Implemented in com.piro.bezier.BezierListProducer.