Revision 6543
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/Project.java | ||
---|---|---|
1078 | 1078 |
if (lyr instanceof FLyrVect) |
1079 | 1079 |
{ |
1080 | 1080 |
FLyrVect lyrVect = (FLyrVect) lyr; |
1081 |
if (lyrVect.isAvialable())
|
|
1081 |
if (lyrVect.isAvailable())
|
|
1082 | 1082 |
usedDataSources.put(lyrVect.getRecordset().getName(), lyrVect.getSource().getRecordset()); |
1083 | 1083 |
} |
1084 | 1084 |
} |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/TocItemBranch.java | ||
---|---|---|
139 | 139 |
} |
140 | 140 |
private void updateStateIcon() { |
141 | 141 |
if (icolayer == null) return; |
142 |
if (this.lyr.isAvialable() != this.isAvailable || finalIcon==null) {
|
|
143 |
if (!this.lyr.isAvialable()) {
|
|
142 |
if (this.lyr.isAvailable() != this.isAvailable || finalIcon==null) {
|
|
143 |
if (!this.lyr.isAvailable()) {
|
|
144 | 144 |
BufferedImage newImage = new BufferedImage(icolayer.getIconWidth(),icolayer.getIconHeight(),BufferedImage.TYPE_INT_ARGB); |
145 | 145 |
Graphics2D grp = newImage.createGraphics(); |
146 | 146 |
grp.drawImage(icolayer.getImage(),0,0,null); |
... | ... | |
158 | 158 |
} else { |
159 | 159 |
this.finalIcon = new ImageIcon(icolayer.getImage()); |
160 | 160 |
} |
161 |
this.isAvailable =(this.lyr.isAvialable());
|
|
161 |
this.isAvailable =(this.lyr.isAvailable());
|
|
162 | 162 |
} |
163 | 163 |
|
164 | 164 |
} |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/TOC.java | ||
---|---|---|
762 | 762 |
* Capa sobre la que se est? clickando. |
763 | 763 |
*/ |
764 | 764 |
private void updateVisible(FLayer lyr) { |
765 |
if (lyr.isAvialable()) {
|
|
765 |
if (lyr.isAvailable()) {
|
|
766 | 766 |
lyr.setVisible(!lyr.visibleRequired()); |
767 | 767 |
updateVisibleChild(lyr); |
768 | 768 |
updateVisibleParent(lyr); |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/TOCRenderer.java | ||
---|---|---|
213 | 213 |
FLyrDefault lyr = (FLyrDefault)branch.getLayer(); |
214 | 214 |
check.setVisible(true); |
215 | 215 |
check.setSelected(lyr.visibleRequired()); |
216 |
if (!lyr.isAvialable()) {
|
|
216 |
if (!lyr.isAvailable()) {
|
|
217 | 217 |
check.setEnabled(false); |
218 | 218 |
} else { |
219 | 219 |
check.setEnabled(true); |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/FPopupMenu.java | ||
---|---|---|
126 | 126 |
if ((actives[i] instanceof ClassifiableVectorial)) |
127 | 127 |
{ |
128 | 128 |
ClassifiableVectorial lyrVect = (ClassifiableVectorial) actives[i]; |
129 |
if (lyrVect.getLegend() instanceof SingleSymbolLegend && actives[i].isAvialable() )
|
|
129 |
if (lyrVect.getLegend() instanceof SingleSymbolLegend && actives[i].isAvailable() )
|
|
130 | 130 |
{ |
131 | 131 |
showDialog=true; |
132 | 132 |
break; |
... | ... | |
208 | 208 |
if (isTocItemBranch()) |
209 | 209 |
{ |
210 | 210 |
FLayer lyr = getNodeLayer(); |
211 |
if (!lyr.isAvialable()) return;
|
|
211 |
if (!lyr.isAvailable()) return;
|
|
212 | 212 |
ChangeName chn=new ChangeName(lyr.getName()); |
213 | 213 |
PluginServices.getMDIManager().addView(chn); |
214 | 214 |
getNodeLayer().setName(chn.getName()); |
... | ... | |
265 | 265 |
FLayer[] actives = getMapContext().getLayers().getActives(); |
266 | 266 |
FThemeManagerWindow fThemeManagerWindow; |
267 | 267 |
if (actives.length==1) { |
268 |
if (!actives[0].isAvialable()) return;
|
|
268 |
if (!actives[0].isAvailable()) return;
|
|
269 | 269 |
System.out.println("openPliegoThemeProperties(): Una sola capa. Abrimos el panel para la capa " + actives[0]); |
270 | 270 |
fThemeManagerWindow = new FThemeManagerWindow(); |
271 | 271 |
try { |
... | ... | |
286 | 286 |
} |
287 | 287 |
} else { |
288 | 288 |
for (int i = 0; i < actives.length; i++){ |
289 |
if (actives[0].isAvialable()) {
|
|
289 |
if (actives[0].isAvailable()) {
|
|
290 | 290 |
System.out.println("openPliegoThemeProperties(): Muchas capas. Abrimos el panel para la capa " + actives[i]); |
291 | 291 |
fThemeManagerWindow = new FThemeManagerWindow(actives[i], getMapContext()); |
292 | 292 |
//PluginServices.getMDIManager().addView(fThemeManagerWindow); |
... | ... | |
373 | 373 |
FLayer[] actives = getMapContext().getLayers().getActives(); |
374 | 374 |
if (actives.length==1) { |
375 | 375 |
try { |
376 |
if (!actives[0].isAvialable()) return;
|
|
376 |
if (!actives[0].isAvailable()) return;
|
|
377 | 377 |
getMapContext().getViewPort().setExtent(actives[0].getFullExtent()); |
378 | 378 |
} catch (com.iver.cit.gvsig.fmap.DriverException e1) { |
379 | 379 |
e1.printStackTrace(); |
... | ... | |
395 | 395 |
double maxXRef = extRef.getMaxX(); |
396 | 396 |
double minYRef = extRef.getMinY(); |
397 | 397 |
for (int i=0;i<actives.length;i++) { |
398 |
if (actives[i].isAvialable()) {
|
|
398 |
if (actives[i].isAvailable()) {
|
|
399 | 399 |
Rectangle2D extVar = actives[i].getFullExtent(); |
400 | 400 |
double minXVar = extVar.getMinX(); |
401 | 401 |
double maxYVar = extVar.getMaxY(); |
... | ... | |
843 | 843 |
getMenu().add( properties ); |
844 | 844 |
properties.setFont(FPopupMenu.theFont); |
845 | 845 |
|
846 |
properties.setEnabled((!lyr.isAvialable()));
|
|
846 |
properties.setEnabled((!lyr.isAvailable()));
|
|
847 | 847 |
|
848 | 848 |
properties.addActionListener(this); |
849 | 849 |
|
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLayer.java | ||
---|---|---|
307 | 307 |
/** |
308 | 308 |
* @return set layer aviable or not. |
309 | 309 |
*/ |
310 |
public void setAvailable(boolean aviable);
|
|
310 |
public void setAvailable(boolean available);
|
|
311 | 311 |
|
312 | 312 |
/** |
313 | 313 |
* @return true if this layer is aviable. |
314 | 314 |
* |
315 | 315 |
* Default value is true. |
316 | 316 |
*/ |
317 |
public boolean isAvialable();
|
|
317 |
public boolean isAvailable();
|
|
318 | 318 |
|
319 | 319 |
/** |
320 | 320 |
* Intenta recuperar una capa ante un posible error. |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java | ||
---|---|---|
180 | 180 |
* @return VectorialAdapter. |
181 | 181 |
*/ |
182 | 182 |
public ReadableVectorial getSource() { |
183 |
if (!this.isAvialable()) return null;
|
|
183 |
if (!this.isAvailable()) return null;
|
|
184 | 184 |
return source; |
185 | 185 |
} |
186 | 186 |
|
... | ... | |
1015 | 1015 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#getRecordset() |
1016 | 1016 |
*/ |
1017 | 1017 |
public SelectableDataSource getRecordset() throws DriverException { |
1018 |
if (!this.isAvialable()) return null;
|
|
1018 |
if (!this.isAvailable()) return null;
|
|
1019 | 1019 |
if (sds == null) { |
1020 | 1020 |
try { |
1021 | 1021 |
SelectableDataSource ds = source.getRecordset(); |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrDefault.java | ||
---|---|---|
585 | 585 |
bDirty = dirty; |
586 | 586 |
} |
587 | 587 |
|
588 |
public boolean isAvialable() {
|
|
588 |
public boolean isAvailable() {
|
|
589 | 589 |
return this.available; |
590 | 590 |
} |
591 | 591 |
|
Also available in: Unified diff