Interface VehicleTheme


public interface VehicleTheme
Provides a vehicle theme.
  • Method Summary

    Modifier and Type
    Method
    Description
    label(Vehicle vehicle)
    Provides a label that describes this vehicle.
    Provides the color to be used for drawing the label.
    Provides the font to be used for drawing the label.
    int
    Provides the vertical offset of the label relative to the center of the vehicle figure.
    int
    Provides the vertical offset of the label relative to the center of the vehicle figure.
    Returns an image for the given vehicle, representing its current state.
    Returns an image for the given vehicle, disregarding its current state.
  • Method Details

    • statelessImage

      Image statelessImage(@Nonnull Vehicle vehicle)
      Returns an image for the given vehicle, disregarding its current state.
      Parameters:
      vehicle - The vehicle for which to return the image.
      Returns:
      An image for the given vehicle.
    • statefulImage

      Image statefulImage(@Nonnull Vehicle vehicle)
      Returns an image for the given vehicle, representing its current state.
      Parameters:
      vehicle - The vehicle for which to return the image.
      Returns:
      An image for the given vehicle.
    • label

      String label(Vehicle vehicle)
      Provides a label that describes this vehicle. Usually this is the name of the vehicle or an abbreviation.
      Parameters:
      vehicle - The vehicle to provide a label for.
      Returns:
      A label that describes the given vehicle.
    • labelOffsetX

      int labelOffsetX()
      Provides the vertical offset of the label relative to the center of the vehicle figure.
      Returns:
      The horizontal offset.
    • labelOffsetY

      int labelOffsetY()
      Provides the vertical offset of the label relative to the center of the vehicle figure.
      Returns:
      The vertical offset.
    • labelColor

      Color labelColor()
      Provides the color to be used for drawing the label.
      Returns:
      The color to be used for drawing the label.
    • labelFont

      Font labelFont()
      Provides the font to be used for drawing the label.
      Returns:
      The font to be used for drawing the label.