com.vividsolutions.jts.geom.prep
Class PreparedPolygon

java.lang.Object
  extended by com.vividsolutions.jts.geom.prep.BasicPreparedGeometry
      extended by com.vividsolutions.jts.geom.prep.PreparedPolygon
All Implemented Interfaces:
PreparedGeometry

public class PreparedPolygon
extends BasicPreparedGeometry

A prepared version for Polygonal geometries.

Author:
mbdavis

Constructor Summary
PreparedPolygon(Polygonal poly)
           
 
Method Summary
 boolean contains(Geometry g)
          Default implementation.
 boolean containsProperly(Geometry g)
          Default implementation.
 boolean covers(Geometry g)
          Default implementation.
 FastSegmentSetIntersectionFinder getIntersectionFinder()
           
 PointOnGeometryLocator getPointLocator()
           
 boolean intersects(Geometry g)
          Default implementation.
 
Methods inherited from class com.vividsolutions.jts.geom.prep.BasicPreparedGeometry
coveredBy, crosses, disjoint, envelopeCovers, envelopesIntersect, getGeometry, getRepresentativePoints, isAnyTargetComponentInTest, overlaps, toString, touches, within
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreparedPolygon

public PreparedPolygon(Polygonal poly)
Method Detail

getIntersectionFinder

public FastSegmentSetIntersectionFinder getIntersectionFinder()

getPointLocator

public PointOnGeometryLocator getPointLocator()

intersects

public boolean intersects(Geometry g)
Description copied from class: BasicPreparedGeometry
Default implementation.

Specified by:
intersects in interface PreparedGeometry
Overrides:
intersects in class BasicPreparedGeometry
Parameters:
g - the Geometry to test
Returns:
true if this Geometry intersects the given Geometry
See Also:
Geometry.intersects(Geometry)

contains

public boolean contains(Geometry g)
Description copied from class: BasicPreparedGeometry
Default implementation.

Specified by:
contains in interface PreparedGeometry
Overrides:
contains in class BasicPreparedGeometry
Parameters:
g - the Geometry to test
Returns:
true if this Geometry contains the given Geometry
See Also:
Geometry.contains(Geometry)

containsProperly

public boolean containsProperly(Geometry g)
Description copied from class: BasicPreparedGeometry
Default implementation.

Specified by:
containsProperly in interface PreparedGeometry
Overrides:
containsProperly in class BasicPreparedGeometry
Parameters:
g - the Geometry to test
Returns:
true if this Geometry properly contains the given Geometry
See Also:
Geometry.contains(com.vividsolutions.jts.geom.Geometry)

covers

public boolean covers(Geometry g)
Description copied from class: BasicPreparedGeometry
Default implementation.

Specified by:
covers in interface PreparedGeometry
Overrides:
covers in class BasicPreparedGeometry
Parameters:
g - the Geometry to test
Returns:
true if this Geometry covers the given Geometry
See Also:
Geometry.covers(Geometry)