Package com.itextpdf.awt.geom
Class GeneralPath
- java.lang.Object
-
- com.itextpdf.awt.geom.GeneralPath
-
-
Field Summary
Fields Modifier and Type Field Description static intWIND_EVEN_ODDstatic intWIND_NON_ZERO
-
Constructor Summary
Constructors Constructor Description GeneralPath()GeneralPath(int rule)GeneralPath(int rule, int initialCapacity)GeneralPath(Shape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(PathIterator path, boolean connect)voidappend(Shape shape, boolean connect)java.lang.Objectclone()voidclosePath()booleancontains(double px, double py)booleancontains(double rx, double ry, double rw, double rh)booleancontains(Point2D p)booleancontains(Rectangle2D r)ShapecreateTransformedShape(AffineTransform t)voidcurveTo(float x1, float y1, float x2, float y2, float x3, float y3)RectanglegetBounds()Rectangle2DgetBounds2D()Point2DgetCurrentPoint()PathIteratorgetPathIterator(AffineTransform t)PathIteratorgetPathIterator(AffineTransform t, double flatness)intgetWindingRule()booleanintersects(double rx, double ry, double rw, double rh)booleanintersects(Rectangle2D r)voidlineTo(float x, float y)voidmoveTo(float x, float y)voidquadTo(float x1, float y1, float x2, float y2)voidreset()voidsetWindingRule(int rule)voidtransform(AffineTransform t)
-
-
-
Field Detail
-
WIND_EVEN_ODD
public static final int WIND_EVEN_ODD
- See Also:
- Constant Field Values
-
WIND_NON_ZERO
public static final int WIND_NON_ZERO
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeneralPath
public GeneralPath()
-
GeneralPath
public GeneralPath(int rule)
-
GeneralPath
public GeneralPath(int rule, int initialCapacity)
-
GeneralPath
public GeneralPath(Shape shape)
-
-
Method Detail
-
setWindingRule
public void setWindingRule(int rule)
-
getWindingRule
public int getWindingRule()
-
moveTo
public void moveTo(float x, float y)
-
lineTo
public void lineTo(float x, float y)
-
quadTo
public void quadTo(float x1, float y1, float x2, float y2)
-
curveTo
public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
-
closePath
public void closePath()
-
append
public void append(Shape shape, boolean connect)
-
append
public void append(PathIterator path, boolean connect)
-
getCurrentPoint
public Point2D getCurrentPoint()
-
reset
public void reset()
-
transform
public void transform(AffineTransform t)
-
createTransformedShape
public Shape createTransformedShape(AffineTransform t)
-
getBounds2D
public Rectangle2D getBounds2D()
- Specified by:
getBounds2Din interfaceShape
-
contains
public boolean contains(double rx, double ry, double rw, double rh)
-
intersects
public boolean intersects(double rx, double ry, double rw, double rh)- Specified by:
intersectsin interfaceShape
-
contains
public boolean contains(Rectangle2D r)
-
intersects
public boolean intersects(Rectangle2D r)
- Specified by:
intersectsin interfaceShape
-
getPathIterator
public PathIterator getPathIterator(AffineTransform t)
- Specified by:
getPathIteratorin interfaceShape
-
getPathIterator
public PathIterator getPathIterator(AffineTransform t, double flatness)
- Specified by:
getPathIteratorin interfaceShape
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-