| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 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 |
|