Class LocationCreationTO.Layout

java.lang.Object
org.opentcs.access.to.model.LocationCreationTO.Layout
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
LocationCreationTO

public static class LocationCreationTO.Layout
extends java.lang.Object
implements java.io.Serializable
Contains information regarding the grahical representation of a location.
See Also:
Serialized Form
  • Constructor Details

    • Layout

      public Layout()
      Creates a new instance.
    • Layout

      public Layout​(Couple position, Couple labelOffset, LocationRepresentation locationRepresentation, int layerId)
      Creates a new instance.
      Parameters:
      position - The coordinates at which the location is to be drawn (in mm).
      labelOffset - The offset of the label's location to the point's position (in lu).
      locationRepresentation - The location representation to use.
      layerId - The ID of the layer on which the location is to be drawn.
  • Method Details

    • getPosition

      public Couple getPosition()
      Returns the coordinates at which the location is to be drawn (in mm).
      Returns:
      The coordinates at which the location is to be drawn (in mm).
    • withPosition

      public LocationCreationTO.Layout withPosition​(Couple position)
      Creates a copy of this object, with the given position.
      Parameters:
      position - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.
    • getLabelOffset

      public Couple getLabelOffset()
      Returns the offset of the label's position to the location's position (in lu).
      Returns:
      The offset of the label's position to the location's position (in lu).
    • withLabelOffset

      public LocationCreationTO.Layout withLabelOffset​(Couple labelOffset)
      Creates a copy of this object, with the given X label offset.
      Parameters:
      labelOffset - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.
    • getLocationRepresentation

      public LocationRepresentation getLocationRepresentation()
      Returns the location representation to use.
      Returns:
      The location representation to use.
    • withLocationRepresentation

      public LocationCreationTO.Layout withLocationRepresentation​(LocationRepresentation locationRepresentation)
      Creates a copy of this object, with the given location representation.
      Parameters:
      locationRepresentation - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.
    • getLayerId

      public int getLayerId()
      Returns the ID of the layer on which the location is to be drawn.
      Returns:
      The layer ID.
    • withLayerId

      public LocationCreationTO.Layout withLayerId​(int layerId)
      Creates a copy of this object, with the given layer ID.
      Parameters:
      layerId - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object