com.itextpdf.awt.geom
Class GeneralPath
java.lang.Object
com.itextpdf.awt.geom.GeneralPath
- All Implemented Interfaces:
- Shape, Cloneable
public final class GeneralPath
- extends Object
- implements Shape, Cloneable
Method Summary |
void |
append(PathIterator path,
boolean connect)
|
void |
append(Shape shape,
boolean connect)
|
Object |
clone()
|
void |
closePath()
|
boolean |
contains(double px,
double py)
|
boolean |
contains(double rx,
double ry,
double rw,
double rh)
|
boolean |
contains(Point2D p)
|
boolean |
contains(Rectangle2D r)
|
Shape |
createTransformedShape(AffineTransform t)
|
void |
curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
|
Rectangle |
getBounds()
|
Rectangle2D |
getBounds2D()
|
Point2D |
getCurrentPoint()
|
PathIterator |
getPathIterator(AffineTransform t)
|
PathIterator |
getPathIterator(AffineTransform t,
double flatness)
|
int |
getWindingRule()
|
boolean |
intersects(double rx,
double ry,
double rw,
double rh)
|
boolean |
intersects(Rectangle2D r)
|
void |
lineTo(float x,
float y)
|
void |
moveTo(float x,
float y)
|
void |
quadTo(float x1,
float y1,
float x2,
float y2)
|
void |
reset()
|
void |
setWindingRule(int rule)
|
void |
transform(AffineTransform t)
|
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
GeneralPath
public GeneralPath()
GeneralPath
public GeneralPath(int rule)
GeneralPath
public GeneralPath(int rule,
int initialCapacity)
GeneralPath
public GeneralPath(Shape shape)
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:
getBounds2D
in interface Shape
getBounds
public Rectangle getBounds()
- Specified by:
getBounds
in interface Shape
contains
public boolean contains(double px,
double py)
- Specified by:
contains
in interface Shape
contains
public boolean contains(double rx,
double ry,
double rw,
double rh)
- Specified by:
contains
in interface Shape
intersects
public boolean intersects(double rx,
double ry,
double rw,
double rh)
- Specified by:
intersects
in interface Shape
contains
public boolean contains(Point2D p)
- Specified by:
contains
in interface Shape
contains
public boolean contains(Rectangle2D r)
- Specified by:
contains
in interface Shape
intersects
public boolean intersects(Rectangle2D r)
- Specified by:
intersects
in interface Shape
getPathIterator
public PathIterator getPathIterator(AffineTransform t)
- Specified by:
getPathIterator
in interface Shape
getPathIterator
public PathIterator getPathIterator(AffineTransform t,
double flatness)
- Specified by:
getPathIterator
in interface Shape
clone
public Object clone()
- Overrides:
clone
in class Object
Copyright © 2013. All Rights Reserved.