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 voidadd(org.opentcs.guing.model.DrawnModelComponent modelComponent)Adds the given model component to the layer that is set in the component's layer wrapper property.voidcreateLayer()Creates a new layer.voiddeleteLayer(int layerId)Deletes the layer with the given layer ID.voidmoveLayerDown(int layerId)Moves the layer with the given ID one level down.voidmoveLayerUp(int layerId)Moves the layer with the given ID one level up.voidremove(org.opentcs.guing.model.DrawnModelComponent modelComponent)Removes the given model component from its layer.voidsetLayerActive(int layerId)Sets the layer with the given ID as the active layer.voidsetLayerGroupId(int layerId, int groupId)Sets the group ID for the layer with the given ID.
-
Method Details
-
createLayer
void createLayer()Creates a new layer. -
deleteLayer
void deleteLayer(int layerId) throws java.lang.IllegalArgumentExceptionDeletes 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.
-