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 implementingHighlightable
in response to pick events. Monitors a specified WorldWindow for an indicatedSelectEvent
type and turns highlighting on and off in response.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
highlightEventType
protected Highlightable
lastHighlightObject
protected WorldWindow
wwd
-
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 void
dispose()
protected void
highlight(java.lang.Object o)
void
selected(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 ofSelectEvent
to highlight in response to. The default isSelectEvent.ROLLOVER
.
-
-
Method Detail
-
dispose
public void dispose()
-
selected
public void selected(SelectEvent event)
- Specified by:
selected
in interfaceSelectListener
-
highlight
protected void highlight(java.lang.Object o)
-
-