Interface GeometryFilter

 1  
 2  
 3 /*
 4  * Copyright (c) 2016 Vivid Solutions.
 5  *
 6  * All rights reserved. This program and the accompanying materials
 7  * are made available under the terms of the Eclipse Public License 2.0
 8  * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
 9  * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v20.html
10  * and the Eclipse Distribution License is available at
11  *
12  * http://www.eclipse.org/org/documents/edl-v10.php.
13  */
14 package org.locationtech.jts.geom;
15  
16  
17 /**
18  *  <code>GeometryCollection</code> classes support the concept of
19  *  applying a <code>GeometryFilter</code> to the <code>Geometry</code>.
20  *  The filter is applied to every element <code>Geometry</code>.
21  *  A <code>GeometryFilter</code> can either record information about the <code>Geometry</code>
22  *  or change the <code>Geometry</code> in some way.
23  *  <code>GeometryFilter</code>
24  *  is an example of the Gang-of-Four Visitor pattern.
25  *
26  *@version 1.7
27  */
28 public interface GeometryFilter {
29  
30   /**
31    *  Performs an operation with or on <code>geom</code>.
32    *
33    *@param  geom  a <code>Geometry</code> to which the filter is applied.
34    */
35   void filter(Geometry geom);
36 }
37  
38