Class HighlightController
- java.lang.Object
-
- gov.nasa.worldwindx.examples.util.HighlightController
-
- All Implemented Interfaces:
SelectListener,java.util.EventListener
- Direct Known Subclasses:
ScreenSelection.SelectionHighlightController
public class HighlightController extends java.lang.Object implements SelectListener
Controls highlighting of shapes implementingHighlightablein response to pick events. Monitors a specified WorldWindow for an indicatedSelectEventtype and turns highlighting on and off in response.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjecthighlightEventTypeprotected HighlightablelastHighlightObjectprotected WorldWindowwwd
-
Constructor Summary
Constructors Constructor Description HighlightController(WorldWindow wwd, java.lang.Object highlightEventType)Creates a controller for a specified WorldWindow.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()protected voidhighlight(java.lang.Object o)voidselected(SelectEvent event)
-
-
-
Field Detail
-
wwd
protected WorldWindow wwd
-
highlightEventType
protected java.lang.Object highlightEventType
-
lastHighlightObject
protected Highlightable lastHighlightObject
-
-
Constructor Detail
-
HighlightController
public HighlightController(WorldWindow wwd, java.lang.Object highlightEventType)
Creates a controller for a specified WorldWindow.- Parameters:
wwd- the WorldWindow to monitor.highlightEventType- the type ofSelectEventto highlight in response to. The default isSelectEvent.ROLLOVER.
-
-
Method Detail
-
dispose
public void dispose()
-
selected
public void selected(SelectEvent event)
- Specified by:
selectedin interfaceSelectListener
-
highlight
protected void highlight(java.lang.Object o)
-
-