org.geotools.geometry.iso.complex
Class CompositePointImpl

Object
  extended by GeometryImpl
      extended by ComplexImpl
          extended by CompositeImpl<PointImpl>
              extended by CompositePointImpl
All Implemented Interfaces:
Serializable, Complex, Composite, CompositePoint, Geometry, TransfiniteSet

public class CompositePointImpl
extends CompositeImpl<PointImpl>
implements 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 ComplexImpl
elements
 
Fields inherited from class GeometryImpl
crs, percision
 
Constructor Summary
CompositePointImpl(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()
           
 Set<Complex> createBoundary()
           
 Boundary getBoundary()
           
 int getDimension(DirectPosition point)
           
 Envelope getEnvelope()
           
 Class getGeneratorClass()
           
 List getGenerators()
           
 DirectPosition getRepresentativePoint()
           
 boolean isCycle()
           
 boolean isSimple()
           
 String toString()
           
 
Methods inherited from class ComplexImpl
addSubComplex, addSuperComplex, getElements, getMaximalComplex, getSubComplexes, getSuperComplexes, isMaximal, setElements
 
Methods inherited from class 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 Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Complex
getElements, getSubComplexes, getSuperComplexes, isMaximal
 
Methods inherited from interface Geometry
distance, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getMaximalComplex, getMbRegion, getPrecision, isMutable, toImmutable, transform, transform
 
Methods inherited from interface TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
 

Constructor Detail

CompositePointImpl

public CompositePointImpl(PointImpl generator)

CompositePointImpl

public CompositePointImpl(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 CloneNotSupportedException
Specified by:
clone in interface Geometry
Specified by:
clone in class GeometryImpl
Throws:
CloneNotSupportedException

createBoundary

public Set<Complex> createBoundary()
Specified by:
createBoundary in class ComplexImpl
Returns:
Set

getGeneratorClass

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

isSimple

public boolean isSimple()
Specified by:
isSimple in interface Geometry

isCycle

public boolean isCycle()
Specified by:
isCycle in interface Geometry
Overrides:
isCycle in class GeometryImpl

getGenerators

public List getGenerators()
Specified by:
getGenerators in interface Composite
Specified by:
getGenerators in interface CompositePoint

getBoundary

public Boundary getBoundary()
Specified by:
getBoundary in interface Geometry
Specified by:
getBoundary in class GeometryImpl

getDimension

public int getDimension(DirectPosition point)
Specified by:
getDimension in interface Geometry
Specified by:
getDimension in class GeometryImpl

getEnvelope

public Envelope getEnvelope()
Specified by:
getEnvelope in interface Geometry
Specified by:
getEnvelope in class GeometryImpl

getRepresentativePoint

public DirectPosition getRepresentativePoint()
Specified by:
getRepresentativePoint in interface Geometry
Specified by:
getRepresentativePoint in class GeometryImpl

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2009 Geotools. All Rights Reserved.