org.gvsig.fmap.geom.aggregate.impl
Class MultiSurface2D

java.lang.Object
  extended by org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
      extended by org.gvsig.fmap.geom.aggregate.impl.BaseMultiPrimitive
          extended by org.gvsig.fmap.geom.aggregate.impl.MultiSurface2D
All Implemented Interfaces:
Shape, Serializable, Comparable, Aggregate, MultiPrimitive, MultiSurface, Geometry, FShape, Primitive
Direct Known Subclasses:
MultiSurface3D

public class MultiSurface2D
extends BaseMultiPrimitive
implements MultiSurface

Author:
Jorge Piera LlodrĂ¡ (jorge.piera@iver.es)
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.aggregate.impl.BaseMultiPrimitive
geometries
 
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
MultiSurface2D(GeometryType geomType)
          The constructor with the GeometryType like and argument is used by the GeometryType#create() to create the geometry
 
Method Summary
 void addSurface(Surface surface)
          Adds a new surface to the multi surface
 Geometry cloneGeometry()
          Creates a clone of this geometry.
 Surface getSurfaceAt(int index)
          Gets the surface that is on a concrete position inside the multi surface
 
Methods inherited from class org.gvsig.fmap.geom.aggregate.impl.BaseMultiPrimitive
addPrimitive, cloneFShape, contains, contains, contains, contains, fastIntersects, getBounds, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometries, getHandlers, getInternalShape, getPathIterator, getPathIterator, getPrimitiveAt, getPrimitivesNumber, getSelectHandlers, getStretchingHandlers, intersects, intersects, isSimple, reProject, transform
 
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive
area, buffer, centroid, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, getGeometryType, getId, getShape, getShape, getShapeType, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, 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.aggregate.MultiPrimitive
addPrimitive
 
Methods inherited from interface org.gvsig.fmap.geom.aggregate.Aggregate
getPrimitiveAt, getPrimitivesNumber
 
Methods inherited from interface org.gvsig.fmap.geom.Geometry
area, buffer, centroid, 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

MultiSurface2D

public MultiSurface2D(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
Method Detail

cloneGeometry

public Geometry cloneGeometry()
Description copied from interface: Geometry
Creates a clone of this geometry.

Specified by:
cloneGeometry in interface Geometry
Overrides:
cloneGeometry in class AbstractPrimitive
Returns:
A clone of this geometry.

addSurface

public void addSurface(Surface surface)
Description copied from interface: MultiSurface
Adds a new surface to the multi surface

Specified by:
addSurface in interface MultiSurface
Parameters:
surface - The surface to add

getSurfaceAt

public Surface getSurfaceAt(int index)
Description copied from interface: MultiSurface
Gets the surface that is on a concrete position inside the multi surface

Specified by:
getSurfaceAt in interface MultiSurface
Parameters:
index - The position
Returns:
The selected surface


Copyright © 2004-2012 gvSIG. All Rights Reserved.