gov.nasa.worldwindx.applications.worldwindow.features
Class YahooGazetteer
java.lang.Object
javax.swing.AbstractAction
gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
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
| 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 |
| 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 |
YahooGazetteer
public YahooGazetteer()
YahooGazetteer
public YahooGazetteer(Registry registry)
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