public abstract class IlvAbstractCoordinateFormatter extends Object implements IlvCoordinateFormatter
Constructor and Description |
---|
IlvAbstractCoordinateFormatter()
Default constructor.
|
IlvAbstractCoordinateFormatter(IlvInputStream stream)
Creates a new
IlvDefaultAltitudeProvider from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Overrides deep comparison equals.
|
static DecimalFormatSymbols |
getDecimalFormatSymbols()
Returns US DecimalFormatSymbols using localized digits.
|
protected IlvEllipsoid |
getEllipsoid()
Returns the ellipsoid.
|
String |
getInputSeparator()
Returns the input Separator.
|
String |
getOutputSeparator()
Returns the output Separator.
|
protected int |
getPrecision()
Returns the precision.
|
int |
hashCode() |
void |
setCoordinatePrecision(int precision)
Sets the Sets the maximum number of digits allowed in the fraction
portion of a coordinate.
|
void |
setEllipsoid(IlvEllipsoid ellipsoid)
Sets the ellipsoid associated with this coordinate format.
|
void |
setOutputSeparator(String separator)
Changes the separator string that will be used to separate the different
parts of output string in the toString method.
|
void |
setParseSeparator(char separator)
Changes the separator character that will be used to analyze the string
passed to the parse method.
|
protected void |
setPrecision(int precision)
Sets the precision of coordinates (number of digits after dot).
|
protected abstract void |
setupFormatters()
This method is called after precision has been changed and should update
the internal number formatters, if any.
|
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAngleString, getLatitude, getLongitude, parse, setLonLat, toString
public IlvAbstractCoordinateFormatter()
public IlvAbstractCoordinateFormatter(IlvInputStream stream) throws IlvReadFileException
IlvDefaultAltitudeProvider
from an
IlvInputStream
. Default implementation does nothing.stream
- The input stream.IlvReadFileException
- if an error occurs while reading.public static DecimalFormatSymbols getDecimalFormatSymbols()
protected int getPrecision()
protected void setPrecision(int precision)
precision
- The precision to set.public final void setCoordinatePrecision(int precision)
setCoordinatePrecision
in interface IlvCoordinateFormatter
precision
- precision to use for displaying coordinates.IlvCoordinateFormatter.setCoordinatePrecision(int)
public void setEllipsoid(IlvEllipsoid ellipsoid)
setEllipsoid
in interface IlvCoordinateFormatter
ellipsoid
- ellipsoid to use for conversions.IlvCoordinateFormatter.setEllipsoid(ilog.views.maps.projection.IlvEllipsoid)
public final void setOutputSeparator(String separator)
setOutputSeparator
in interface IlvCoordinateFormatter
separator
- the separator string.IlvCoordinateFormatter.setOutputSeparator(java.lang.String)
public final void setParseSeparator(char separator)
setParseSeparator
in interface IlvCoordinateFormatter
separator
- the separator characterIlvCoordinateFormatter.setParseSeparator(char)
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
stream
- the output streamIOException
- thrown when an exception occurs during
the write operation for this object.IlvPersistentObject.write(ilog.views.io.IlvOutputStream)
protected IlvEllipsoid getEllipsoid()
public String getInputSeparator()
public String getOutputSeparator()
getOutputSeparator
in interface IlvCoordinateFormatter
protected abstract void setupFormatters()
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.