Revision 2969
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrGT2.java | ||
---|---|---|
98 | 98 |
return r; |
99 | 99 |
} |
100 | 100 |
|
101 |
private void prepareDrawing() |
|
102 |
{ |
|
103 |
|
|
104 |
} |
|
105 |
private void drawSelectedFeatures() |
|
106 |
{ |
|
107 |
|
|
108 |
} |
|
101 | 109 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, |
102 | 110 |
Cancellable cancel, double scale) throws DriverException { |
103 | 111 |
if (!isWithinScale(scale)) return; |
104 | 112 |
try { |
113 |
prepareDrawing(); |
|
105 | 114 |
FeatureSource featSource = dataStore.getFeatureSource(tableName); |
106 | 115 |
|
107 | 116 |
Envelope env = new Envelope(viewPort.getExtent().getMinX(), |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java | ||
---|---|---|
373 | 373 |
|
374 | 374 |
/** |
375 | 375 |
* @see com.iver.cit.gvsig.fmap.layers.VectorialOperations#process(com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor, |
376 |
* com.iver.cit.gvsig.fmap.operations.selection.VectorialSubSet)
|
|
376 |
* FBitSet)
|
|
377 | 377 |
*/ |
378 |
public void process(FeatureVisitor visitor, BitSet subset) |
|
378 |
public void process(FeatureVisitor visitor, FBitSet subset)
|
|
379 | 379 |
throws DriverException, VisitException { |
380 | 380 |
Strategy s = StrategyManager.getStrategy(this); |
381 | 381 |
s.process(visitor, subset); |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FBitSet.java | ||
---|---|---|
48 | 48 |
* @author Vicente Caballero Navarro |
49 | 49 |
*/ |
50 | 50 |
public class FBitSet extends java.util.BitSet { |
51 |
Hashtable hashtab; |
|
51 |
private Hashtable hashtab; |
|
52 |
private boolean isRandom; |
|
53 |
|
|
52 | 54 |
boolean isIdSelected(String ID) |
53 | 55 |
{ |
54 |
// if (hashtab.containsKey(ID)) |
|
55 |
return false; |
|
56 |
return hashtab.containsKey(ID); |
|
56 | 57 |
} |
58 |
|
|
59 |
/** |
|
60 |
* @return Returns the isRandom. |
|
61 |
*/ |
|
62 |
public boolean isRandom() { |
|
63 |
return isRandom; |
|
64 |
} |
|
65 |
|
|
66 |
/** |
|
67 |
* If true, this FBitSet can be used with |
|
68 |
* Random Access layers like shp files. |
|
69 |
* If not set, use Hashtable and add |
|
70 |
* @param isRandom The isRandom to set. |
|
71 |
*/ |
|
72 |
public void setRandom(boolean isRandom) { |
|
73 |
this.isRandom = isRandom; |
|
74 |
} |
|
57 | 75 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/layerOperations/VectorialData.java | ||
---|---|---|
41 | 41 |
package com.iver.cit.gvsig.fmap.layers.layerOperations; |
42 | 42 |
|
43 | 43 |
import com.iver.cit.gvsig.fmap.DriverException; |
44 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
|
44 | 45 |
import com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor; |
45 | 46 |
import com.iver.cit.gvsig.fmap.operations.strategies.VisitException; |
46 | 47 |
|
47 |
import java.util.BitSet; |
|
48 | 48 |
|
49 | 49 |
|
50 | 50 |
/** |
... | ... | |
62 | 62 |
* @throws DriverException |
63 | 63 |
* @throws VisitException |
64 | 64 |
*/ |
65 |
public void process(FeatureVisitor visitor, BitSet subset) |
|
65 |
public void process(FeatureVisitor visitor, FBitSet subset)
|
|
66 | 66 |
throws DriverException, VisitException; |
67 | 67 |
|
68 | 68 |
/** |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLayers.java | ||
---|---|---|
47 | 47 |
import java.net.MalformedURLException; |
48 | 48 |
import java.net.URL; |
49 | 49 |
import java.util.ArrayList; |
50 |
import java.util.BitSet; |
|
51 | 50 |
import java.util.Collections; |
52 | 51 |
import java.util.Iterator; |
53 | 52 |
|
... | ... | |
745 | 744 |
|
746 | 745 |
/** |
747 | 746 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.VectorialData#process(com.iver.cit.gvsig.fmap.operations.strategies.FeatureVisitor, |
748 |
* java.util.BitSet)
|
|
747 |
* FBitSet)
|
|
749 | 748 |
*/ |
750 |
public void process(FeatureVisitor visitor, BitSet subset) |
|
749 |
public void process(FeatureVisitor visitor, FBitSet subset)
|
|
751 | 750 |
throws DriverException, VisitException { |
752 | 751 |
for (Iterator iter = layers.iterator(); iter.hasNext();) { |
753 | 752 |
FLayer layer = (FLayer) iter.next(); |
Also available in: Unified diff