com.bbn.openmap.util.coordFormatter
Class DMSCoordInfoFormatter
java.lang.Object
com.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.util.coordFormatter.BasicCoordInfoFormatter
com.bbn.openmap.util.coordFormatter.DMSCoordInfoFormatter
- All Implemented Interfaces:
- LightMapHandlerChild, PropertyConsumer, CoordInfoFormatter, java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextMembershipListener, java.util.EventListener
public class DMSCoordInfoFormatter
- extends BasicCoordInfoFormatter
Methods inherited from class com.bbn.openmap.MapHandlerChild |
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DMSCoordInfoFormatter
public DMSCoordInfoFormatter()
createCoordinateInformationLine
public java.lang.String createCoordinateInformationLine(int x,
int y,
LatLonPoint llp,
java.lang.Object source)
- Description copied from interface:
CoordInfoFormatter
- The main function of this class
- Specified by:
createCoordinateInformationLine
in interface CoordInfoFormatter
- Overrides:
createCoordinateInformationLine
in class BasicCoordInfoFormatter
- Parameters:
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.
- Returns:
formatLatitude
public static java.lang.String formatLatitude(float latitude)
formatLongitude
public static java.lang.String formatLongitude(float longitude)
formatDegreesMinutes
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