src/main/java/chalmers/pimp/model/canvas/LayerManager.java
private void selectNewActiveLayer(int index) {
    if (inBounds(index - 1)) {
      activeLayer = layers.get(index - 1);
    } else if (inBounds(index + 1)) {
      activeLayer = layers.get(index + 1);
    } else {
      activeLayer = null;
    }
  }
/**
   * Selects a new active layer after having removed the currently active one.
   *
   * @param index index of the removed layer
   */
Selects a new active layer after having removed the currently active one.
@param index index of the removed layer
Selects a new active layer after having removed the currently active one . @param index index of the removed layer
private void selectNewActiveLayer(int index) {
    if (inBounds(index - 1)) {
      activeLayer = layers.get(index - 1);
    } else if (inBounds(index + 1)) {
      activeLayer = layers.get(index + 1);
    } else {
      activeLayer = null;
    }
  }
private void selectNewActiveLayer ( int index ) { if ( inBounds ( index - 1 ) ) { activeLayer = layers . get ( index - 1 ) ; } else if ( inBounds ( index + 1 ) ) { activeLayer = layers . get ( index + 1 ) ; } else { activeLayer = null ; } }
Selects a new active layer after having removed the currently active one.
Selects a new active layer after having removed the currently active one .