Class HighlighterFactory.UIColorHighlighter

All Implemented Interfaces:
Highlighter, UIDependent
Enclosing class:
HighlighterFactory

public static class HighlighterFactory.UIColorHighlighter extends ColorHighlighter implements UIDependent
A ColorHighlighter with UI-dependent background. PENDING JW: internally install a AND predicate to check for LFs which provide striping on the UI-Delegate level?
  • Constructor Details

    • UIColorHighlighter

      public UIColorHighlighter()
      Instantiates a ColorHighlighter with LF provided unselected background and default predicate. All other colors are null.
    • UIColorHighlighter

      public UIColorHighlighter(HighlightPredicate odd)
      Instantiates a ColorHighlighter with LF provided unselected background and the given predicate. All other colors are null.
      Parameters:
      odd - the predicate to use
  • Method Details

    • updateUI

      public void updateUI()
      Description copied from interface: UIDependent
      Updates all internal visuals after changing a UI-delegate.
      Specified by:
      updateUI in interface UIDependent
      See Also:
    • getUIColor

      private Color getUIColor()
      Looks up and returns the LF specific color to use for striping background highlighting. Lookup strategy:
      1. in UIManager for key = "UIColorHighlighter.stripingBackground", if null
      2. use hard-coded HighlighterFactory.GENERIC_GREY
      PENDING: fallback or not?
      Returns:
      the LF specific color for background striping.