Klasse Layer
java.lang.Object
org.opentcs.data.model.visualization.Layer
- Alle implementierten Schnittstellen:
Serializable
Describes a layer in a plant model which is used to group model elements.
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
Returns the ID of the layer group this layer is assigned to.int
getId()
Returns the unique ID of this layer.getName()
Returns the name of this layer.int
Returns the ordinal of this layer.boolean
Returns whether this layer is visible or not.toString()
withGroupId
(int groupId) Creates a copy of this object, with the given group ID.Creates a copy of this object, with the given name.withOrdinal
(int ordinal) Creates a copy of this object, with the given ordinal.withVisible
(boolean visible) Creates a copy of this object, with the given visible state.
-
Konstruktordetails
-
Layer
Creates a new instance.- Parameter:
id
- The unique ID of the layer.ordinal
- The ordinal of the layer.visible
- Whether the layer is visible or not.name
- The name of the layer.groupId
- The ID of the layer group the layer is assigned to.
-
-
Methodendetails
-
getId
public int getId()Returns the unique ID of this layer.- Gibt zurück:
- The unique Id of this layer.
-
getOrdinal
public int getOrdinal()Returns the ordinal of this layer. Layers with a higher ordinal are positioned above layers with a lower ordinal.- Gibt zurück:
- The ordinal of this layer.
-
withOrdinal
Creates a copy of this object, with the given ordinal.- Parameter:
ordinal
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
isVisible
public boolean isVisible()Returns whether this layer is visible or not.- Gibt zurück:
- Whether this layer is visible or not.
-
withVisible
Creates a copy of this object, with the given visible state.- Parameter:
visible
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getName
Returns the name of this layer.- Gibt zurück:
- The name of this layer.
-
withName
Creates a copy of this object, with the given name.- Parameter:
name
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getGroupId
public int getGroupId()Returns the ID of the layer group this layer is assigned to.- Gibt zurück:
- The ID of the layer group this layer is assigned to.
-
withGroupId
Creates a copy of this object, with the given group ID.- Parameter:
groupId
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
toString
-