Class Block.Layout

java.lang.Object
org.opentcs.data.model.Block.Layout
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Block

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

    Constructors 
    Constructor Description
    Layout()
    Creates a new instance.
    Layout​(java.awt.Color color)
    Creates a new instance.
  • Method Summary

    Modifier and Type Method Description
    java.awt.Color getColor()
    Returns the color in which block elements are to be emphasized.
    Block.Layout withColor​(java.awt.Color color)
    Creates a copy of this object, with the given color.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Layout

      public Layout()
      Creates a new instance.
    • Layout

      public Layout​(java.awt.Color color)
      Creates a new instance.
      Parameters:
      color - The color in which block elements are to be emphasized.
  • Method Details

    • getColor

      public java.awt.Color getColor()
      Returns the color in which block elements are to be emphasized.
      Returns:
      The color in which block elements are to be emphasized.
    • withColor

      public Block.Layout withColor​(java.awt.Color color)
      Creates a copy of this object, with the given color.
      Parameters:
      color - The value to be set in the copy.
      Returns:
      A copy of this object, differing in the given value.