NASA World Wind

gov.nasa.worldwindx.applications.worldwindow.features
Class YahooGazetteer

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
          extended by gov.nasa.worldwindx.applications.worldwindow.features.YahooGazetteer
All Implemented Interfaces:
Gazetteer, Initializable, Feature, ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action

public class YahooGazetteer
extends AbstractFeature
implements Gazetteer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
controller, featureID
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
YahooGazetteer()
           
YahooGazetteer(Registry registry)
           
 
Method Summary
 List<PointOfInterest> findPlaces(String placeInfo)
          Find places identified in a string of free text.
 void initialize(Controller controller)
           
 
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, isOn, isTwoState, propertyChange, register, setMenuAccellerator, turnOn
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

YahooGazetteer

public YahooGazetteer()

YahooGazetteer

public YahooGazetteer(Registry registry)
Method Detail

findPlaces

public List<PointOfInterest> findPlaces(String placeInfo)
                                 throws NoItemException,
                                        ServiceException
Description copied from interface: Gazetteer
Find places identified in a string of free text.

Specified by:
findPlaces in interface Gazetteer
Parameters:
placeInfo - a string containing the place description.
Returns:
the points-of-interest that match the place description.
Throws:
NoItemException - if the place description cannot be matched.
ServiceException - if the lookup service is not available or invocation of it fails.

initialize

public void initialize(Controller controller)
Specified by:
initialize in interface Initializable
Overrides:
initialize in class AbstractFeature

NASA World Wind