com.nwoods.jgo
Class GeneralPath
java.lang.Object
com.nwoods.jgo.GeneralPath
- public class GeneralPath
- extends java.lang.Object
This exists for compatibility with java.awt.geom.GeneralPath.
Method Summary |
void |
addArc(float x,
float y,
float w,
float h,
double start,
double extent,
boolean connect)
|
void |
addEllipse(float x,
float y,
float w,
float h,
boolean connect)
|
void |
closePath()
|
boolean |
contains(float x,
float y)
|
void |
curveTo(float c1x,
float c1y,
float c2x,
float c2y,
float ex,
float ey)
|
org.eclipse.swt.graphics.Rectangle |
getBounds()
|
Point2D.Float |
getCurrentPoint()
|
int |
getWindingRule()
|
void |
lineTo(float x,
float y)
|
void |
moveTo(float x,
float y)
|
void |
quadTo(float x1,
float y1,
float x2,
float y2)
|
void |
reset()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WIND_NON_ZERO
public static final int WIND_NON_ZERO
- See Also:
- Constant Field Values
GeneralPath
public GeneralPath()
GeneralPath
public GeneralPath(int windingrule)
GeneralPath
public GeneralPath(int windingrule,
int npoints)
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 c1x,
float c1y,
float c2x,
float c2y,
float ex,
float ey)
closePath
public void closePath()
addEllipse
public void addEllipse(float x,
float y,
float w,
float h,
boolean connect)
addArc
public void addArc(float x,
float y,
float w,
float h,
double start,
double extent,
boolean connect)
getWindingRule
public int getWindingRule()
getCurrentPoint
public Point2D.Float getCurrentPoint()
reset
public void reset()
getBounds
public org.eclipse.swt.graphics.Rectangle getBounds()
contains
public boolean contains(float x,
float y)