gov.nasa.worldwindx.examples.util
Class HighlightController
java.lang.Object
gov.nasa.worldwindx.examples.util.HighlightController
- All Implemented Interfaces:
- SelectListener, EventListener
- Direct Known Subclasses:
- ScreenSelection.SelectionHighlightController
public class HighlightController
- extends Object
- implements SelectListener
Controls highlighting of shapes implementing Highlightable in response to pick events. Monitors a specified
World Window for an indicated SelectEvent type and turns highlighting on and off in
response.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
highlightEventType
protected Object highlightEventType
lastHighlightObject
protected Highlightable lastHighlightObject
wwd
protected WorldWindow wwd
HighlightController
public HighlightController(WorldWindow wwd,
Object highlightEventType)
- Creates a controller for a specified World Window.
- Parameters:
wwd - the World Window to monitor.highlightEventType - the type of SelectEvent to highlight in response to. The default is SelectEvent.ROLLOVER.
dispose
public void dispose()
highlight
protected void highlight(Object o)
selected
public void selected(SelectEvent event)
- Specified by:
selected in interface SelectListener