org.apache.batik.parser
Class DefaultPathHandler
java.lang.Object
|
+--org.apache.batik.parser.DefaultPathHandler
- All Implemented Interfaces:
- PathHandler
- public class DefaultPathHandler
- extends java.lang.Object
- implements PathHandler
The class provides an adapter for PathHandler.
Constructor Summary |
protected |
DefaultPathHandler()
This class does not need to be instantiated. |
Method Summary |
void |
arcAbs(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
Implements PathHandler.arcAbs(float,float,float,boolean,boolean,float,float) . |
void |
arcRel(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
Implements PathHandler.arcRel(float,float,float,boolean,boolean,float,float) . |
void |
closePath()
Implements PathHandler.closePath() . |
void |
curvetoCubicAbs(float x1,
float y1,
float x2,
float y2,
float x,
float y)
Implements PathHandler.curvetoCubicAbs(float,float,float,float,float,float) . |
void |
curvetoCubicRel(float x1,
float y1,
float x2,
float y2,
float x,
float y)
Implements PathHandler.curvetoCubicRel(float,float,float,float,float,float) . |
void |
curvetoCubicSmoothAbs(float x2,
float y2,
float x,
float y)
Implements PathHandler.curvetoCubicSmoothAbs(float,float,float,float) . |
void |
curvetoCubicSmoothRel(float x2,
float y2,
float x,
float y)
Implements PathHandler.curvetoCubicSmoothRel(float,float,float,float) . |
void |
curvetoQuadraticAbs(float x1,
float y1,
float x,
float y)
Implements PathHandler.curvetoQuadraticAbs(float,float,float,float) . |
void |
curvetoQuadraticRel(float x1,
float y1,
float x,
float y)
Implements PathHandler.curvetoQuadraticRel(float,float,float,float) . |
void |
curvetoQuadraticSmoothAbs(float x,
float y)
Implements PathHandler.curvetoQuadraticSmoothAbs(float,float) . |
void |
curvetoQuadraticSmoothRel(float x,
float y)
Implements PathHandler.curvetoQuadraticSmoothRel(float,float) . |
void |
endPath()
Implements PathHandler.endPath() . |
void |
linetoAbs(float x,
float y)
Implements PathHandler.linetoAbs(float,float) . |
void |
linetoHorizontalAbs(float x)
Implements PathHandler.linetoHorizontalAbs(float) . |
void |
linetoHorizontalRel(float x)
Implements PathHandler.linetoHorizontalRel(float) . |
void |
linetoRel(float x,
float y)
Implements PathHandler.linetoRel(float,float) . |
void |
linetoVerticalAbs(float y)
Implements PathHandler.linetoVerticalAbs(float) . |
void |
linetoVerticalRel(float y)
Implements PathHandler.linetoVerticalRel(float) . |
void |
movetoAbs(float x,
float y)
Implements PathHandler.movetoAbs(float,float) . |
void |
movetoRel(float x,
float y)
Implements PathHandler.movetoRel(float,float) . |
void |
startPath()
Implements PathHandler.startPath() . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final PathHandler INSTANCE
- The only instance of this class.
DefaultPathHandler
protected DefaultPathHandler()
- This class does not need to be instantiated.
startPath
public void startPath()
throws ParseException
- Implements
PathHandler.startPath()
.
- Specified by:
startPath
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Throws:
ParseException
- if an error occured while processing the path
endPath
public void endPath()
throws ParseException
- Implements
PathHandler.endPath()
.
- Specified by:
endPath
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Throws:
ParseException
- if an error occured while processing the path
movetoRel
public void movetoRel(float x,
float y)
throws ParseException
- Implements
PathHandler.movetoRel(float,float)
.
- Specified by:
movetoRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x, y
- the relative coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
movetoAbs
public void movetoAbs(float x,
float y)
throws ParseException
- Implements
PathHandler.movetoAbs(float,float)
.
- Specified by:
movetoAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x, y
- the absolute coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
closePath
public void closePath()
throws ParseException
- Implements
PathHandler.closePath()
.
- Specified by:
closePath
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Throws:
ParseException
- if an error occured while processing the path
linetoRel
public void linetoRel(float x,
float y)
throws ParseException
- Implements
PathHandler.linetoRel(float,float)
.
- Specified by:
linetoRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x, y
- the relative coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
linetoAbs
public void linetoAbs(float x,
float y)
throws ParseException
- Implements
PathHandler.linetoAbs(float,float)
.
- Specified by:
linetoAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x, y
- the absolute coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
linetoHorizontalRel
public void linetoHorizontalRel(float x)
throws ParseException
- Implements
PathHandler.linetoHorizontalRel(float)
.
- Specified by:
linetoHorizontalRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x
- the relative X coordinate of the end point- Throws:
ParseException
- if an error occured while processing the path
linetoHorizontalAbs
public void linetoHorizontalAbs(float x)
throws ParseException
- Implements
PathHandler.linetoHorizontalAbs(float)
.
- Specified by:
linetoHorizontalAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x
- the absolute X coordinate of the end point- Throws:
ParseException
- if an error occured while processing the path
linetoVerticalRel
public void linetoVerticalRel(float y)
throws ParseException
- Implements
PathHandler.linetoVerticalRel(float)
.
- Specified by:
linetoVerticalRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
y
- the relative Y coordinate of the end point- Throws:
ParseException
- if an error occured while processing the path
linetoVerticalAbs
public void linetoVerticalAbs(float y)
throws ParseException
- Implements
PathHandler.linetoVerticalAbs(float)
.
- Specified by:
linetoVerticalAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
y
- the absolute Y coordinate of the end point- Throws:
ParseException
- if an error occured while processing the path
curvetoCubicRel
public void curvetoCubicRel(float x1,
float y1,
float x2,
float y2,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoCubicRel(float,float,float,float,float,float)
.
- Specified by:
curvetoCubicRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
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 point- Throws:
ParseException
- if an error occured while processing the path
curvetoCubicAbs
public void curvetoCubicAbs(float x1,
float y1,
float x2,
float y2,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoCubicAbs(float,float,float,float,float,float)
.
- Specified by:
curvetoCubicAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
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 point- Throws:
ParseException
- if an error occured while processing the path
curvetoCubicSmoothRel
public void curvetoCubicSmoothRel(float x2,
float y2,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoCubicSmoothRel(float,float,float,float)
.
- Specified by:
curvetoCubicSmoothRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x2, y2
- the relative coordinates for the second control pointx, y
- the relative coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
curvetoCubicSmoothAbs
public void curvetoCubicSmoothAbs(float x2,
float y2,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoCubicSmoothAbs(float,float,float,float)
.
- Specified by:
curvetoCubicSmoothAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x2, y2
- the absolute coordinates for the second control pointx, y
- the absolute coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
curvetoQuadraticRel
public void curvetoQuadraticRel(float x1,
float y1,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoQuadraticRel(float,float,float,float)
.
- Specified by:
curvetoQuadraticRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x1, y1
- the relative coordinates for the control pointx, y
- the relative coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
curvetoQuadraticAbs
public void curvetoQuadraticAbs(float x1,
float y1,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoQuadraticAbs(float,float,float,float)
.
- Specified by:
curvetoQuadraticAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x1, y1
- the absolute coordinates for the control pointx, y
- the absolute coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
curvetoQuadraticSmoothRel
public void curvetoQuadraticSmoothRel(float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoQuadraticSmoothRel(float,float)
.
- Specified by:
curvetoQuadraticSmoothRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x, y
- the relative coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
curvetoQuadraticSmoothAbs
public void curvetoQuadraticSmoothAbs(float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoQuadraticSmoothAbs(float,float)
.
- Specified by:
curvetoQuadraticSmoothAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
x, y
- the absolute coordinates for the end point- Throws:
ParseException
- if an error occured while processing the path
arcRel
public void arcRel(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
throws ParseException
- Implements
PathHandler.arcRel(float,float,float,boolean,boolean,float,float)
.
- Specified by:
arcRel
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
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 point- Throws:
ParseException
- if an error occured while processing the path
arcAbs
public void arcAbs(float rx,
float ry,
float xAxisRotation,
boolean largeArcFlag,
boolean sweepFlag,
float x,
float y)
throws ParseException
- Implements
PathHandler.arcAbs(float,float,float,boolean,boolean,float,float)
.
- Specified by:
arcAbs
in interface PathHandler
- Following copied from interface:
org.apache.batik.parser.PathHandler
- Parameters:
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 point- Throws:
ParseException
- if an error occured while processing the path
Copyright © 2002 Apache Software Foundation. All Rights Reserved.