Interface LayerEditorModeling

All Superinterfaces:
org.opentcs.guing.components.layer.LayerEditor
All Known Implementing Classes:
LayerManagerModeling

public interface LayerEditorModeling
extends org.opentcs.guing.components.layer.LayerEditor
Provides methods to edit layers.
  • Method Summary

    Modifier and Type Method Description
    void add​(org.opentcs.guing.model.DrawnModelComponent modelComponent)
    Adds the given model component to the layer that is set in the component's layer wrapper property.
    void createLayer()
    Creates a new layer.
    void deleteLayer​(int layerId)
    Deletes the layer with the given layer ID.
    void moveLayerDown​(int layerId)
    Moves the layer with the given ID one level down.
    void moveLayerUp​(int layerId)
    Moves the layer with the given ID one level up.
    void remove​(org.opentcs.guing.model.DrawnModelComponent modelComponent)
    Removes the given model component from its layer.
    void setLayerActive​(int layerId)
    Sets the layer with the given ID as the active layer.
    void setLayerGroupId​(int layerId, int groupId)
    Sets the group ID for the layer with the given ID.

    Methods inherited from interface org.opentcs.guing.components.layer.LayerEditor

    setLayerName, setLayerVisible
  • Method Details

    • createLayer

      void createLayer()
      Creates a new layer.
    • deleteLayer

      void deleteLayer​(int layerId) throws java.lang.IllegalArgumentException
      Deletes the layer with the given layer ID.
      Parameters:
      layerId - The ID of the layer to delete.
      Throws:
      java.lang.IllegalArgumentException - If a layer with the given layer ID doesn't exist.
    • add

      void add​(org.opentcs.guing.model.DrawnModelComponent modelComponent)
      Adds the given model component to the layer that is set in the component's layer wrapper property.
      Parameters:
      modelComponent - The model component to add.
    • remove

      void remove​(org.opentcs.guing.model.DrawnModelComponent modelComponent)
      Removes the given model component from its layer.
      Parameters:
      modelComponent - The model component to remove.
    • moveLayerDown

      void moveLayerDown​(int layerId)
      Moves the layer with the given ID one level down.
      Parameters:
      layerId - The ID of the layer.
    • moveLayerUp

      void moveLayerUp​(int layerId)
      Moves the layer with the given ID one level up.
      Parameters:
      layerId - The ID of the layer.
    • setLayerActive

      void setLayerActive​(int layerId)
      Sets the layer with the given ID as the active layer.
      Parameters:
      layerId - The ID of the layer.
    • setLayerGroupId

      void setLayerGroupId​(int layerId, int groupId)
      Sets the group ID for the layer with the given ID.
      Parameters:
      layerId - The ID of the layer.
      groupId - The ID of the layer group.