svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / drivers / VectorialDriver.java @ 3095
History | View | Annotate | Download (2.53 KB)
1 | 1100 | fjp | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
||
4 | *
|
||
5 | * This program is free software; you can redistribute it and/or
|
||
6 | * modify it under the terms of the GNU General Public License
|
||
7 | * as published by the Free Software Foundation; either version 2
|
||
8 | * of the License, or (at your option) any later version.
|
||
9 | *
|
||
10 | * This program is distributed in the hope that it will be useful,
|
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | * GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License
|
||
16 | * along with this program; if not, write to the Free Software
|
||
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
18 | *
|
||
19 | * For more information, contact:
|
||
20 | *
|
||
21 | * Generalitat Valenciana
|
||
22 | * Conselleria d'Infraestructures i Transport
|
||
23 | * Av. Blasco Ib??ez, 50
|
||
24 | * 46010 VALENCIA
|
||
25 | * SPAIN
|
||
26 | *
|
||
27 | * +34 963862235
|
||
28 | * gvsig@gva.es
|
||
29 | * www.gvsig.gva.es
|
||
30 | *
|
||
31 | * or
|
||
32 | *
|
||
33 | * IVER T.I. S.A
|
||
34 | * Salamanca 50
|
||
35 | * 46005 Valencia
|
||
36 | * Spain
|
||
37 | *
|
||
38 | * +34 963163400
|
||
39 | * dac@iver.es
|
||
40 | */
|
||
41 | 214 | fernando | package com.iver.cit.gvsig.fmap.drivers; |
42 | |||
43 | 1640 | fernando | import java.awt.geom.Rectangle2D; |
44 | import java.io.IOException; |
||
45 | |||
46 | 408 | fernando | import com.hardcode.driverManager.Driver; |
47 | 217 | fernando | |
48 | |||
49 | 214 | fernando | /**
|
50 | 368 | fernando | * Clase padre de los drivers vectoriales
|
51 | 214 | fernando | */
|
52 | 1005 | vcaballero | public interface VectorialDriver extends Driver { |
53 | 217 | fernando | /**
|
54 | * Devuelve el tipo de los shapes que hay en el fichero. Pueden haber
|
||
55 | 1005 | vcaballero | * varios tipos de shapes y para indicar esto se devuelve un bitoring de
|
56 | * los tipos que contiene el fichero. Por ejemplo un fichero que contenga
|
||
57 | * textos y lineas devolver? la expresi?n (FShape.LINE | FShape.TEXT)
|
||
58 | 217 | fernando | *
|
59 | 1005 | vcaballero | * @return tipo de shape.
|
60 | 217 | fernando | */
|
61 | int getShapeType();
|
||
62 | 1691 | fjp | |
63 | 1233 | fjp | |
64 | /**
|
||
65 | 1691 | fjp | * Obtiene el n?mero de geometr?as que contiene
|
66 | * la capa
|
||
67 | *
|
||
68 | * @return int
|
||
69 | *
|
||
70 | * @throws IOException Si se produce alg?n error
|
||
71 | */
|
||
72 | int getShapeCount() throws IOException; |
||
73 | |||
74 | /**
|
||
75 | 1233 | fjp | * Devuelve los atributos que necesitemos conocer de un driver.
|
76 | * Por ejemplo, si se carga en memoria, o cualquier otra cosa que
|
||
77 | * necesitemos. Pasa a trav?s del adapter para que una FLayer pueda
|
||
78 | * conocer ciertos aspectos del driver que le est? entregando las
|
||
79 | * features.
|
||
80 | *
|
||
81 | * @return
|
||
82 | */
|
||
83 | DriverAttributes getDriverAttributes(); |
||
84 | 1640 | fernando | |
85 | |||
86 | /**
|
||
87 | * Obtiene el bounding box de la capa
|
||
88 | *
|
||
89 | * @return Rectangle2D
|
||
90 | *
|
||
91 | * @throws IOException Si se produce alg?n error
|
||
92 | */
|
||
93 | Rectangle2D getFullExtent() throws IOException; |
||
94 | 214 | fernando | } |