Class LatLonFormatCompact
- java.lang.Object
-
- com.metsci.glimpse.util.geo.format.LatLonFormatCompact
-
- All Implemented Interfaces:
LatLonFormat,Cloneable
public class LatLonFormatCompact extends Object implements LatLonFormat
LatLonFormat which formats a LatLonGeo as a String containing lat and lon as degrees in decimal form separated by a comma.- Author:
- osborn
-
-
Constructor Summary
Constructors Constructor Description LatLonFormatCompact(int nDecimals)Simple constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(LatLonGeo latLon)LatLonGeoparse(String s)static LatLonGeoparseToLatLonGeo(String s)
-
-
-
Method Detail
-
format
public String format(LatLonGeo latLon)
- Specified by:
formatin interfaceLatLonFormat
-
parse
public LatLonGeo parse(String s) throws LatLonFormatParseException
- Specified by:
parsein interfaceLatLonFormat- Throws:
LatLonFormatParseException
-
parseToLatLonGeo
public static LatLonGeo parseToLatLonGeo(String s) throws LatLonFormatParseException
- Throws:
LatLonFormatParseException
-
-