Package gov.nasa.worldwindx.examples
Class ScreenSelection.SelectionHighlightController
- java.lang.Object
-
- gov.nasa.worldwindx.examples.util.HighlightController
-
- gov.nasa.worldwindx.examples.ScreenSelection.SelectionHighlightController
-
- All Implemented Interfaces:
MessageListener
,SelectListener
,java.util.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
Fields Modifier and Type Field Description protected java.util.List<Highlightable>
lastBoxHighlightObjects
protected ScreenSelector
screenSelector
-
Fields inherited from class gov.nasa.worldwindx.examples.util.HighlightController
highlightEventType, lastHighlightObject, wwd
-
-
Constructor Summary
Constructors Constructor Description SelectionHighlightController(WorldWindow wwd, ScreenSelector screenSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
protected void
highlight(java.lang.Object o)
protected void
highlightSelectedObjects(java.util.List<?> list)
void
onMessage(Message msg)
Invoked when a message is received.-
Methods inherited from class gov.nasa.worldwindx.examples.util.HighlightController
selected
-
-
-
-
Field Detail
-
screenSelector
protected ScreenSelector screenSelector
-
lastBoxHighlightObjects
protected java.util.List<Highlightable> lastBoxHighlightObjects
-
-
Constructor Detail
-
SelectionHighlightController
public SelectionHighlightController(WorldWindow wwd, ScreenSelector screenSelector)
-
-
Method Detail
-
dispose
public void dispose()
- Overrides:
dispose
in classHighlightController
-
onMessage
public void onMessage(Message msg)
Description copied from interface:MessageListener
Invoked when a message is received.- Specified by:
onMessage
in interfaceMessageListener
- Parameters:
msg
- The message that was received.
-
highlight
protected void highlight(java.lang.Object o)
- Overrides:
highlight
in classHighlightController
-
highlightSelectedObjects
protected void highlightSelectedObjects(java.util.List<?> list)
-
-