public class BasicCoordInfoFormatter extends OMComponent implements CoordInfoFormatter
Lat, Lon (latitude, longitude) - x, y (x pixel loc, y pixel loc)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEGREE_SIGN |
protected java.text.DecimalFormat |
df |
protected java.lang.String |
prettyName |
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
BasicCoordInfoFormatter() |
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
|
java.lang.String |
getPrettyName()
A name, suitable for GUI display, of this formatter.
|
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the
current values of the OMComponent.
|
java.util.Properties |
getPropertyInfo(java.util.Properties props)
Method to fill in a Properties object with values reflecting the
properties able to be set on this PropertyConsumer.
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent.
|
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
protected java.lang.String prettyName
public static final java.lang.String DEGREE_SIGN
protected java.text.DecimalFormat df
public java.lang.String createCoordinateInformationLine(int x, int y, java.awt.geom.Point2D llp, java.lang.Object source)
CoordInfoFormatter
createCoordinateInformationLine
in interface CoordInfoFormatter
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 java.lang.String getPrettyName()
CoordInfoFormatter
getPrettyName
in interface CoordInfoFormatter
public void setProperties(java.lang.String prefix, java.util.Properties props)
OMComponent
setProperties
in interface PropertyConsumer
setProperties
in class OMComponent
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.util.Properties getProperties(java.util.Properties props)
OMComponent
getProperties
in interface PropertyConsumer
getProperties
in class OMComponent
props
- a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object should be
created.public java.util.Properties getPropertyInfo(java.util.Properties props)
OMComponent
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class OMComponent
props
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details