Package generic.theme

# Class ColorChangedThemeEvent

java.lang.Object
generic.theme.ThemeEvent
generic.theme.ColorChangedThemeEvent

public class ColorChangedThemeEvent extends ThemeEvent
`ThemeEvent` for when a color changes for exactly one color id.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ColorChangedThemeEvent(GThemeValueMap values, ColorValue color)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasAnyColorChanged()`
  Returns true if any color value changed.
  `boolean`
  `isColorChanged(String id)`
  Returns true if the color associated with the given id has changed.

  ### Methods inherited from class generic.theme.ThemeEvent

  `hasAnyFontChanged, hasAnyIconChanged, haveAllValuesChanged, isFontChanged, isIconChanged, isLookAndFeelChanged`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ColorChangedThemeEvent

    public ColorChangedThemeEvent(GThemeValueMap values, ColorValue color)
    Constructor
    Parameters:
      `values` - the set of theme values used to resolve indirect references
      `color` - the new `ColorValue` for the color id that changed

- ## Method Details

  - ### isColorChanged

    public boolean isColorChanged(String id)
    Description copied from class: `ThemeEvent`
    Returns true if the color associated with the given id has changed.
    Overrides:
      `isColorChanged` in class `ThemeEvent`
    Parameters:
      `id` - the color id to test if changed
    Returns:
      true if the color associated with the given id has changed

  - ### hasAnyColorChanged

    public boolean hasAnyColorChanged()
    Description copied from class: `ThemeEvent`
    Returns true if any color value changed.
    Overrides:
      `hasAnyColorChanged` in class `ThemeEvent`
    Returns:
      true if any color value changed.