src.gov.nasa.worldwind.poi.BasicPointOfInterest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.poi;
import gov.nasa.worldwind.WWObjectImpl;
import gov.nasa.worldwind.avlist.AVKey;
import gov.nasa.worldwind.geom.LatLon;
/**
* @author tag
* @version $Id: BasicPointOfInterest.java 1171 2013-02-11 21:45:02Z dcollins $
*/
public class BasicPointOfInterest extends WWObjectImpl implements PointOfInterest
{
public BasicPointOfInterest(LatLon latlon)
{
this.latlon = latlon;
}
protected final LatLon latlon;
public LatLon getLatlon()
{
return latlon;
}
public String toString()
{
String str = this.getStringValue(AVKey.DISPLAY_NAME);
if (str != null)
return str;
else
return latlon.toString();
}
}