NASA World Wind

gov.nasa.worldwindx.examples
Class ScreenSelection.SelectionHighlightController

java.lang.Object
  extended by gov.nasa.worldwindx.examples.util.HighlightController
      extended by gov.nasa.worldwindx.examples.ScreenSelection.SelectionHighlightController
All Implemented Interfaces:
MessageListener, SelectListener, EventListener
Enclosing class:
ScreenSelection

protected static class ScreenSelection.SelectionHighlightController
extends HighlightController
implements MessageListener

Extends HighlightController to add the capability to highlight objects selected by a ScreenSelector. This tracks objects highlighted by both cursor rollover events and screen selection changes, and ensures that objects stay highlighted when they are either under cursor or in the ScreenSelector's selection rectangle.


Field Summary
protected  List<Highlightable> lastBoxHighlightObjects
           
protected  ScreenSelector screenSelector
           
 
Fields inherited from class gov.nasa.worldwindx.examples.util.HighlightController
highlightEventType, lastHighlightObject, wwd
 
Constructor Summary
ScreenSelection.SelectionHighlightController(WorldWindow wwd, ScreenSelector screenSelector)
           
 
Method Summary
 void dispose()
           
protected  void highlight(Object o)
           
protected  void highlightSelectedObjects(List<?> list)
           
 void onMessage(Message msg)
          Invoked when a message is received.
 
Methods inherited from class gov.nasa.worldwindx.examples.util.HighlightController
selected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastBoxHighlightObjects

protected List<Highlightable> lastBoxHighlightObjects

screenSelector

protected ScreenSelector screenSelector
Constructor Detail

ScreenSelection.SelectionHighlightController

public ScreenSelection.SelectionHighlightController(WorldWindow wwd,
                                                    ScreenSelector screenSelector)
Method Detail

dispose

public void dispose()
Overrides:
dispose in class HighlightController

highlight

protected void highlight(Object o)
Overrides:
highlight in class HighlightController

highlightSelectedObjects

protected void highlightSelectedObjects(List<?> list)

onMessage

public void onMessage(Message msg)
Description copied from interface: MessageListener
Invoked when a message is received.

Specified by:
onMessage in interface MessageListener
Parameters:
msg - The message that was received.

NASA World Wind