All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentcs.components.plantoverview.LocationTheme Maven / Gradle / Ivy

/**
 * Copyright (c) The openTCS Authors.
 *
 * This program is free software and subject to the MIT license. (For details,
 * see the licensing information (LICENSE.txt) you should have received with
 * this copy of the software.)
 */
package org.opentcs.components.plantoverview;

import jakarta.annotation.Nonnull;
import java.awt.Image;
import org.opentcs.data.model.Location;
import org.opentcs.data.model.LocationType;
import org.opentcs.data.model.visualization.LocationRepresentation;

/**
 * Provides a location theme.
 */
public interface LocationTheme {

  /**
   * Returns the image for the given location representation.
   *
   * @param representation The representation for which to return the image.
   * @return The image for the given location representation.
   */
  @Nonnull
  Image getImageFor(
      @Nonnull
      LocationRepresentation representation
  );

  /**
   * Returns the image for the given location (type).
   *
   * @param location The location to base the image on.
   * @param locationType The location type for the location.
   * @return The image for the give location.
   */
  @Nonnull
  Image getImageFor(
      @Nonnull
      Location location,
      @Nonnull
      LocationType locationType
  );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy