public class HighlightController extends java.lang.Object implements SelectListener
Highlightable
in response to pick events. Monitors a specified
WorldWindow for an indicated SelectEvent
type and turns highlighting on and off in
response.Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
highlightEventType |
protected Highlightable |
lastHighlightObject |
protected WorldWindow |
wwd |
Constructor and Description |
---|
HighlightController(WorldWindow wwd,
java.lang.Object highlightEventType)
Creates a controller for a specified WorldWindow.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected void |
highlight(java.lang.Object o) |
void |
selected(SelectEvent event) |
protected java.lang.Object highlightEventType
protected Highlightable lastHighlightObject
protected WorldWindow wwd
public HighlightController(WorldWindow wwd, java.lang.Object highlightEventType)
wwd
- the WorldWindow to monitor.highlightEventType
- the type of SelectEvent
to highlight in response to. The default is SelectEvent.ROLLOVER
.public void dispose()
protected void highlight(java.lang.Object o)
public void selected(SelectEvent event)
selected
in interface SelectListener