public class BezierListProducer extends java.lang.Object implements PathHandler
| Constructor and Description |
|---|
BezierListProducer() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void startPath()
throws ParseException
PathHandlerstartPath in interface PathHandlerParseException - if an error occured while processing the pathpublic void movetoRel(float x,
float y)
throws ParseException
PathHandlerCommand : m
movetoRel in interface PathHandlerx - the relative x coordinate for the end pointy - the relative y coordinate for the end pointParseException - if an error occured while processing the pathpublic void movetoAbs(float x,
float y)
throws ParseException
PathHandlerCommand : M
movetoAbs in interface PathHandlerx - the absolute x coordinate for the end pointy - the absolute y coordinate for the end pointParseException - if an error occured while processing the pathpublic void closePath()
throws ParseException
PathHandlerCommand : z | Z
closePath in interface PathHandlerParseException - if an error occured while processing the pathpublic void linetoRel(float x,
float y)
throws ParseException
PathHandlerCommand : l
linetoRel in interface PathHandlerx - the relative x coordinates for the end pointy - the relative y coordinates for the end pointParseException - if an error occured while processing the pathpublic void linetoAbs(float x,
float y)
throws ParseException
PathHandlerCommand : L
linetoAbs in interface PathHandlerx - the absolute x coordinate for the end pointy - the absolute y coordinate for the end pointParseException - if an error occured while processing the pathpublic void linetoHorizontalRel(float x)
throws ParseException
PathHandlerCommand : h
linetoHorizontalRel in interface PathHandlerx - the relative X coordinate of the end pointParseException - if an error occured while processing the pathpublic void linetoHorizontalAbs(float x)
throws ParseException
PathHandlerCommand : H
linetoHorizontalAbs in interface PathHandlerx - the absolute X coordinate of the end pointParseException - if an error occured while processing the pathpublic void linetoVerticalRel(float y)
throws ParseException
PathHandlerCommand : v
linetoVerticalRel in interface PathHandlery - the relative Y coordinate of the end pointParseException - if an error occured while processing the pathpublic void linetoVerticalAbs(float y)
throws ParseException
PathHandlerCommand : V
linetoVerticalAbs in interface PathHandlery - the absolute Y coordinate of the end pointParseException - if an error occured while processing the pathpublic void curvetoCubicRel(float x1,
float y1,
float x2,
float y2,
float x,
float y)
throws ParseException
PathHandlerCommand : c
curvetoCubicRel in interface PathHandlerx1 - 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 pathpublic void curvetoCubicAbs(float x1,
float y1,
float x2,
float y2,
float x,
float y)
throws ParseException
PathHandlerCommand : C
curvetoCubicAbs in interface PathHandlerx1 - 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 pathpublic void curvetoCubicSmoothRel(float x2,
float y2,
float x,
float y)
throws ParseException
PathHandlerCommand : s
curvetoCubicSmoothRel in interface PathHandlerx2 - 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 pathpublic void curvetoCubicSmoothAbs(float x2,
float y2,
float x,
float y)
throws ParseException
PathHandlerCommand : S
curvetoCubicSmoothAbs in interface PathHandlerx2 - 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 pathpublic void curvetoQuadraticRel(float x1,
float y1,
float x,
float y)
throws ParseException
PathHandlerCommand : q
curvetoQuadraticRel in interface PathHandlerx1 - 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 pathpublic void curvetoQuadraticAbs(float x1,
float y1,
float x,
float y)
throws ParseException
PathHandlerCommand : Q
curvetoQuadraticAbs in interface PathHandlerx1 - 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 pathpublic void curvetoQuadraticSmoothRel(float x,
float y)
PathHandlerCommand : t
curvetoQuadraticSmoothRel in interface PathHandlerx - the relative x coordinate for the end pointy - the relative y coordinate for the end pointpublic void curvetoQuadraticSmoothAbs(float x,
float y)
throws ParseException
PathHandlerCommand : T
curvetoQuadraticSmoothAbs in interface PathHandlerx - the absolute x coordinate for the end pointy - the absolute y coordinate for the end pointParseException - if an error occured while processing the pathpublic void arcRel(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
throws ParseException
PathHandlerCommand : a
arcRel in interface PathHandlerrx - 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 pathpublic void arcAbs(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
throws ParseException
PathHandlerCommand : A
arcAbs in interface PathHandlerrx - 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 pathpublic void endPath()
throws ParseException
PathHandlerendPath in interface PathHandlerParseException - if an error occured while processing the path