public class GeneralPathX extends java.lang.Object implements java.awt.Shape, java.lang.Cloneable, java.io.Serializable, IGeneralPathX
Modifier and Type | Field and Description |
---|---|
protected static int |
INIT_SIZE
Deprecated.
|
curvesize, SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
Modifier | Constructor and Description |
---|---|
|
GeneralPathX()
Deprecated.
to create a GeneralPathX use GeometryManager.createGeneralPath
|
protected |
GeneralPathX(boolean nouse)
Deprecated.
|
|
GeneralPathX(int rule)
Deprecated.
to create a GeneralPathX use GeometryManager.createGeneralPath
|
|
GeneralPathX(int rule,
int initialCapacity)
Deprecated.
to create a GeneralPathX use GeometryManager.createGeneralPath
|
|
GeneralPathX(java.awt.geom.PathIterator pathIterator)
Deprecated.
to create a GeneralPathX use GeometryManager.createGeneralPath
|
Modifier and Type | Method and Description |
---|---|
void |
addSegment(Point[] segment)
Deprecated.
|
void |
append(GeneralPathX gp)
Deprecated.
|
void |
append(java.awt.geom.PathIterator pi,
boolean connect)
Deprecated.
|
java.lang.Object |
clone()
Deprecated.
|
void |
closePath()
Deprecated.
|
boolean |
contains(double x,
double y)
Deprecated.
|
boolean |
contains(double x,
double y,
double w,
double h)
Deprecated.
|
boolean |
contains(java.awt.geom.Point2D p)
Deprecated.
|
boolean |
contains(java.awt.geom.Rectangle2D r)
Deprecated.
|
java.awt.Shape |
createTransformedShape(java.awt.geom.AffineTransform at)
Deprecated.
|
void |
curveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Deprecated.
|
void |
curveTo(Point point1,
Point point2,
Point point3)
Deprecated.
|
void |
flip()
Deprecated.
|
double[] |
get3DCoordinatesAt(int index)
Deprecated.
|
java.awt.Rectangle |
getBounds()
Deprecated.
|
java.awt.geom.Rectangle2D |
getBounds2D()
Deprecated.
|
double[] |
getCoordinatesAt(int index)
Deprecated.
|
java.awt.geom.Point2D |
getCurrentPoint()
Deprecated.
|
int |
getNumCoords()
Deprecated.
|
int |
getNumTypes()
Deprecated.
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
Deprecated.
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
Deprecated.
|
Point |
getPointAt(int index)
Deprecated.
|
double[] |
getPointCoords()
Deprecated.
|
byte[] |
getPointTypes()
Deprecated.
|
byte |
getTypeAt(int index)
Deprecated.
|
int |
getWindingRule()
Deprecated.
|
boolean |
intersects(double x,
double y,
double w,
double h)
Deprecated.
|
boolean |
intersects(java.awt.geom.Rectangle2D r)
Deprecated.
|
boolean |
isCCW()
Deprecated.
|
boolean |
isClosed()
Deprecated.
|
boolean |
isSimple()
Deprecated.
|
void |
lineTo(double x,
double y)
Deprecated.
|
void |
lineTo(Point point)
Deprecated.
|
void |
moveTo(double x,
double y)
Deprecated.
|
void |
moveTo(Point point)
Deprecated.
|
void |
quadTo(double x1,
double y1,
double x2,
double y2)
Deprecated.
|
void |
quadTo(Point point1,
Point point2)
Deprecated.
|
void |
reProject(ICoordTrans ct)
Deprecated.
|
void |
reset()
Deprecated.
|
int |
setNumCoords(int numCoords)
Deprecated.
|
void |
setNumTypes(int numTypes)
Deprecated.
|
void |
setPointCoords(double[] pointCoords)
Deprecated.
|
void |
setPointTypes(byte[] pointTypes)
Deprecated.
|
void |
setWindingRule(int rule)
Deprecated.
|
void |
transform(java.awt.geom.AffineTransform at)
Deprecated.
|
protected static final int INIT_SIZE
protected GeneralPathX(boolean nouse)
public GeneralPathX()
public GeneralPathX(int rule)
public GeneralPathX(int rule, int initialCapacity)
public GeneralPathX(java.awt.geom.PathIterator pathIterator)
public void moveTo(double x, double y)
moveTo
in interface IGeneralPathX
public void moveTo(Point point)
moveTo
in interface IGeneralPathX
public void lineTo(double x, double y)
lineTo
in interface IGeneralPathX
public void lineTo(Point point)
lineTo
in interface IGeneralPathX
public void addSegment(Point[] segment)
addSegment
in interface IGeneralPathX
public void quadTo(double x1, double y1, double x2, double y2)
quadTo
in interface IGeneralPathX
public void quadTo(Point point1, Point point2)
quadTo
in interface IGeneralPathX
public void curveTo(double x1, double y1, double x2, double y2, double x3, double y3)
curveTo
in interface IGeneralPathX
public void curveTo(Point point1, Point point2, Point point3)
curveTo
in interface IGeneralPathX
public void closePath()
closePath
in interface IGeneralPathX
public boolean isClosed()
isClosed
in interface IGeneralPathX
public void append(java.awt.geom.PathIterator pi, boolean connect)
append
in interface IGeneralPathX
public void append(GeneralPathX gp)
append
in interface IGeneralPathX
public void setWindingRule(int rule)
setWindingRule
in interface IGeneralPathX
public void reset()
reset
in interface IGeneralPathX
public void transform(java.awt.geom.AffineTransform at)
transform
in interface IGeneralPathX
public void reProject(ICoordTrans ct)
reProject
in interface IGeneralPathX
public void setNumTypes(int numTypes)
setNumTypes
in interface IGeneralPathX
public void setPointTypes(byte[] pointTypes)
setPointTypes
in interface IGeneralPathX
public void setPointCoords(double[] pointCoords)
setPointCoords
in interface IGeneralPathX
public void flip()
flip
in interface IGeneralPathX
public java.awt.geom.Point2D getCurrentPoint()
getCurrentPoint
in interface IGeneralPathX
public int getWindingRule()
getWindingRule
in interface IGeneralPathX
public java.awt.Shape createTransformedShape(java.awt.geom.AffineTransform at)
createTransformedShape
in interface IGeneralPathX
public java.awt.Rectangle getBounds()
getBounds
in interface java.awt.Shape
getBounds
in interface IGeneralPathX
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface java.awt.Shape
getBounds2D
in interface IGeneralPathX
public boolean contains(double x, double y)
contains
in interface java.awt.Shape
contains
in interface IGeneralPathX
public boolean contains(java.awt.geom.Point2D p)
contains
in interface java.awt.Shape
contains
in interface IGeneralPathX
public boolean contains(double x, double y, double w, double h)
contains
in interface java.awt.Shape
contains
in interface IGeneralPathX
public boolean contains(java.awt.geom.Rectangle2D r)
contains
in interface java.awt.Shape
contains
in interface IGeneralPathX
public boolean intersects(double x, double y, double w, double h)
intersects
in interface java.awt.Shape
intersects
in interface IGeneralPathX
public boolean intersects(java.awt.geom.Rectangle2D r)
intersects
in interface java.awt.Shape
intersects
in interface IGeneralPathX
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
getPathIterator
in interface java.awt.Shape
getPathIterator
in interface IGeneralPathX
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)
getPathIterator
in interface java.awt.Shape
getPathIterator
in interface IGeneralPathX
public java.lang.Object clone()
clone
in interface IGeneralPathX
clone
in class java.lang.Object
public int getNumTypes()
getNumTypes
in interface IGeneralPathX
public int setNumCoords(int numCoords)
setNumCoords
in interface IGeneralPathX
public int getNumCoords()
getNumCoords
in interface IGeneralPathX
public byte getTypeAt(int index)
getTypeAt
in interface IGeneralPathX
public byte[] getPointTypes()
getPointTypes
in interface IGeneralPathX
public double[] getPointCoords()
getPointCoords
in interface IGeneralPathX
public Point getPointAt(int index)
getPointAt
in interface IGeneralPathX
public double[] getCoordinatesAt(int index)
getCoordinatesAt
in interface IGeneralPathX
public double[] get3DCoordinatesAt(int index)
get3DCoordinatesAt
in interface IGeneralPathX
public boolean isCCW()
isCCW
in interface IGeneralPathX
public boolean isSimple()
isSimple
in interface IGeneralPathX