Class VisualLayout

java.lang.Object
org.opentcs.data.TCSObject<VisualLayout>
org.opentcs.data.model.visualization.VisualLayout
All Implemented Interfaces:
java.io.Serializable

public class VisualLayout
extends TCSObject<VisualLayout>
implements java.io.Serializable
Describes the visual attributes of a model.
See Also:
Serialized Form
  • Constructor Details

    • VisualLayout

      public VisualLayout​(java.lang.String name)
      Creates a new VisualLayout.
      Parameters:
      name - This visual layout's name.
  • Method Details

    • withProperty

      public VisualLayout withProperty​(java.lang.String key, java.lang.String value)
      Description copied from class: TCSObject
      Creates a copy of this object, with the given property integrated.
      Specified by:
      withProperty in class TCSObject<VisualLayout>
      Parameters:
      key - The key of the property to be changed.
      value - The new value of the property, or null, if the property is to be removed.
      Returns:
      A copy of this object, with the given property integrated.
    • withProperties

      public VisualLayout withProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
      Description copied from class: TCSObject
      Creates a copy of this object, with the given properties.
      Specified by:
      withProperties in class TCSObject<VisualLayout>
      Parameters:
      properties - The properties.
      Returns:
      A copy of this object, with the given properties.
    • withHistoryEntry

      public TCSObject<VisualLayout> withHistoryEntry​(ObjectHistory.Entry entry)
      Description copied from class: TCSObject
      Creates a copy of this object, with the given history entry integrated.
      Specified by:
      withHistoryEntry in class TCSObject<VisualLayout>
      Parameters:
      entry - The history entry to be integrated.
      Returns:
      A copy of this object, with the given history entry integrated.
    • withHistory

      public TCSObject<VisualLayout> withHistory​(ObjectHistory history)
      Description copied from class: TCSObject
      Creates a copy of this object, with the given history.
      Specified by:
      withHistory in class TCSObject<VisualLayout>
      Parameters:
      history - The history.
      Returns:
      A copy of this object, with the given history.
    • getScaleX

      public double getScaleX()
      Returns this layout's scale on the X axis (in mm/pixel).
      Returns:
      This layout's scale on the X axis.
    • withScaleX

      public VisualLayout withScaleX​(double scaleX)
      Creates a copy of this object, with the given scaleX.
      Parameters:
      scaleX - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.
    • getScaleY

      public double getScaleY()
      Returns this layout's scale on the Y axis (in mm/pixel).
      Returns:
      This layout's scale on the Y axis.
    • withScaleY

      public VisualLayout withScaleY​(double scaleY)
      Creates a copy of this object, with the given scaleY.
      Parameters:
      scaleY - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.
    • getLayoutElements

      public java.util.Set<LayoutElement> getLayoutElements()
      Returns the layout elements describing the visualization of a model.
      Returns:
      The layout elements describing the visualization of a model.
    • withLayoutElements

      public VisualLayout withLayoutElements​(java.util.Set<LayoutElement> layoutElements)
      Creates a copy of this object, with the given layoutElements.
      Parameters:
      layoutElements - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.