~ubuntu-branches/ubuntu/natty/jts/natty

« back to all changes in this revision

Viewing changes to src/com/vividsolutions/jts/geom/CoordinateFilter.java

  • Committer: Bazaar Package Importer
  • Author(s): Wolfgang Baer
  • Date: 2005-08-07 14:12:35 UTC
  • Revision ID: james.westby@ubuntu.com-20050807141235-7hy3ll3xpq79djcb
Tags: upstream-1.6
ImportĀ upstreamĀ versionĀ 1.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
/*
 
4
 * The JTS Topology Suite is a collection of Java classes that
 
5
 * implement the fundamental operations required to validate a given
 
6
 * geo-spatial data set to a known topological specification.
 
7
 *
 
8
 * Copyright (C) 2001 Vivid Solutions
 
9
 *
 
10
 * This library is free software; you can redistribute it and/or
 
11
 * modify it under the terms of the GNU Lesser General Public
 
12
 * License as published by the Free Software Foundation; either
 
13
 * version 2.1 of the License, or (at your option) any later version.
 
14
 *
 
15
 * This library is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
 * Lesser General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU Lesser General Public
 
21
 * License along with this library; if not, write to the Free Software
 
22
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
23
 *
 
24
 * For more information, contact:
 
25
 *
 
26
 *     Vivid Solutions
 
27
 *     Suite #1A
 
28
 *     2328 Government Street
 
29
 *     Victoria BC  V8T 5G5
 
30
 *     Canada
 
31
 *
 
32
 *     (250)385-6040
 
33
 *     www.vividsolutions.com
 
34
 */
 
35
package com.vividsolutions.jts.geom;
 
36
 
 
37
 
 
38
/**
 
39
 *  <code>Geometry</code> classes support the concept of applying a
 
40
 *  coordinate filter to every coordinate in the <code>Geometry</code>. A
 
41
 *  coordinate filter can either record information about each coordinate or
 
42
 *  change the coordinate in some way. Coordinate filters implement the
 
43
 *  interface <code>CoordinateFilter</code>. (<code>CoordinateFilter</code> is
 
44
 *  an example of the Gang-of-Four Visitor pattern). Coordinate filters can be
 
45
 *  used to implement such things as coordinate transformations, centroid and
 
46
 *  envelope computation, and many other functions.
 
47
 *
 
48
 *@version 1.6
 
49
 */
 
50
public interface CoordinateFilter {
 
51
 
 
52
  /**
 
53
   *  Performs an operation with or on <code>coord</code>.
 
54
   *
 
55
   *@param  coord  a <code>Coordinate</code> to which the filter is applied.
 
56
   */
 
57
  public void filter(Coordinate coord);
 
58
}
 
59