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, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
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,
java.awt.geom.Point2D 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:
- String with coordinate info on it.
formatLatitude
public static java.lang.String formatLatitude(double latitude)
formatLongitude
public static java.lang.String formatLongitude(double 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