Package generic.theme

Class FontChangedThemeEvent

java.lang.Object
generic.theme.ThemeEvent
generic.theme.FontChangedThemeEvent

public class FontChangedThemeEvent extends ThemeEvent
ThemeEvent for when a font changes for exactly one font id.
  • Constructor Details

    • FontChangedThemeEvent

      public FontChangedThemeEvent(GThemeValueMap values, FontValue font)
      Constructor
      Parameters:
      values - the set of theme values used to resolve indirect references
      font - the new FontValue for the font id that changed
  • Method Details

    • isFontChanged

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

      public boolean hasAnyFontChanged()
      Description copied from class: ThemeEvent
      Returns true if any font value changed.
      Overrides:
      hasAnyFontChanged in class ThemeEvent
      Returns:
      true if any font value changed.