HiRISE

HiRISE.HiPlan.Utilities
Class PopupRowHighlighter

java.lang.Object
  extended by org.jdesktop.swingx.decorator.AbstractHighlighter
      extended by org.jdesktop.swingx.decorator.ColorHighlighter
          extended by HiRISE.HiPlan.Utilities.PopupRowHighlighter
All Implemented Interfaces:
Highlighter

public class PopupRowHighlighter
extends ColorHighlighter

A mechanism for highlighting a table row with a bright yellow color. For instance, a row might be highlighted when a popup menu is displayed in a table for that row.

Version:
1.3
Author:
Christian Schaller - UA/PIRL

Field Summary
static String ID
          Class identification name with source code version and date.
 
Fields inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter
listenerList
 
Constructor Summary
PopupRowHighlighter()
          Creates a new highlighter.
 
Method Summary
 Component highlight(Component renderer, ComponentAdapter adapter)
          Highlights the row to be highlighted.
 void setHighlightRow(int row)
          Sets the row to be highlighted.
 
Methods inherited from class org.jdesktop.swingx.decorator.ColorHighlighter
applyBackground, applyForeground, doHighlight, getBackground, getForeground, getSelectedBackground, getSelectedForeground, setBackground, setForeground, setSelectedBackground, setSelectedForeground
 
Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter
addChangeListener, areEqual, canHighlight, fireStateChanged, getChangeListeners, getHighlightPredicate, removeChangeListener, setHighlightPredicate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values
Constructor Detail

PopupRowHighlighter

public PopupRowHighlighter()
Creates a new highlighter.

Method Detail

setHighlightRow

public void setHighlightRow(int row)
Sets the row to be highlighted.

Parameters:
row - the row to be highlighted.

highlight

public Component highlight(Component renderer,
                           ComponentAdapter adapter)
Highlights the row to be highlighted. The row is set via the setHighlightRow(int) method.

Specified by:
highlight in interface Highlighter
Overrides:
highlight in class AbstractHighlighter
Parameters:
renderer - the cell renderer component to be highlighted.
adapter - the component adapter for this highlight operation.
Returns:
the highlighted rendering component.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona