示例#1
0
  /*
   * (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);
      }
    }
  }
示例#2
0
  /*
   * (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);
      }
    }
  }