Revision 5223 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java
FLyrVect.java | ||
---|---|---|
122 | 122 |
private SelectableDataSource sds; |
123 | 123 |
|
124 | 124 |
private SelectionSupport selectionSupport = new SelectionSupport(); |
125 |
|
|
126 |
private SpatialCache spatialCache = null; |
|
127 |
private boolean spatialCacheEnabled = true; |
|
125 | 128 |
|
126 | 129 |
// protected SpatialIndex spatialIndex = null; |
127 | 130 |
/** |
... | ... | |
1018 | 1021 |
* this.selectionSupport = selectionSupport; } |
1019 | 1022 |
*/ |
1020 | 1023 |
|
1024 |
public SpatialCache getSpatialCache() { |
|
1025 |
if (spatialCache == null) |
|
1026 |
{ |
|
1027 |
spatialCache = new SpatialCache(); |
|
1028 |
} |
|
1029 |
return spatialCache; |
|
1030 |
} |
|
1031 |
|
|
1032 |
public void setSpatialCache(SpatialCache spatialCache) { |
|
1033 |
this.spatialCache = spatialCache; |
|
1034 |
} |
|
1035 |
|
|
1036 |
public boolean isSpatialCacheEnabled() { |
|
1037 |
return spatialCacheEnabled; |
|
1038 |
} |
|
1039 |
|
|
1040 |
public void setSpatialCacheEnabled(boolean spatialCacheEnabled) { |
|
1041 |
this.spatialCacheEnabled = spatialCacheEnabled; |
|
1042 |
} |
|
1043 |
|
|
1021 | 1044 |
} |
Also available in: Unified diff