Class ShapeLayoutElementCreationTO

java.lang.Object
org.opentcs.access.to.CreationTO
org.opentcs.access.to.model.ShapeLayoutElementCreationTO
All Implemented Interfaces:
java.io.Serializable

@Deprecated
@ScheduledApiChange(details="Will be removed.",
                    when="6.0")
public class ShapeLayoutElementCreationTO
extends CreationTO
implements java.io.Serializable
Deprecated.
A transfer object describing a shape layout element in the visual layout.
See Also:
Serialized Form
  • Constructor Details

    • ShapeLayoutElementCreationTO

      public ShapeLayoutElementCreationTO​(java.lang.String name)
      Deprecated.
      Creates a new instance.
      Parameters:
      name - The name of this shape layout element.
  • Method Details

    • withName

      public ShapeLayoutElementCreationTO withName​(@Nonnull java.lang.String name)
      Deprecated.
      Creates a copy of this object with the given name.
      Overrides:
      withName in class CreationTO
      Parameters:
      name - The new name.
      Returns:
      A copy of this object, differing in the given value.
    • withProperties

      public ShapeLayoutElementCreationTO withProperties​(@Nonnull java.util.Map<java.lang.String,​java.lang.String> properties)
      Deprecated.
      Creates a copy of this object with the given properties.
      Overrides:
      withProperties in class CreationTO
      Parameters:
      properties - The new properties.
      Returns:
      A copy of this object, differing in the given properties.
    • withPropery

      public ShapeLayoutElementCreationTO withPropery​(@Nonnull java.lang.String key, @Nonnull java.lang.String value)
      Deprecated.
      Creates a copy of this object and adds the given property. If value == null, then the key-value pair is removed from the properties.
      Parameters:
      key - the key.
      value - the value
      Returns:
      A copy of this object that either includes the given entry in it's current properties, if value != null or excludes the entry otherwise.
    • getLayer

      public int getLayer()
      Deprecated.
      Returns the layer on which this shape layout element is to be displayed.
      Returns:
      The layer on which this shape layout element is to be displayed.
    • withLayer

      public ShapeLayoutElementCreationTO withLayer​(int layer)
      Deprecated.
      Creates a copy of this object with the given layer on which this shape layout element is to be displayed.
      Parameters:
      layer - the new layer.
      Returns:
      a copy of this object, differing in the given layer.