Interface ColorProvider

All Superinterfaces:
Serializable

public interface ColorProvider extends Serializable
Provides background/foreground colors for entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    color(Entity entity, Attribute<?> attribute)
    Returns the Object representing the specific color to use for the given attribute in the given entity, null in case of no specific color
  • Method Details

    • color

      Object color(Entity entity, Attribute<?> attribute)
      Returns the Object representing the specific color to use for the given attribute in the given entity, null in case of no specific color
      Parameters:
      entity - the entity
      attribute - the attribute
      Returns:
      the color to use for this entity and attribute, null if no color is specified