org.gvsig.fmap.geom.primitive.impl
Class Curve2D
java.lang.Object
org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D
org.gvsig.fmap.geom.primitive.impl.OrientableCurve2D
org.gvsig.fmap.geom.primitive.impl.DefaultCurve
org.gvsig.fmap.geom.primitive.impl.Curve2D
- All Implemented Interfaces:
- Shape, Serializable, Comparable, Geometry, Curve, FShape, OrientableCurve, OrientablePrimitive, Primitive
- Direct Known Subclasses:
- Arc2D, Curve2DZ, EllipticArc2D, Spline2D
public class Curve2D
- extends DefaultCurve
- implements Curve
DOCUMENT ME!
- Author:
- Fernando Gonz�lez Cort�s
- See Also:
- Serialized Form
| Fields inherited from interface org.gvsig.fmap.geom.Geometry |
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W |
|
Method Summary |
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one. |
int |
getShapeType()
Gets the geometry type of this shape. |
void |
setPoints(Point startPoint,
Point endPoint)
Sets the initial point and the end point of the curve. |
| Methods inherited from class org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D |
addMoveToVertex, addVertex, closePrimitive, contains, contains, contains, contains, getBounds, getBounds2D, getCoordinateAt, getDimension, getEnvelope, getGeneralPath, getGeneralPathX, getNumVertices, getPathIterator, getPathIterator, getSelectHandlers, getShape, getShape, getStretchingHandlers, getVertex, insertVertex, intersects, intersects, removeVertex, reProject, setCoordinateAt, setGeneralPath, setVertex, transform |
| Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
area, buffer, centroid, cloneGeometry, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInteriorPoint, getInternalShape, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isSimple, isWithinDistance, move, overlaps, perimeter, rotate, scale, snapTo, toString, touches, transform, union, within |
| Methods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive |
addMoveToVertex, addVertex, closePrimitive, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertex |
| Methods inherited from interface org.gvsig.fmap.geom.Geometry |
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, intersects, invokeOperation, invokeOperation, isSimple, isWithinDistance, move, overlaps, perimeter, reProject, rotate, scale, snapTo, touches, transform, union, within |
Curve2D
public Curve2D(GeometryType geomType)
- The constructor with the GeometryType like and argument
is used by the
GeometryType#create()
to create the geometry
- Parameters:
type - The geometry type
Curve2D
public Curve2D(GeometryType geomType,
String id,
org.cresques.cts.IProjection projection,
GeneralPathX gpx)
- Constructor used in the
Geometry.cloneGeometry() method.
- Parameters:
geomType - id - projection - gpx -
getShapeType
public int getShapeType()
- Description copied from interface:
FShape
- Gets the geometry type of this shape.
- Specified by:
getShapeType in interface FShape- Overrides:
getShapeType in class AbstractPrimitive
- Returns:
- int the geometry type of this shape.
cloneFShape
public FShape cloneFShape()
- Description copied from interface:
FShape
- Creates and returns a shape equal and independent of this one.
- Specified by:
cloneFShape in interface FShape
- Returns:
- the new shape.
setPoints
public void setPoints(Point startPoint,
Point endPoint)
- Description copied from interface:
Curve
- Sets the initial point and the end point of the curve. On this case,
the curve is a single line
- Specified by:
setPoints in interface Curve- Overrides:
setPoints in class OrientablePrimitive2D
- Parameters:
startPoint - The initial pointendPoint - The end point
Copyright © 2004-2013 gvSIG. All Rights Reserved.