|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface must be implemented and then registred as the
handler of a PathParser instance in order to be
notified of parsing events.
| Method Summary | |
void |
arcAbs(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
Invoked when an absolute elliptical arc command has been parsed. |
void |
arcRel(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
Invoked when a relative elliptical arc command has been parsed. |
void |
closePath()
Invoked when a closepath has been parsed. |
void |
curvetoCubicAbs(float x1,
float y1,
float x2,
float y2,
float x,
float y)
Invoked when an absolute cubic bezier curve command has been parsed. |
void |
curvetoCubicRel(float x1,
float y1,
float x2,
float y2,
float x,
float y)
Invoked when a relative cubic bezier curve command has been parsed. |
void |
curvetoCubicSmoothAbs(float x2,
float y2,
float x,
float y)
Invoked when an absolute smooth cubic bezier curve command has been parsed. |
void |
curvetoCubicSmoothRel(float x2,
float y2,
float x,
float y)
Invoked when a relative smooth cubic bezier curve command has been parsed. |
void |
curvetoQuadraticAbs(float x1,
float y1,
float x,
float y)
Invoked when an absolute quadratic bezier curve command has been parsed. |
void |
curvetoQuadraticRel(float x1,
float y1,
float x,
float y)
Invoked when a relative quadratic bezier curve command has been parsed. |
void |
curvetoQuadraticSmoothAbs(float x,
float y)
Invoked when an absolute smooth quadratic bezier curve command has been parsed. |
void |
curvetoQuadraticSmoothRel(float x,
float y)
Invoked when a relative smooth quadratic bezier curve command has been parsed. |
void |
endPath()
Invoked when the path ends. |
void |
linetoAbs(float x,
float y)
Invoked when an absolute line command has been parsed. |
void |
linetoHorizontalAbs(float x)
Invoked when an horizontal absolute line command has been parsed. |
void |
linetoHorizontalRel(float x)
Invoked when an horizontal relative line command has been parsed. |
void |
linetoRel(float x,
float y)
Invoked when a relative line command has been parsed. |
void |
linetoVerticalAbs(float y)
Invoked when a vertical absolute line command has been parsed. |
void |
linetoVerticalRel(float y)
Invoked when a vertical relative line command has been parsed. |
void |
movetoAbs(float x,
float y)
Invoked when an absolute moveto command has been parsed. |
void |
movetoRel(float x,
float y)
Invoked when a relative moveto command has been parsed. |
void |
startPath()
Invoked when the path starts. |
| Method Detail |
public void startPath()
throws ParseException
ParseException - if an error occured while processing the path
public void endPath()
throws ParseException
ParseException - if an error occured while processing the path
public void movetoRel(float x,
float y)
throws ParseException
Command : m
x, y - the relative coordinates for the end pointParseException - if an error occured while processing the path
public void movetoAbs(float x,
float y)
throws ParseException
Command : M
x, y - the absolute coordinates for the end pointParseException - if an error occured while processing the path
public void closePath()
throws ParseException
Command : z | Z
ParseException - if an error occured while processing the path
public void linetoRel(float x,
float y)
throws ParseException
Command : l
x, y - the relative coordinates for the end pointParseException - if an error occured while processing the path
public void linetoAbs(float x,
float y)
throws ParseException
Command : L
x, y - the absolute coordinates for the end pointParseException - if an error occured while processing the path
public void linetoHorizontalRel(float x)
throws ParseException
Command : h
x - the relative X coordinate of the end pointParseException - if an error occured while processing the path
public void linetoHorizontalAbs(float x)
throws ParseException
Command : H
x - the absolute X coordinate of the end pointParseException - if an error occured while processing the path
public void linetoVerticalRel(float y)
throws ParseException
Command : v
y - the relative Y coordinate of the end pointParseException - if an error occured while processing the path
public void linetoVerticalAbs(float y)
throws ParseException
Command : V
y - the absolute Y coordinate of the end pointParseException - if an error occured while processing the path
public void curvetoCubicRel(float x1,
float y1,
float x2,
float y2,
float x,
float y)
throws ParseException
Command : c
x1, y1 - the relative coordinates for the first control pointx2, y2 - the relative coordinates for the second control pointx, y - the relative coordinates for the end pointParseException - if an error occured while processing the path
public void curvetoCubicAbs(float x1,
float y1,
float x2,
float y2,
float x,
float y)
throws ParseException
Command : C
x1, y1 - the absolute coordinates for the first control pointx2, y2 - the absolute coordinates for the second control pointx, y - the absolute coordinates for the end pointParseException - if an error occured while processing the path
public void curvetoCubicSmoothRel(float x2,
float y2,
float x,
float y)
throws ParseException
Command : s
x2, y2 - the relative coordinates for the second control pointx, y - the relative coordinates for the end pointParseException - if an error occured while processing the path
public void curvetoCubicSmoothAbs(float x2,
float y2,
float x,
float y)
throws ParseException
Command : S
x2, y2 - the absolute coordinates for the second control pointx, y - the absolute coordinates for the end pointParseException - if an error occured while processing the path
public void curvetoQuadraticRel(float x1,
float y1,
float x,
float y)
throws ParseException
Command : q
x1, y1 - the relative coordinates for the control pointx, y - the relative coordinates for the end pointParseException - if an error occured while processing the path
public void curvetoQuadraticAbs(float x1,
float y1,
float x,
float y)
throws ParseException
Command : Q
x1, y1 - the absolute coordinates for the control pointx, y - the absolute coordinates for the end pointParseException - if an error occured while processing the path
public void curvetoQuadraticSmoothRel(float x,
float y)
throws ParseException
Command : t
x, y - the relative coordinates for the end pointParseException - if an error occured while processing the path
public void curvetoQuadraticSmoothAbs(float x,
float y)
throws ParseException
Command : T
x, y - the absolute coordinates for the end pointParseException - if an error occured while processing the path
public void arcRel(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
throws ParseException
Command : a
rx - the X axis radius for the ellipsery - the Y axis radius for the ellipseangle - 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, y - the relative coordinates for the end pointParseException - if an error occured while processing the path
public void arcAbs(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
throws ParseException
Command : A
rx - the X axis radius for the ellipsery - the Y axis radius for the ellipseangle - 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, y - the absolute coordinates for the end pointParseException - if an error occured while processing the path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||