Revision 3601 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/VectorialAdapter.java

View differences:

VectorialAdapter.java
40 40
 */
41 41
package com.iver.cit.gvsig.fmap.layers;
42 42

  
43
import com.hardcode.driverManager.DriverLoadException;
43
import java.awt.Image;
44 44

  
45
import com.hardcode.driverManager.DriverLoadException;
45 46
import com.hardcode.gdbms.engine.data.DataSource;
46 47
import com.hardcode.gdbms.engine.values.Value;
47
import com.hardcode.gdbms.engine.values.ValueFactory;
48

  
49 48
import com.iver.cit.gvsig.fmap.DriverException;
50 49
import com.iver.cit.gvsig.fmap.core.DefaultFeature;
51 50
import com.iver.cit.gvsig.fmap.core.IFeature;
......
53 52
import com.iver.cit.gvsig.fmap.drivers.DriverAttributes;
54 53
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
55 54
import com.iver.cit.gvsig.fmap.drivers.VectorialDriver;
56
import com.iver.cit.gvsig.fmap.operations.strategies.ShapeInfo;
57
import com.iver.cit.gvsig.fmap.rendering.indexes.Indexable;
58 55

  
59
import java.awt.Image;
60
import java.awt.geom.Rectangle2D;
61
import java.nio.ByteBuffer;
62
import java.sql.Types;
63 56

  
64

  
65 57
/**
66 58
 * Clase padre de los adaptadores de los drivers. De momento mantiene solo el
67 59
 * ?ndice creado sobre la capa
68 60
 */
69 61
public abstract class VectorialAdapter implements ReadableVectorial {
70 62
	protected VectorialDriver driver;
71
	private ShapeInfo shapeInfo;
72 63

  
73 64
	/**
74 65
	 * Establece el driver sobre el que act?a el adaptador
......
89 80
		return driver;
90 81
	}
91 82

  
92
	/**
93
	 * Crea un ?ndice para la capa. Se comprueba si el driver implementa
94
	 * Indexable. Si lo es, se delega la creaci?n en el driver, si no se crea
95
	 * un ?ndice interno con IndexFactory
96
	 *
97
	 * @param boundingBox Rect?ngulo.
98
	 *
99
	 * @throws DriverIOException
100
	 */
101
	public void createIndex(Rectangle2D boundingBox) throws DriverIOException {
102
	}
103 83

  
104 84
	/**
105
	 * Mira si la capa tiene un ?ndice, bien propio del tipo de capa, bien
106
	 * interno de gvSIG
107
	 *
108
	 * @return True si la capa contiene ?ndice.
109
	 */
110
	public boolean hasIndex() {
111
		//TODO Implementar bien
112
		return false;
113
	}
114

  
115
	/**
116
	 * Si el driver es indexable devuelve el valor de la invocaci?n a
117
	 * getIndexFile del driver, si no, devuelve la ruta del fichero de ?ndices
118
	 * interno de gvSIG
119
	 *
120
	 * @return String.
121
	 */
122
	public String getIndexFile() {
123
		//TODO implementar bien
124
		return null;
125
	}
126

  
127
	/**
128
	 * @see com.iver.cit.gvsig.fmap.rendering.indexes.Index#openIndexFile(java.lang.String)
129
	 */
130
	public void openIndexFile(String file) {
131
	}
132

  
133
	/**
134
	 * @see com.iver.cit.gvsig.fmap.rendering.indexes.Index#closeIndexFile()
135
	 */
136
	public void closeIndexFile() {
137
	}
138

  
139
	/**
140 85
	 * Devuelve el DataSource a pasrtir del nombre.
141 86
	 *
142 87
	 * @return DataSource.
......
146 91
	public abstract DataSource getRecordset()
147 92
		throws DriverLoadException;
148 93

  
149
	/**
150
	 * Devuelve el ShapeInfo.
151
	 *
152
	 * @return Returns the shapeInfo.
153
	 */
154
	public ShapeInfo getShapeInfo() {
155
		return shapeInfo;
156
	}
157 94
    
158
    
159

  
95
    	
160 96
	/**
161
	 * Inserta el ShapeInfo.
162
	 *
163
	 * @param shapeInfo The shapeInfo to set.
164
	 */
165
	public void setShapeInfo(ShapeInfo shapeInfo) {
166
		this.shapeInfo = shapeInfo;
167
	}
168

  
169
	
170
	/**
171 97
	 * Por defecto devuelve null, y se le pone el icono por defecto.
172 98
	 * Si el driver reescribe este m?todo, se usar? este icono en el TOC.
173 99
	 * 

Also available in: Unified diff