Package org.gvsig.fmap.geom.primitive
Class GeneralPathX
java.lang.Object
org.gvsig.fmap.geom.primitive.GeneralPathX
- All Implemented Interfaces:
Shape,Serializable,Cloneable,IGeneralPathX
This class is deprecated.
Use the API of Geometry to manipulate the geometry,
- See Also:
-
Field Summary
FieldsFields inherited from interface org.gvsig.fmap.geom.primitive.IGeneralPathX
curvesize, SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeneralPathX(boolean nouse) GeneralPathX(int rule) GeneralPathX(int rule, int initialCapacity) GeneralPathX(PathIterator pathIterator) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSegment(Point[] segment) voidappend(PathIterator pi, boolean connect) voidappend(GeneralPathX gp) clone()voidbooleancontains(double x, double y) booleancontains(double x, double y, double w, double h) booleanbooleanvoidcurveTo(double x1, double y1, double x2, double y2, double x3, double y3) voidvoidflip()double[]get3DCoordinatesAt(int index) double[]getCoordinatesAt(int index) intintgetPathIterator(AffineTransform at, double flatness) getPointAt(int index) double[]byte[]bytegetTypeAt(int index) intbooleanintersects(double x, double y, double w, double h) booleanbooleanisCCW()booleanisClosed()booleanisSimple()voidlineTo(double x, double y) voidvoidmoveTo(double x, double y) voidvoidquadTo(double x1, double y1, double x2, double y2) voidvoidreProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) voidreset()intsetNumCoords(int numCoords) voidsetNumTypes(int numTypes) voidsetPointCoords(double[] pointCoords) voidsetPointTypes(byte[] pointTypes) voidsetWindingRule(int rule) void
-
Field Details
-
INIT_SIZE
protected static final int INIT_SIZE- See Also:
-
-
Constructor Details
-
GeneralPathX
protected GeneralPathX(boolean nouse) -
GeneralPathX
public GeneralPathX() -
GeneralPathX
public GeneralPathX(int rule) -
GeneralPathX
public GeneralPathX(int rule, int initialCapacity) -
GeneralPathX
-
-
Method Details
-
moveTo
public void moveTo(double x, double y) - Specified by:
moveToin interfaceIGeneralPathX
-
moveTo
- Specified by:
moveToin interfaceIGeneralPathX
-
lineTo
public void lineTo(double x, double y) - Specified by:
lineToin interfaceIGeneralPathX
-
lineTo
- Specified by:
lineToin interfaceIGeneralPathX
-
addSegment
- Specified by:
addSegmentin interfaceIGeneralPathX
-
quadTo
public void quadTo(double x1, double y1, double x2, double y2) - Specified by:
quadToin interfaceIGeneralPathX
-
quadTo
- Specified by:
quadToin interfaceIGeneralPathX
-
curveTo
public void curveTo(double x1, double y1, double x2, double y2, double x3, double y3) - Specified by:
curveToin interfaceIGeneralPathX
-
curveTo
- Specified by:
curveToin interfaceIGeneralPathX
-
closePath
public void closePath()- Specified by:
closePathin interfaceIGeneralPathX
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceIGeneralPathX
-
append
- Specified by:
appendin interfaceIGeneralPathX
-
append
- Specified by:
appendin interfaceIGeneralPathX
-
setWindingRule
public void setWindingRule(int rule) - Specified by:
setWindingRulein interfaceIGeneralPathX
-
reset
public void reset()- Specified by:
resetin interfaceIGeneralPathX
-
transform
- Specified by:
transformin interfaceIGeneralPathX
-
reProject
public void reProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct) - Specified by:
reProjectin interfaceIGeneralPathX
-
setNumTypes
public void setNumTypes(int numTypes) - Specified by:
setNumTypesin interfaceIGeneralPathX
-
setPointTypes
public void setPointTypes(byte[] pointTypes) - Specified by:
setPointTypesin interfaceIGeneralPathX
-
setPointCoords
public void setPointCoords(double[] pointCoords) - Specified by:
setPointCoordsin interfaceIGeneralPathX
-
flip
public void flip()- Specified by:
flipin interfaceIGeneralPathX
-
getCurrentPoint
- Specified by:
getCurrentPointin interfaceIGeneralPathX
-
getWindingRule
public int getWindingRule()- Specified by:
getWindingRulein interfaceIGeneralPathX
-
createTransformedShape
- Specified by:
createTransformedShapein interfaceIGeneralPathX
-
getBounds
- Specified by:
getBoundsin interfaceIGeneralPathX- Specified by:
getBoundsin interfaceShape
-
getBounds2D
- Specified by:
getBounds2Din interfaceIGeneralPathX- Specified by:
getBounds2Din interfaceShape
-
contains
public boolean contains(double x, double y) - Specified by:
containsin interfaceIGeneralPathX- Specified by:
containsin interfaceShape
-
contains
- Specified by:
containsin interfaceIGeneralPathX- Specified by:
containsin interfaceShape
-
contains
public boolean contains(double x, double y, double w, double h) - Specified by:
containsin interfaceIGeneralPathX- Specified by:
containsin interfaceShape
-
contains
- Specified by:
containsin interfaceIGeneralPathX- Specified by:
containsin interfaceShape
-
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersectsin interfaceIGeneralPathX- Specified by:
intersectsin interfaceShape
-
intersects
- Specified by:
intersectsin interfaceIGeneralPathX- Specified by:
intersectsin interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceIGeneralPathX- Specified by:
getPathIteratorin interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceIGeneralPathX- Specified by:
getPathIteratorin interfaceShape
-
clone
- Specified by:
clonein interfaceIGeneralPathX- Overrides:
clonein classObject
-
getNumTypes
public int getNumTypes()- Specified by:
getNumTypesin interfaceIGeneralPathX
-
setNumCoords
public int setNumCoords(int numCoords) - Specified by:
setNumCoordsin interfaceIGeneralPathX
-
getNumCoords
public int getNumCoords()- Specified by:
getNumCoordsin interfaceIGeneralPathX
-
getTypeAt
public byte getTypeAt(int index) - Specified by:
getTypeAtin interfaceIGeneralPathX
-
getPointTypes
public byte[] getPointTypes()- Specified by:
getPointTypesin interfaceIGeneralPathX
-
getPointCoords
public double[] getPointCoords()- Specified by:
getPointCoordsin interfaceIGeneralPathX
-
getPointAt
- Specified by:
getPointAtin interfaceIGeneralPathX
-
getCoordinatesAt
public double[] getCoordinatesAt(int index) - Specified by:
getCoordinatesAtin interfaceIGeneralPathX
-
get3DCoordinatesAt
public double[] get3DCoordinatesAt(int index) - Specified by:
get3DCoordinatesAtin interfaceIGeneralPathX
-
isCCW
public boolean isCCW()- Specified by:
isCCWin interfaceIGeneralPathX
-
isSimple
public boolean isSimple()- Specified by:
isSimplein interfaceIGeneralPathX
-