Klasse PointCreationTO.Layout

java.lang.Object
org.opentcs.access.to.model.PointCreationTO.Layout
Alle implementierten Schnittstellen:
Serializable
Umschließende Klasse:
PointCreationTO

public static class PointCreationTO.Layout extends Object implements Serializable
Contains information regarding the graphical representation of a point.
Siehe auch:
  • Konstruktordetails

    • Layout

      public Layout()
      Creates a new instance.
    • Layout

      public Layout(Couple position, Couple labelOffset, int layerId)
      Creates a new instance.
      Parameter:
      position - The coordinates at which the point is to be drawn (in mm).
      labelOffset - The offset of the label's position to the point's position (in lu).
      layerId - The ID of the layer on which the point is to be drawn.
  • Methodendetails

    • getPosition

      public Couple getPosition()
      Returns the coordinates at which the point is to be drawn (in mm).
      Gibt zurück:
      The coordinates at which the point is to be drawn (in mm).
    • withPosition

      public PointCreationTO.Layout withPosition(Couple position)
      Creates a copy of this object, with the given position.
      Parameter:
      position - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getLabelOffset

      public Couple getLabelOffset()
      Returns the offset of the label's position to the point's position (in lu).
      Gibt zurück:
      The offset of the label's position to the point's position (in lu).
    • withLabelOffset

      public PointCreationTO.Layout withLabelOffset(Couple labelOffset)
      Creates a copy of this object, with the given X label offset.
      Parameter:
      labelOffset - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getLayerId

      public int getLayerId()
      Returns the ID of the layer on which the point is to be drawn.
      Gibt zurück:
      The layer ID.
    • withLayerId

      public PointCreationTO.Layout withLayerId(int layerId)
      Creates a copy of this object, with the given layer ID.
      Parameter:
      layerId - 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