|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.IlvAbstractCoordinateFormatter
public abstract class IlvAbstractCoordinateFormatter
This abstract coordinate system is the manages common formatter properties such as:
| Constructor Summary | |
|---|---|
IlvAbstractCoordinateFormatter()
Default constructor. |
|
IlvAbstractCoordinateFormatter(IlvInputStream stream)
Creates a new IlvDefaultAltitudeProvider from an
IlvInputStream. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Overrides deep comparison equals. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.views.maps.IlvCoordinateFormatter |
|---|
getAngleString, getLatitude, getLongitude, parse, setLonLat, toString |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
protected int getPrecision()
protected void setPrecision(int precision)
precision - The precision to set.public final void setCoordinatePrecision(int precision)
setCoordinatePrecision in interface IlvCoordinateFormatterprecision - precision to use for displaying coordinates.IlvCoordinateFormatter.setCoordinatePrecision(int)public void setEllipsoid(IlvEllipsoid ellipsoid)
setEllipsoid in interface IlvCoordinateFormatterellipsoid - ellipsoid to use for conversions.IlvCoordinateFormatter.setEllipsoid(ilog.views.maps.projection.IlvEllipsoid)public final void setOutputSeparator(String separator)
setOutputSeparator in interface IlvCoordinateFormatterseparator - the separator string.IlvCoordinateFormatter.setOutputSeparator(java.lang.String)public final void setParseSeparator(char separator)
setParseSeparator in interface IlvCoordinateFormatterseparator - the separator characterIlvCoordinateFormatter.setParseSeparator(char)
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectstream - the output stream
IOException - 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 IlvCoordinateFormatterprotected abstract void setupFormatters()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class ObjectObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||