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
,java.awt.event.ActionListener
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.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
-
-
Constructor Summary
Constructors Constructor Description YahooGazetteer()
YahooGazetteer(Registry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PointOfInterest>
findPlaces(java.lang.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
-
-
-
-
Constructor Detail
-
YahooGazetteer
public YahooGazetteer()
-
YahooGazetteer
public YahooGazetteer(Registry registry)
-
-
Method Detail
-
initialize
public void initialize(Controller controller)
- Specified by:
initialize
in interfaceInitializable
- Overrides:
initialize
in classAbstractFeature
-
findPlaces
public java.util.List<PointOfInterest> findPlaces(java.lang.String placeInfo) throws NoItemException, ServiceException
Description copied from interface:Gazetteer
Find places identified in a string of free text.- Specified by:
findPlaces
in interfaceGazetteer
- 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.
-
-