NASA World Wind

gov.nasa.worldwindx.examples.util
Class HighlightController

java.lang.Object
  extended by 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.


Field Summary
protected  Object highlightEventType
           
protected  Highlightable lastHighlightObject
           
protected  WorldWindow wwd
           
 
Constructor Summary
HighlightController(WorldWindow wwd, Object highlightEventType)
          Creates a controller for a specified World Window.
 
Method Summary
 void dispose()
           
protected  void highlight(Object o)
           
 void selected(SelectEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

highlightEventType

protected Object highlightEventType

lastHighlightObject

protected Highlightable lastHighlightObject

wwd

protected WorldWindow wwd
Constructor Detail

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

dispose

public void dispose()

highlight

protected void highlight(Object o)

selected

public void selected(SelectEvent event)
Specified by:
selected in interface SelectListener

NASA World Wind