Revision 24759 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/InfoListener.java
InfoListener.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig.project.documents.view.toolListeners; |
42 | 42 |
|
43 |
import java.awt.Cursor; |
|
44 | 43 |
import java.awt.Image; |
45 | 44 |
import java.awt.Point; |
46 |
import java.awt.Toolkit; |
|
47 | 45 |
import java.awt.geom.Point2D; |
48 | 46 |
import java.util.Vector; |
49 | 47 |
|
... | ... | |
53 | 51 |
import javax.swing.tree.TreePath; |
54 | 52 |
|
55 | 53 |
import org.apache.log4j.Logger; |
56 |
import org.gvsig.fmap.data.ReadException;
|
|
57 |
import org.gvsig.fmap.data.feature.FeatureCollection;
|
|
58 |
import org.gvsig.fmap.data.feature.FeatureStore;
|
|
54 |
import org.gvsig.fmap.dal.exception.DataException;
|
|
55 |
import org.gvsig.fmap.dal.exception.ReadException;
|
|
56 |
import org.gvsig.fmap.dal.feature.FeatureSelection;
|
|
59 | 57 |
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException; |
60 |
import org.gvsig.fmap.mapcontext.layers.FBitSet; |
|
61 | 58 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
62 | 59 |
import org.gvsig.fmap.mapcontext.layers.operations.InfoByPoint; |
63 | 60 |
import org.gvsig.fmap.mapcontext.layers.operations.VectorialXMLItem; |
... | ... | |
147 | 144 |
final XMLItem[] items = new XMLItem[sel.length]; |
148 | 145 |
|
149 | 146 |
for (int i = 0; i < sel.length; i++) { |
150 |
FLayer laCapa = (FLayer) sel[i];
|
|
147 |
FLayer laCapa = sel[i]; |
|
151 | 148 |
|
152 | 149 |
if (laCapa instanceof FLyrVect) |
153 | 150 |
{ |
154 | 151 |
FLyrVect lyrVect = (FLyrVect) laCapa; |
155 |
FeatureCollection newSelection=null;
|
|
152 |
FeatureSelection newSelection = null;
|
|
156 | 153 |
// try { |
157 | 154 |
try { |
158 | 155 |
newSelection = lyrVect.queryByPoint(pReal, tol,lyrVect.getFeatureStore().getDefaultFeatureType()); |
159 |
} catch (ReadException e) {
|
|
156 |
} catch (DataException e) {
|
|
160 | 157 |
throw new BehaviorException(laCapa.getName(),e); |
161 | 158 |
} |
162 | 159 |
items[i] = new VectorialXMLItem(newSelection, laCapa); |
Also available in: Unified diff