|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.batik.parser.PathArrayProducer
public class PathArrayProducer
A handler class that generates an array of shorts and an array floats from parsing path data.
| Field Summary | |
|---|---|
protected short[] |
c
The current short[] object. |
protected int |
ccount
The total number of path commands accumulated. |
protected int |
cindex
The index in which to store the next path command. |
protected LinkedList |
cs
List of short[] objects. |
protected float[] |
p
The current float[] object. |
protected int |
pcount
The total number of path parameters accumulated. |
protected int |
pindex
The index in which to store the next path parameter. |
protected LinkedList |
ps
List of float[] objects. |
| Constructor Summary | |
|---|---|
PathArrayProducer()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LinkedList ps
float[] objects.
protected float[] p
float[] object.
protected LinkedList cs
short[] objects.
protected short[] c
short[] object.
protected int cindex
protected int pindex
protected int ccount
protected int pcount
| Constructor Detail |
|---|
public PathArrayProducer()
| Method Detail |
|---|
public short[] getPathCommands()
public float[] getPathParameters()
public void startPath()
throws ParseException
PathHandler.startPath().
startPath in interface PathHandlerParseException - if an error occured while processing the path
public void movetoRel(float x,
float y)
throws ParseException
PathHandler.movetoRel(float,float).
movetoRel in interface PathHandlerx - the relative x coordinate for the end pointy - the relative y coordinate for the end point
ParseException - if an error occured while processing the path
public void movetoAbs(float x,
float y)
throws ParseException
PathHandler.movetoAbs(float,float).
movetoAbs in interface PathHandlerx - the absolute x coordinate for the end pointy - the absolute y coordinate for the end point
ParseException - if an error occured while processing the path
public void closePath()
throws ParseException
PathHandler.closePath().
closePath in interface PathHandlerParseException - if an error occured while processing the path
public void linetoRel(float x,
float y)
throws ParseException
PathHandler.linetoRel(float,float).
linetoRel in interface PathHandlerx - the relative x coordinates for the end pointy - the relative y coordinates for the end point
ParseException - if an error occured while processing the path
public void linetoAbs(float x,
float y)
throws ParseException
PathHandler.linetoAbs(float,float).
linetoAbs in interface PathHandlerx - the absolute x coordinate for the end pointy - the absolute y coordinate for the end point
ParseException - if an error occured while processing the path
public void linetoHorizontalRel(float x)
throws ParseException
PathHandler.linetoHorizontalRel(float).
linetoHorizontalRel in interface PathHandlerx - the relative X coordinate of the end point
ParseException - if an error occured while processing the path
public void linetoHorizontalAbs(float x)
throws ParseException
PathHandler.linetoHorizontalAbs(float).
linetoHorizontalAbs in interface PathHandlerx - the absolute X coordinate of the end point
ParseException - if an error occured while processing the path
public void linetoVerticalRel(float y)
throws ParseException
PathHandler.linetoVerticalRel(float).
linetoVerticalRel in interface PathHandlery - the relative Y coordinate of the end point
ParseException - if an error occured while processing the path
public void linetoVerticalAbs(float y)
throws ParseException
PathHandler.linetoVerticalAbs(float).
linetoVerticalAbs in interface PathHandlery - the absolute Y coordinate of the end point
ParseException - 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
PathHandler.curvetoCubicRel(float,float,float,float,float,float).
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 point
ParseException - 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
PathHandler.curvetoCubicAbs(float,float,float,float,float,float).
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 point
ParseException - if an error occured while processing the path
public void curvetoCubicSmoothRel(float x2,
float y2,
float x,
float y)
throws ParseException
PathHandler.curvetoCubicSmoothRel(float,float,float,float).
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 point
ParseException - if an error occured while processing the path
public void curvetoCubicSmoothAbs(float x2,
float y2,
float x,
float y)
throws ParseException
PathHandler.curvetoCubicSmoothAbs(float,float,float,float).
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 point
ParseException - if an error occured while processing the path
public void curvetoQuadraticRel(float x1,
float y1,
float x,
float y)
throws ParseException
PathHandler.curvetoQuadraticRel(float,float,float,float).
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 point
ParseException - if an error occured while processing the path
public void curvetoQuadraticAbs(float x1,
float y1,
float x,
float y)
throws ParseException
PathHandler.curvetoQuadraticAbs(float,float,float,float).
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 point
ParseException - if an error occured while processing the path
public void curvetoQuadraticSmoothRel(float x,
float y)
throws ParseException
PathHandler.curvetoQuadraticSmoothRel(float,float).
curvetoQuadraticSmoothRel in interface PathHandlerx - the relative x coordinate for the end pointy - the relative y coordinate for the end point
ParseException - if an error occured while processing the path
public void curvetoQuadraticSmoothAbs(float x,
float y)
throws ParseException
PathHandler.curvetoQuadraticSmoothAbs(float,float).
curvetoQuadraticSmoothAbs in interface PathHandlerx - the absolute x coordinate for the end pointy - the absolute y coordinate for the end point
ParseException - 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
PathHandler.arcRel(float,float,float,boolean,boolean,float,float).
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 point
ParseException - 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
PathHandler.arcAbs(float,float,float,boolean,boolean,float,float).
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 point
ParseException - if an error occured while processing the path
protected void command(short val)
throws ParseException
ParseException
protected void param(float val)
throws ParseException
ParseException
public void endPath()
throws ParseException
PathHandler.endPath().
endPath in interface PathHandlerParseException - if an error occured while processing the path
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||