swingwt.awt.geom
Class GeneralPath
java.lang.Object
swingwt.awt.geom.GeneralPath
- All Implemented Interfaces:
- java.lang.Cloneable, Shape
- public final class GeneralPath
- extends java.lang.Object
- implements Shape, java.lang.Cloneable
Method Summary |
void |
append(PathIterator pi,
boolean connect)
|
void |
append(Shape s,
boolean connect)
|
java.lang.Object |
clone()
|
void |
closePath()
|
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double w,
double h)
|
boolean |
contains(Point2D p)
|
boolean |
contains(Rectangle2D r)
|
Shape |
createTransformedShape(AffineTransform at)
|
void |
curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
|
Rectangle |
getBounds()
|
Rectangle2D |
getBounds2D()
|
PathIterator |
getPathIterator(AffineTransform at)
|
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
|
int |
getWindingRule()
|
boolean |
intersects(double x,
double y,
double w,
double h)
|
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 at)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 s)
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 s,
boolean connect)
append
public void append(PathIterator pi,
boolean connect)
getWindingRule
public int getWindingRule()
setWindingRule
public void setWindingRule(int rule)
reset
public void reset()
transform
public void transform(AffineTransform at)
createTransformedShape
public Shape createTransformedShape(AffineTransform at)
getBounds
public Rectangle getBounds()
- Specified by:
getBounds
in interface Shape
getBounds2D
public Rectangle2D getBounds2D()
- Specified by:
getBounds2D
in interface Shape
contains
public boolean contains(double x,
double y)
- Specified by:
contains
in interface Shape
contains
public boolean contains(Point2D p)
- Specified by:
contains
in interface Shape
contains
public boolean contains(double x,
double y,
double w,
double h)
- Specified by:
contains
in interface Shape
contains
public boolean contains(Rectangle2D r)
- Specified by:
contains
in interface Shape
intersects
public boolean intersects(double x,
double y,
double w,
double h)
- Specified by:
intersects
in interface Shape
intersects
public boolean intersects(Rectangle2D r)
- Specified by:
intersects
in interface Shape
getPathIterator
public PathIterator getPathIterator(AffineTransform at)
- Specified by:
getPathIterator
in interface Shape
getPathIterator
public PathIterator getPathIterator(AffineTransform at,
double flatness)
- Specified by:
getPathIterator
in interface Shape
clone
public java.lang.Object clone()