/* * (non-Javadoc) * @see com.iver.cit.gvsig.fmap.layers.layerOperations.LayerCollection#setAllActives(boolean) */ public void setAllActives(boolean active) { FLayer lyr; for (int i = 0; i < layers.size(); i++) { lyr = ((FLayer) layers.get(i)); lyr.setActive(active); if (lyr instanceof LayerCollection) { ((LayerCollection) lyr).setAllActives(active); } } }
/* * (non-Javadoc) * @see com.iver.cit.gvsig.fmap.layers.layerOperations.LayerCollection#setAllVisibles(boolean) */ public void setAllVisibles(boolean visible) { FLayer lyr; for (int i = 0; i < layers.size(); i++) { lyr = ((FLayer) layers.get(i)); lyr.setVisible(visible); if (lyr instanceof LayerCollection) { ((LayerCollection) lyr).setAllVisibles(visible); } } }