Class ColorPalette

java.lang.Object
com.mta.tehreer.font.ColorPalette

public final class ColorPalette extends Object
Represents font color palette.
  • Field Details

    • USABLE_WITH_LIGHT_BACKGROUND

      public static final int USABLE_WITH_LIGHT_BACKGROUND
      See Also:
    • USABLE_WITH_DARK_BACKGROUND

      public static final int USABLE_WITH_DARK_BACKGROUND
      See Also:
  • Method Details

    • of

      @NonNull public static ColorPalette of(@NonNull String name, int flags, @NonNull @Size(min=1L) int[] colors)
      Returns a palette object with the specified values.
      Parameters:
      name - The display name.
      flags - The property flags.
      colors - The colors array.
      Returns:
      A new palette object.
    • name

      @NonNull public String name()
      Returns the display name.
      Returns:
      The display name.
    • flags

      public int flags()
      Returns the property flags.
      Returns:
      The property flags.
    • colors

      @NonNull public int[] colors()
      Returns the colors array.
      Returns:
      The colors array.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object