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 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.