|
|||||||||
| Home >> All >> org >> apache >> batik >> [ parser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.parser
Class AWTPathProducer

java.lang.Objectorg.apache.batik.parser.AWTPathProducer
- All Implemented Interfaces:
- PathHandler, ShapeProducer
- public class AWTPathProducer
- extends java.lang.Object
- implements PathHandler, ShapeProducer
- extends java.lang.Object
This class provides an implementation of the PathHandler that initializes a Shape from the value of a path's 'd' attribute.
- Version:
- $Id: AWTPathProducer.java,v 1.7 2004/08/18 07:14:45 vhardy Exp $
| Field Summary | |
protected float |
currentX
The current x position. |
protected float |
currentY
The current y position. |
protected org.apache.batik.ext.awt.geom.ExtendedGeneralPath |
path
The temporary value of extendedGeneralPath. |
protected int |
windingRule
The winding rule to use to construct the path. |
protected float |
xCenter
The reference x point for smooth arcs. |
protected float |
yCenter
The reference y point for smooth arcs. |
| Constructor Summary | |
AWTPathProducer()
|
|
| 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) 55 . |
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) 55 . |
void |
closePath()
Implements PathHandler.closePath() 55 . |
static java.awt.Shape |
createShape(java.io.Reader r,
int wr)
Utility method for creating an ExtendedGeneralPath. |
void |
curvetoCubicAbs(float x1,
float y1,
float x2,
float y2,
float x,
float y)
Implements PathHandler.curvetoCubicAbs(float,float,float,float,float,float) 55 . |
void |
curvetoCubicRel(float x1,
float y1,
float x2,
float y2,
float x,
float y)
Implements PathHandler.curvetoCubicRel(float,float,float,float,float,float) 55 . |
void |
curvetoCubicSmoothAbs(float x2,
float y2,
float x,
float y)
Implements PathHandler.curvetoCubicSmoothAbs(float,float,float,float) 55 . |
void |
curvetoCubicSmoothRel(float x2,
float y2,
float x,
float y)
Implements PathHandler.curvetoCubicSmoothRel(float,float,float,float) 55 . |
void |
curvetoQuadraticAbs(float x1,
float y1,
float x,
float y)
Implements PathHandler.curvetoQuadraticAbs(float,float,float,float) 55 . |
void |
curvetoQuadraticRel(float x1,
float y1,
float x,
float y)
Implements PathHandler.curvetoQuadraticRel(float,float,float,float) 55 . |
void |
curvetoQuadraticSmoothAbs(float x,
float y)
Implements PathHandler.curvetoQuadraticSmoothAbs(float,float) 55 . |
void |
curvetoQuadraticSmoothRel(float x,
float y)
Implements PathHandler.curvetoQuadraticSmoothRel(float,float) 55 . |
void |
endPath()
Implements PathHandler.endPath() 55 . |
java.awt.Shape |
getShape()
Returns the Shape object initialized during the last parsing. |
int |
getWindingRule()
Returns the current winding rule. |
void |
linetoAbs(float x,
float y)
Implements PathHandler.linetoAbs(float,float) 55 . |
void |
linetoHorizontalAbs(float x)
Implements PathHandler.linetoHorizontalAbs(float) 55 . |
void |
linetoHorizontalRel(float x)
Implements PathHandler.linetoHorizontalRel(float) 55 . |
void |
linetoRel(float x,
float y)
Implements PathHandler.linetoRel(float,float) 55 . |
void |
linetoVerticalAbs(float y)
Implements PathHandler.linetoVerticalAbs(float) 55 . |
void |
linetoVerticalRel(float y)
Implements PathHandler.linetoVerticalRel(float) 55 . |
void |
movetoAbs(float x,
float y)
Implements PathHandler.movetoAbs(float,float) 55 . |
void |
movetoRel(float x,
float y)
Implements PathHandler.movetoRel(float,float) 55 . |
void |
setWindingRule(int i)
Sets the winding rule used to construct the path. |
void |
startPath()
Implements PathHandler.startPath() 55 . |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
path
protected org.apache.batik.ext.awt.geom.ExtendedGeneralPath path
- The temporary value of extendedGeneralPath.
currentX
protected float currentX
- The current x position.
currentY
protected float currentY
- The current y position.
xCenter
protected float xCenter
- The reference x point for smooth arcs.
yCenter
protected float yCenter
- The reference y point for smooth arcs.
windingRule
protected int windingRule
- The winding rule to use to construct the path.
| Constructor Detail |
AWTPathProducer
public AWTPathProducer()
| Method Detail |
createShape
public static java.awt.Shape createShape(java.io.Reader r, int wr) throws java.io.IOException, ParseException
- Utility method for creating an ExtendedGeneralPath.
setWindingRule
public void setWindingRule(int i)
- Sets the winding rule used to construct the path.
- Specified by:
setWindingRulein interfaceShapeProducer
getWindingRule
public int getWindingRule()
- Returns the current winding rule.
- Specified by:
getWindingRulein interfaceShapeProducer
getShape
public java.awt.Shape getShape()
- Returns the Shape object initialized during the last parsing.
- Specified by:
getShapein interfaceShapeProducer
startPath
public void startPath()
throws ParseException
- Implements
PathHandler.startPath()55 .- Specified by:
startPathin interfacePathHandler
endPath
public void endPath()
throws ParseException
- Implements
PathHandler.endPath()55 .- Specified by:
endPathin interfacePathHandler
movetoRel
public void movetoRel(float x,
float y)
throws ParseException
- Implements
PathHandler.movetoRel(float,float)55 .- Specified by:
movetoRelin interfacePathHandler
movetoAbs
public void movetoAbs(float x,
float y)
throws ParseException
- Implements
PathHandler.movetoAbs(float,float)55 .- Specified by:
movetoAbsin interfacePathHandler
closePath
public void closePath()
throws ParseException
- Implements
PathHandler.closePath()55 .- Specified by:
closePathin interfacePathHandler
linetoRel
public void linetoRel(float x,
float y)
throws ParseException
- Implements
PathHandler.linetoRel(float,float)55 .- Specified by:
linetoRelin interfacePathHandler
linetoAbs
public void linetoAbs(float x,
float y)
throws ParseException
- Implements
PathHandler.linetoAbs(float,float)55 .- Specified by:
linetoAbsin interfacePathHandler
linetoHorizontalRel
public void linetoHorizontalRel(float x)
throws ParseException
- Implements
PathHandler.linetoHorizontalRel(float)55 .- Specified by:
linetoHorizontalRelin interfacePathHandler
linetoHorizontalAbs
public void linetoHorizontalAbs(float x)
throws ParseException
- Implements
PathHandler.linetoHorizontalAbs(float)55 .- Specified by:
linetoHorizontalAbsin interfacePathHandler
linetoVerticalRel
public void linetoVerticalRel(float y)
throws ParseException
- Implements
PathHandler.linetoVerticalRel(float)55 .- Specified by:
linetoVerticalRelin interfacePathHandler
linetoVerticalAbs
public void linetoVerticalAbs(float y)
throws ParseException
- Implements
PathHandler.linetoVerticalAbs(float)55 .- Specified by:
linetoVerticalAbsin interfacePathHandler
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)55 .- Specified by:
curvetoCubicRelin interfacePathHandler
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)55 .- Specified by:
curvetoCubicAbsin interfacePathHandler
curvetoCubicSmoothRel
public void curvetoCubicSmoothRel(float x2,
float y2,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoCubicSmoothRel(float,float,float,float)55 .- Specified by:
curvetoCubicSmoothRelin interfacePathHandler
curvetoCubicSmoothAbs
public void curvetoCubicSmoothAbs(float x2,
float y2,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoCubicSmoothAbs(float,float,float,float)55 .- Specified by:
curvetoCubicSmoothAbsin interfacePathHandler
curvetoQuadraticRel
public void curvetoQuadraticRel(float x1,
float y1,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoQuadraticRel(float,float,float,float)55 .- Specified by:
curvetoQuadraticRelin interfacePathHandler
curvetoQuadraticAbs
public void curvetoQuadraticAbs(float x1,
float y1,
float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoQuadraticAbs(float,float,float,float)55 .- Specified by:
curvetoQuadraticAbsin interfacePathHandler
curvetoQuadraticSmoothRel
public void curvetoQuadraticSmoothRel(float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoQuadraticSmoothRel(float,float)55 .- Specified by:
curvetoQuadraticSmoothRelin interfacePathHandler
curvetoQuadraticSmoothAbs
public void curvetoQuadraticSmoothAbs(float x,
float y)
throws ParseException
- Implements
PathHandler.curvetoQuadraticSmoothAbs(float,float)55 .- Specified by:
curvetoQuadraticSmoothAbsin interfacePathHandler
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)55 .- Specified by:
arcRelin interfacePathHandler
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)55 .- Specified by:
arcAbsin interfacePathHandler
|
|||||||||
| Home >> All >> org >> apache >> batik >> [ parser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.batik.parser.AWTPathProducer