us.zuercher.gpx2map.gui
Class LongitudeCoordinateFormatter

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatter
      extended by javax.swing.text.DefaultFormatter
          extended by javax.swing.text.InternationalFormatter
              extended by javax.swing.text.NumberFormatter
                  extended by us.zuercher.gpx2map.gui.LongitudeCoordinateFormatter
All Implemented Interfaces:
Serializable, Cloneable

public class LongitudeCoordinateFormatter
extends NumberFormatter

LongitudeCoordinateFormatter extends NumberFormatter to deal with decimal longitude values. Values are limited to the range [-180, 180] and formatted with 1 to 10 decimal digits.

Author:
Stephan Zuercher
See Also:
Serialized Form

Constructor Summary
LongitudeCoordinateFormatter()
          Constructs a new LongitudeCoordinateFormatter.
 
Method Summary
 
Methods inherited from class javax.swing.text.NumberFormatter
setFormat
 
Methods inherited from class javax.swing.text.InternationalFormatter
clone, getActions, getFields, getFormat, getMaximum, getMinimum, install, setMaximum, setMinimum, stringToValue, valueToString
 
Methods inherited from class javax.swing.text.DefaultFormatter
getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
 
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getFormattedTextField, invalidEdit, setEditValid, uninstall
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongitudeCoordinateFormatter

public LongitudeCoordinateFormatter()
Constructs a new LongitudeCoordinateFormatter.