NASA World Wind

gov.nasa.worldwindx.applications.dataimporter
Class FileSetHighlighter

java.lang.Object
  extended by gov.nasa.worldwindx.applications.dataimporter.FileSetHighlighter
All Implemented Interfaces:
SelectListener, PropertyChangeListener, EventListener, ListSelectionListener

public class FileSetHighlighter
extends Object
implements ListSelectionListener, SelectListener, PropertyChangeListener

Highlights the coverage area of selected data sets.


Field Summary
protected  FileSetPanel fileSetPanel
           
protected  WorldWindow wwd
           
 
Constructor Summary
FileSetHighlighter(WorldWindow wwd, FileSetPanel panel)
           
 
Method Summary
 void addImage(FileSet fileSet)
           
protected  Layer createSectorLayer(FileSet fileSet)
           
protected  void handleSelection(List<FileSet> selectedFileSets)
           
protected  Sector highlightSelectedSets(List<FileSet> fileSets)
           
protected static Sector normalizeSector(Sector sector)
           
protected  void populateLayer(FileSet fileSet, RenderableLayer layer)
           
 void propertyChange(PropertyChangeEvent event)
           
 void selected(SelectEvent event)
           
protected  void unHighlightSelectedSets()
           
 void valueChanged(ListSelectionEvent listSelectionEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileSetPanel

protected FileSetPanel fileSetPanel

wwd

protected WorldWindow wwd
Constructor Detail

FileSetHighlighter

public FileSetHighlighter(WorldWindow wwd,
                          FileSetPanel panel)
Method Detail

addImage

public void addImage(FileSet fileSet)

createSectorLayer

protected Layer createSectorLayer(FileSet fileSet)

handleSelection

protected void handleSelection(List<FileSet> selectedFileSets)

highlightSelectedSets

protected Sector highlightSelectedSets(List<FileSet> fileSets)

normalizeSector

protected static Sector normalizeSector(Sector sector)

populateLayer

protected void populateLayer(FileSet fileSet,
                             RenderableLayer layer)

propertyChange

public void propertyChange(PropertyChangeEvent event)
Specified by:
propertyChange in interface PropertyChangeListener

selected

public void selected(SelectEvent event)
Specified by:
selected in interface SelectListener

unHighlightSelectedSets

protected void unHighlightSelectedSets()

valueChanged

public void valueChanged(ListSelectionEvent listSelectionEvent)
Specified by:
valueChanged in interface ListSelectionListener

NASA World Wind