org.gvsig.fmap.geom.primitive.impl
Class Curve2D

java.lang.Object
  extended by org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
      extended by org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D
          extended by org.gvsig.fmap.geom.primitive.impl.OrientableCurve2D
              extended by org.gvsig.fmap.geom.primitive.impl.DefaultCurve
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES
 
Field Summary
 
Fields inherited from class org.gvsig.fmap.geom.primitive.impl.OrientablePrimitive2D
gp
 
Fields inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
geometryType, geomManager, id, projection
 
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
 
Constructor Summary
Curve2D(GeometryType geomType)
          The constructor with the GeometryType like and argument is used by the GeometryType#create() to create the geometry
Curve2D(GeometryType geomType, String id, org.cresques.cts.IProjection projection, GeneralPathX gpx)
          Constructor used in the Geometry.cloneGeometry() method.
 
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, addVertexes, closePrimitive, contains, contains, contains, contains, getBounds, getBounds2D, getCoordinateAt, getDimension, getEnvelope, getGeneralPath, getGeneralPathX, getNumVertices, getPathIterator, getPathIterator, getSelectHandlers, 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, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, fastIntersects, getGeometryType, getHandlers, getId, getInternalShape, getShape, getShape, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isSimple, moveGeom, overlaps, perimeter, rotateGeom, scaleGeom, toString, touches, transform, union, within
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive
addMoveToVertex, addVertex, addVertexes, closePrimitive, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertex
 
Methods inherited from interface org.gvsig.fmap.geom.Geometry
area, buffer, centroid, cloneGeometry, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, intersection, intersects, intersects, invokeOperation, invokeOperation, isSimple, overlaps, perimeter, reProject, touches, transform, union, within
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersects
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

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 -
Method Detail

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 point
endPoint - The end point


Copyright © 2004-2012 gvSIG. All Rights Reserved.