public class DMSCoordInfoFormatter extends BasicCoordInfoFormatter
DEGREE_SIGN, df, prettyName
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
DMSCoordInfoFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createCoordinateInformationLine(int x,
int y,
java.awt.geom.Point2D llp,
java.lang.Object source)
The main function of this class
|
static java.lang.String |
formatDegreesMinutes(double value,
int integerDigits,
java.lang.String semisphere) |
static java.lang.String |
formatLatitude(double latitude) |
static java.lang.String |
formatLongitude(double longitude) |
getPrettyName, getProperties, getPropertyInfo, setProperties
getPropertyPrefix, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertyPrefix, setProperties, setPropertyPrefix
public java.lang.String createCoordinateInformationLine(int x, int y, java.awt.geom.Point2D llp, java.lang.Object source)
CoordInfoFormatter
createCoordinateInformationLine
in interface CoordInfoFormatter
createCoordinateInformationLine
in class BasicCoordInfoFormatter
x
- the x pixel coordinate of the map, 0 is left side.y
- the y pixel coordinate of the map, 0 is top.llp
- the LatLonPoint represented by the pixel location.source
- the object calling this method.public static java.lang.String formatLatitude(double latitude)
public static java.lang.String formatLongitude(double longitude)
public static java.lang.String formatDegreesMinutes(double value, int integerDigits, java.lang.String semisphere)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details