Class Vehicle.Layout

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

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

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

    Modifier and Type Method Description
    java.awt.Color getRouteColor()
    Returns the color in which vehicle routes are to be emphasized.
    Vehicle.Layout withRouteColor​(java.awt.Color routeColor)
    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 routeColor)
      Creates a new instance.
      Parameters:
      routeColor - The color in which vehicle routes are to be emphasized.
  • Method Details

    • getRouteColor

      public java.awt.Color getRouteColor()
      Returns the color in which vehicle routes are to be emphasized.
      Returns:
      The color in which vehicle routes are to be emphasized.
    • withRouteColor

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