Package com.mta.tehreer.font
Class ColorPalette
java.lang.Object
com.mta.tehreer.font.ColorPalette
Represents font color palette.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionint[]colors()Returns the colors array.booleanintflags()Returns the property flags.inthashCode()name()Returns the display name.static ColorPaletteReturns a palette object with the specified values.
-
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
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
-
hashCode
public int hashCode()
-