src/main/java/chalmers/pimp/model/canvas/LayerManager.java
void selectLayer(int index) {
    if (inBounds(index)) {
      activeLayer = layers.get(index);

      var event = new LayerUpdateEvent(layers);
      event.setSelectedLayer(index);
      event.setSelectionUpdated(true);

      layerUpdateListeners.layersUpdated(event);
    }
  }
/**
   * Selects the layer associated with the supplied index. This method has no effect if the supplied
   * index isn't associated with a layer.
   *
   * @param index the index associated with the desired layer.
   */
Selects the layer associated with the supplied index. This method has no effect if the supplied
index isn't associated with a layer.

@param index the index associated with the desired layer.
Selects the layer associated with the supplied index . This method has no effect if the supplied index isn ' t associated with a layer . @param index the index associated with the desired layer .
void selectLayer(int index) {
    if (inBounds(index)) {
      activeLayer = layers.get(index);
      var event = new LayerUpdateEvent(layers);
      event.setSelectedLayer(index);
      event.setSelectionUpdated(true);
      layerUpdateListeners.layersUpdated(event);
    }
  }
void selectLayer ( int index ) { if ( inBounds ( index ) ) { activeLayer = layers . get ( index ) ; var event = new LayerUpdateEvent ( layers ) ; event . setSelectedLayer ( index ) ; event . setSelectionUpdated ( true ) ; layerUpdateListeners . layersUpdated ( event ) ; } }
Selects the layer associated with the supplied index.
Selects the layer associated with the supplied index .