Revision 3271 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/MemoryDriver.java
MemoryDriver.java | ||
---|---|---|
70 | 70 |
* |
71 | 71 |
* @author FJP |
72 | 72 |
*/ |
73 |
public abstract class MemoryDriver implements VectorialFileDriver, ObjectDriver,
|
|
73 |
public abstract class MemoryDriver implements VectorialDriver, ObjectDriver, |
|
74 | 74 |
BoundedShapes { |
75 | 75 |
private MemoryShapeInfo memShapeInfo = new MemoryShapeInfo(); |
76 | 76 |
private ArrayList arrayGeometries = new ArrayList(); |
... | ... | |
142 | 142 |
return memShapeInfo.getType(index); |
143 | 143 |
} |
144 | 144 |
|
145 |
/* (non-Javadoc) |
|
146 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#open(java.io.File) |
|
147 |
*/ |
|
148 |
public abstract void open(File f) throws IOException; |
|
149 | 145 |
|
150 | 146 |
/* (non-Javadoc) |
151 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#close()
|
|
147 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialDriver#getShape(int)
|
|
152 | 148 |
*/ |
153 |
public void close() throws IOException { |
|
154 |
// No hago nada, lo he abierto y cerrado en el inicialize de la clase hija |
|
155 |
} |
|
156 |
|
|
157 |
/* (non-Javadoc) |
|
158 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#getShape(int) |
|
159 |
*/ |
|
160 |
public IGeometry getShape(int index) throws IOException { |
|
149 |
public IGeometry getShape(int index) { |
|
161 | 150 |
IGeometry geom = (IGeometry) arrayGeometries.get(index); |
162 | 151 |
|
163 | 152 |
return geom.cloneGeometry(); |
164 | 153 |
} |
165 | 154 |
|
166 | 155 |
/* (non-Javadoc) |
167 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#getShapeCount()
|
|
156 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialDriver#getShapeCount() |
|
168 | 157 |
*/ |
169 | 158 |
public int getShapeCount() throws IOException { |
170 | 159 |
return arrayGeometries.size(); |
171 | 160 |
} |
172 | 161 |
|
173 | 162 |
/* (non-Javadoc) |
174 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#getFullExtent()
|
|
163 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialDriver#getFullExtent() |
|
175 | 164 |
*/ |
176 | 165 |
public Rectangle2D getFullExtent() throws IOException { |
177 | 166 |
return fullExtent; |
178 | 167 |
} |
179 | 168 |
|
180 |
/* (non-Javadoc) |
|
181 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#initialize() |
|
182 |
*/ |
|
183 |
public void initialize() throws IOException { |
|
184 |
} |
|
185 | 169 |
|
186 | 170 |
/* (non-Javadoc) |
187 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#accept(java.io.File) |
|
188 |
*/ |
|
189 |
public abstract boolean accept(File f); |
|
190 |
|
|
191 |
/* (non-Javadoc) |
|
192 | 171 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialDriver#getShapeType() |
193 | 172 |
*/ |
194 | 173 |
public abstract int getShapeType(); |
Also available in: Unified diff