Klasse Layer

java.lang.Object
org.opentcs.data.model.visualization.Layer
Alle implementierten Schnittstellen:
Serializable

public class Layer extends Object implements Serializable
Describes a layer in a plant model which is used to group model elements.
Siehe auch:
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Layer(int id, int ordinal, boolean visible, String name, int groupId)
    Creates a new instance.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    Returns the ID of the layer group this layer is assigned to.
    int
    Returns the unique ID of this layer.
    Returns the name of this layer.
    int
    Returns the ordinal of this layer.
    boolean
    Returns whether this layer is visible or not.
     
    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.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Konstruktordetails

    • Layer

      public Layer(int id, int ordinal, boolean visible, String name, int groupId)
      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

      public Layer withOrdinal(int ordinal)
      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

      public Layer withVisible(boolean visible)
      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

      public String getName()
      Returns the name of this layer.
      Gibt zurück:
      The name of this layer.
    • withName

      public Layer withName(String name)
      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

      public Layer withGroupId(int groupId)
      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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object