Modifier and Type | Field and Description |
---|---|
static int |
WIND_EVEN_ODD |
static int |
WIND_NON_ZERO |
Constructor and Description |
---|
GeneralPath() |
GeneralPath(int rule) |
GeneralPath(int rule, int initialCapacity) |
GeneralPath(Shape shape) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final int WIND_EVEN_ODD
public static final int WIND_NON_ZERO
public GeneralPath()
public GeneralPath(int rule)
public GeneralPath(int rule, int initialCapacity)
public GeneralPath(Shape shape)
public void setWindingRule(int rule)
public int getWindingRule()
public void moveTo(float x, float y)
public void lineTo(float x, float y)
public void quadTo(float x1, float y1, float x2, float y2)
public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
public void closePath()
public void append(Shape shape, boolean connect)
public void append(PathIterator path, boolean connect)
public Point2D getCurrentPoint()
public void reset()
public void transform(AffineTransform t)
public Shape createTransformedShape(AffineTransform t)
public Rectangle2D getBounds2D()
getBounds2D
in interface Shape
public boolean contains(double rx, double ry, double rw, double rh)
public boolean intersects(double rx, double ry, double rw, double rh)
intersects
in interface Shape
public boolean contains(Rectangle2D r)
public boolean intersects(Rectangle2D r)
intersects
in interface Shape
public PathIterator getPathIterator(AffineTransform t)
getPathIterator
in interface Shape
public PathIterator getPathIterator(AffineTransform t, double flatness)
getPathIterator
in interface Shape
Copyright © 1998–2022. All rights reserved.