com.esri.core.geometry
Class OperatorSimpleRelation

java.lang.Object
  extended by com.esri.core.geometry.Operator
      extended by com.esri.core.geometry.OperatorSimpleRelation
Direct Known Subclasses:
OperatorContains, OperatorCrosses, OperatorDisjoint, OperatorEquals, OperatorIntersects, OperatorOverlaps, OperatorTouches, OperatorWithin

public abstract class OperatorSimpleRelation
extends Operator

A base class for simple relation operators.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
 
Constructor Summary
OperatorSimpleRelation()
           
 
Method Summary
 boolean accelerateGeometry(Geometry geometry, SpatialReference spatialReference, Geometry.GeometryAccelerationDegree accelDegree)
          Processes Geometry to accelerate operations on it.
 boolean canAccelerateGeometry(Geometry geometry)
          Returns true if the geometry can be accelerated.
abstract  boolean execute(Geometry inputGeom1, Geometry inputGeom2, SpatialReference sr, ProgressTracker progressTracker)
          Performs the given relation operation between two geometries.
 
Methods inherited from class com.esri.core.geometry.Operator
deaccelerateGeometry, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorSimpleRelation

public OperatorSimpleRelation()
Method Detail

execute

public abstract boolean execute(Geometry inputGeom1,
                                Geometry inputGeom2,
                                SpatialReference sr,
                                ProgressTracker progressTracker)
Performs the given relation operation between two geometries.

Returns:
Returns True if the relation holds, False otherwise.

canAccelerateGeometry

public boolean canAccelerateGeometry(Geometry geometry)
Description copied from class: Operator
Returns true if the geometry can be accelerated.

Overrides:
canAccelerateGeometry in class Operator
Returns:
true for geometries that can be accelerated, false for geometries that cannot

accelerateGeometry

public boolean accelerateGeometry(Geometry geometry,
                                  SpatialReference spatialReference,
                                  Geometry.GeometryAccelerationDegree accelDegree)
Description copied from class: Operator
Processes Geometry to accelerate operations on it. The Geometry and it's copies remain accelerated until modified. The acceleration of Geometry can be a time consuming operation. The accelerated geometry also takes more memory. Some operators share same the same accelerator, some require a different one. If the accelerator is built for the given parameters, the method returns immediately.

Overrides:
accelerateGeometry in class Operator
Parameters:
geometry - The geometry to be accelerated
spatialReference - The spatial reference of that geometry


Copyright © 2013. All Rights Reserved.