Revision 28996 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/MultiPoint.java
MultiPoint.java | ||
---|---|---|
1 |
package org.gvsig.fmap.geom.aggregate; |
|
2 |
|
|
3 |
import org.gvsig.fmap.geom.primitive.Point; |
|
4 |
|
|
5 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
6 | 2 |
* |
7 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
8 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
9 | 6 |
* This program is free software; you can redistribute it and/or |
10 | 7 |
* modify it under the terms of the GNU General Public License |
11 | 8 |
* as published by the Free Software Foundation; either version 2 |
12 | 9 |
* of the License, or (at your option) any later version. |
13 |
* |
|
10 |
*
|
|
14 | 11 |
* This program is distributed in the hope that it will be useful, |
15 | 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | 14 |
* GNU General Public License for more details. |
18 |
* |
|
15 |
*
|
|
19 | 16 |
* You should have received a copy of the GNU General Public License |
20 | 17 |
* along with this program; if not, write to the Free Software |
21 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
22 |
* |
|
23 |
* For more information, contact: |
|
24 |
* |
|
25 |
* Generalitat Valenciana |
|
26 |
* Conselleria d'Infraestructures i Transport |
|
27 |
* Av. Blasco Ib??ez, 50 |
|
28 |
* 46010 VALENCIA |
|
29 |
* SPAIN |
|
30 |
* |
|
31 |
* +34 963862235 |
|
32 |
* gvsig@gva.es |
|
33 |
* www.gvsig.gva.es |
|
34 |
* |
|
35 |
* or |
|
36 |
* |
|
37 |
* IVER T.I. S.A |
|
38 |
* Salamanca 50 |
|
39 |
* 46005 Valencia |
|
40 |
* Spain |
|
41 |
* |
|
42 |
* +34 963163400 |
|
43 |
* dac@iver.es |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
44 | 21 |
*/ |
45 |
/* CVS MESSAGES: |
|
46 |
* |
|
47 |
* $Id: MultiPoint.java,v 1.1 2008/03/12 08:46:20 cvs Exp $ |
|
48 |
* $Log: MultiPoint.java,v $ |
|
49 |
* Revision 1.1 2008/03/12 08:46:20 cvs |
|
50 |
* *** empty log message *** |
|
51 |
* |
|
52 |
* |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2009 {Iver T.I.} {Task} |
|
53 | 26 |
*/ |
27 |
|
|
28 |
package org.gvsig.fmap.geom.aggregate; |
|
29 |
|
|
30 |
import org.gvsig.fmap.geom.primitive.Point; |
|
31 |
|
|
54 | 32 |
/** |
55 |
* @author Jorge Piera Llodr? (jorge.piera@iver.es) |
|
33 |
* <p> |
|
34 |
* This interface is equivalent to the GM_MultiPoint specified in |
|
35 |
* <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>. |
|
36 |
* MultiPoint is an aggregate class containing only points. |
|
37 |
* The association role "element" shall be the set of {@link Point}'s contained in |
|
38 |
* this MultiPoint. |
|
39 |
* </p> |
|
40 |
* @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a> |
|
41 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a> |
|
56 | 42 |
*/ |
57 | 43 |
public interface MultiPoint extends Aggregate { |
58 | 44 |
|
45 |
/** |
|
46 |
* Adds a new point to the multipoint |
|
47 |
* @param point |
|
48 |
* The point to add |
|
49 |
*/ |
|
59 | 50 |
void addPoint(Point point); |
60 | 51 |
|
52 |
/** |
|
53 |
* Gets the point that is on a concrete position |
|
54 |
* inside the multi point |
|
55 |
* @param index |
|
56 |
* The position |
|
57 |
* @return |
|
58 |
* The selected point |
|
59 |
*/ |
|
61 | 60 |
Point getPointAt(int index); |
62 | 61 |
} |
Also available in: Unified diff