org.geotools.geometry.iso.complex
Class CompositePointImpl

java.lang.Object
  extended by org.geotools.geometry.iso.root.GeometryImpl
      extended by org.geotools.geometry.iso.complex.ComplexImpl
          extended by org.geotools.geometry.iso.complex.CompositeImpl<PointImpl>
              extended by org.geotools.geometry.iso.complex.CompositePointImpl
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.complex.Complex, org.opengis.geometry.complex.Composite, org.opengis.geometry.complex.CompositePoint, org.opengis.geometry.Geometry, org.opengis.geometry.TransfiniteSet

public class CompositePointImpl
extends CompositeImpl<PointImpl>
implements org.opengis.geometry.complex.CompositePoint

A separate class for composite point, CompositePoint (Figure 27) is included for completeness. It is a Complex containing one and only one Point.

Author:
Jackson Roehrig & Sanjay Jena
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.geometry.iso.complex.ComplexImpl
elements
 
Fields inherited from class org.geotools.geometry.iso.root.GeometryImpl
crs, percision
 
Constructor Summary
CompositePointImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs, PointImpl generator)
          The association role Composition::generator associates this Composite Point to the single primitive in this complex.
CompositePointImpl(PointImpl generator)
           
 
Method Summary
 CompositePointImpl clone()
           
 java.util.Set<org.opengis.geometry.complex.Complex> createBoundary()
           
 org.opengis.geometry.Boundary getBoundary()
           
 int getDimension(org.opengis.geometry.DirectPosition point)
           
 org.opengis.geometry.Envelope getEnvelope()
           
 java.lang.Class getGeneratorClass()
           
 java.util.List getGenerators()
           
 org.opengis.geometry.DirectPosition getRepresentativePoint()
           
 boolean isCycle()
           
 boolean isSimple()
           
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.geometry.iso.complex.ComplexImpl
addSubComplex, addSuperComplex, getElements, getMaximalComplex, getSubComplexes, getSuperComplexes, isMaximal, setElements
 
Methods inherited from class org.geotools.geometry.iso.root.GeometryImpl
castToGeometryImpl, castToGeometryImpl, contains, contains, cRelate, crosses, difference, disjoint, distance, equals, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDistance, getMbRegion, getPositionFactory, getPrecision, intersection, intersects, isMutable, overlaps, relate, symmetricDifference, toImmutable, touches, transform, transform, union, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.complex.Complex
getElements, getSubComplexes, getSuperComplexes, isMaximal
 
Methods inherited from interface org.opengis.geometry.Geometry
distance, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getMaximalComplex, getMbRegion, getPrecision, isMutable, toImmutable, transform, transform
 
Methods inherited from interface org.opengis.geometry.TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
 

Constructor Detail

CompositePointImpl

public CompositePointImpl(PointImpl generator)

CompositePointImpl

public CompositePointImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
                          PointImpl generator)
The association role Composition::generator associates this Composite Point to the single primitive in this complex. CompositePoint::generator [1] : Point The generator is realised by the element ArrayList of the super class Complex and will be passed through the super constructor

Parameters:
crs -
generator -
Method Detail

clone

public CompositePointImpl clone()
                         throws java.lang.CloneNotSupportedException
Specified by:
clone in interface org.opengis.geometry.Geometry
Specified by:
clone in class GeometryImpl
Throws:
java.lang.CloneNotSupportedException

createBoundary

public java.util.Set<org.opengis.geometry.complex.Complex> createBoundary()
Specified by:
createBoundary in class ComplexImpl
Returns:
Set

getGeneratorClass

public java.lang.Class getGeneratorClass()
Specified by:
getGeneratorClass in class CompositeImpl<PointImpl>
Returns:
the class

isSimple

public boolean isSimple()
Specified by:
isSimple in interface org.opengis.geometry.Geometry

isCycle

public boolean isCycle()
Specified by:
isCycle in interface org.opengis.geometry.Geometry
Overrides:
isCycle in class GeometryImpl

getGenerators

public java.util.List getGenerators()
Specified by:
getGenerators in interface org.opengis.geometry.complex.Composite
Specified by:
getGenerators in interface org.opengis.geometry.complex.CompositePoint

getBoundary

public org.opengis.geometry.Boundary getBoundary()
Specified by:
getBoundary in interface org.opengis.geometry.Geometry
Specified by:
getBoundary in class GeometryImpl

getDimension

public int getDimension(org.opengis.geometry.DirectPosition point)
Specified by:
getDimension in interface org.opengis.geometry.Geometry
Specified by:
getDimension in class GeometryImpl

getEnvelope

public org.opengis.geometry.Envelope getEnvelope()
Specified by:
getEnvelope in interface org.opengis.geometry.Geometry
Specified by:
getEnvelope in class GeometryImpl

getRepresentativePoint

public org.opengis.geometry.DirectPosition getRepresentativePoint()
Specified by:
getRepresentativePoint in interface org.opengis.geometry.Geometry
Specified by:
getRepresentativePoint in class GeometryImpl

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.