Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/QueryByPointVisitor.java
QueryByPointVisitor.java | ||
---|---|---|
43 | 43 |
import java.awt.geom.Point2D; |
44 | 44 |
import java.awt.geom.Rectangle2D; |
45 | 45 |
|
46 |
import com.iver.cit.gvsig.exceptions.visitors.ProcessVisitorException; |
|
47 |
import com.iver.cit.gvsig.exceptions.visitors.StartVisitorException; |
|
48 |
import com.iver.cit.gvsig.exceptions.visitors.VisitorException; |
|
46 | 49 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
47 | 50 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
48 | 51 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
... | ... | |
102 | 105 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor#visit(com.iver.cit.gvsig.fmap.core.IGeometry, |
103 | 106 |
* int) |
104 | 107 |
*/ |
105 |
public void visit(IGeometry g, int index) { |
|
108 |
public void visit(IGeometry g, int index) throws VisitorException, ProcessVisitorException {
|
|
106 | 109 |
if (g==null)return; |
107 | 110 |
/* if (ct != null) { |
108 | 111 |
g.reProject(ct); |
... | ... | |
118 | 121 |
/** |
119 | 122 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor#stop() |
120 | 123 |
*/ |
121 |
public void stop(FLayer layer) { |
|
124 |
public void stop(FLayer layer) throws VisitorException {
|
|
122 | 125 |
} |
123 | 126 |
|
124 | 127 |
/** |
125 | 128 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor#start() |
126 | 129 |
*/ |
127 |
public boolean start(FLayer layer) { |
|
130 |
public boolean start(FLayer layer) throws StartVisitorException {
|
|
128 | 131 |
bitset = new FBitSet(); |
129 | 132 |
recPoint = new Rectangle2D.Double(point.getX() - (tolerance / 2), |
130 | 133 |
point.getY() - (tolerance / 2), tolerance, tolerance); |
Also available in: Unified diff