/*
 Copyright 1995-2013 Esri

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

 For additional information, contact:
 Environmental Systems Research Institute, Inc.
 Attn: Contracts Dept
 380 New York Street
 Redlands, California, USA 92373

 email: contracts@esri.com
 */
package com.esri.core.geometry;

import com.esri.core.geometry.Operator.Type;

/**
 * Generalizes geometries using Douglas-Poiker algorithm.
 */
public abstract class OperatorGeneralize extends Operator {
	@Override
	public Type getType() {
		return Type.Generalize;
	}

	/**
	 * Performs the Generalize operation on the geometry set. Point and
	 * MultiPoint geometries are left unchanged. Envelope is converted to a
	 * Polygon.
	 * 
	 */
	public abstract GeometryCursor execute(GeometryCursor geoms,
			double maxDeviation, boolean bRemoveDegenerateParts,
			ProgressTracker progressTracker);

	/**
	 * Performs the Generalize operation on single geometry. Point and
	 * MultiPoint geometries are left unchanged. Envelope is converted to a
	 * Polygon.
	 */
	public abstract Geometry execute(Geometry geom, double maxDeviation,
			boolean bRemoveDegenerateParts, ProgressTracker progressTracker);

	public static OperatorGeneralize local() {
		return (OperatorGeneralize) OperatorFactoryLocal.getInstance()
				.getOperator(Type.Generalize);
	}

}

@@ -806,54 +806,8 @@
 y;%0A%0A
-import com.esri.core.geometry.Operator.Type;%0A%0A
 /**%0A
@@ -847,18 +847,19 @@
 ouglas-P
-oi
+euc
 ker algo
@@ -929,17 +929,18 @@
 rator %7B%0A
-%09
+  
 @Overrid
@@ -941,17 +941,18 @@
 verride%0A
-%09
+  
 public T
@@ -963,26 +963,28 @@
 getType() %7B%0A
-%09%09
+    
 return Type.
@@ -999,18 +999,21 @@
 ze;%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 /**%0A
-%09
+  
  * P
@@ -1068,33 +1068,34 @@
  set. Point and%0A
-%09
+  
  * MultiPoint ge
@@ -1142,33 +1142,34 @@
  converted to a%0A
-%09
+  
  * Polygon.%0A%09 * 
@@ -1168,19 +1168,22 @@
 on.%0A
-%09
+  
  * %0A
-%09
+  
  */%0A
-%09
+  
 publ
@@ -1239,19 +1239,26 @@
  geoms,%0A
-%09%09%09
+          
 double m
@@ -1302,19 +1302,26 @@
 eParts,%0A
-%09%09%09
+          
 Progress
@@ -1351,14 +1351,16 @@
 );%0A%0A
-%09
+  
 /**%0A
-%09
+  
  * P
@@ -1422,17 +1422,18 @@
 int and%0A
-%09
+  
  * Multi
@@ -1496,17 +1496,18 @@
 ed to a%0A
-%09
+  
  * Polyg
@@ -1514,14 +1514,16 @@
 on.%0A
-%09
+  
  */%0A
-%09
+  
 publ
@@ -1587,19 +1587,26 @@
 iation,%0A
-%09%09%09
+          
 boolean 
@@ -1664,17 +1664,18 @@
 cker);%0A%0A
-%09
+  
 public s
@@ -1709,18 +1709,20 @@
 cal() %7B%0A
-%09%09
+    
 return (
@@ -1779,13 +1779,8 @@
 ce()
-%0A%09%09%09%09
 .get
@@ -1810,9 +1810,10 @@
 e);%0A
-%09
+  
 %7D%0A%0A%7D

Fix typo in description.