|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.text.Format org.geotools.measure.CoordinateFormat org.geotools.pt.CoordinateFormat
CoordinateFormat
in the org.geotools.measure
package.
Format a CoordinatePoint
in an arbitrary CoordinateSystem
.
Nested Class Summary |
Nested classes inherited from class java.text.Format |
java.text.Format.Field |
Constructor Summary | |
CoordinateFormat()
Deprecated. Construct a new coordinate format with default locale and WGS 1984 coordinate system. |
|
CoordinateFormat(java.util.Locale locale)
Deprecated. Construct a new coordinate format for the specified locale and WGS 1984 coordinate system. |
|
CoordinateFormat(java.util.Locale locale,
CoordinateSystem cs)
Deprecated. Construct a new coordinate format for the specified locale and coordinate system. |
Method Summary | |
java.lang.String |
format(CoordinatePoint point)
Deprecated. Formats a coordinate point. |
java.lang.StringBuffer |
format(CoordinatePoint point,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition position)
Deprecated. Formats a coordinate point and appends the resulting text to a given string buffer. |
java.lang.StringBuffer |
format(java.lang.Object object,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition position)
Deprecated. Formats a coordinate point and appends the resulting text to a given string buffer. |
CoordinateSystem |
getCoordinateSystem()
Deprecated. Returns the coordinate system for points to be formatted. |
void |
setCoordinateSystem(CoordinateSystem cs)
Deprecated. Set the coordinate system for points to be formatted. |
Methods inherited from class org.geotools.measure.CoordinateFormat |
format, format, getCoordinateReferenceSystem, getFormat, getSeparator, parseObject, setAnglePattern, setCoordinateReferenceSystem, setDatePattern, setNumberPattern, setSeparator, setTimeZone |
Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CoordinateFormat()
public CoordinateFormat(java.util.Locale locale)
locale
- The locale for formatting coordinates and numbers.public CoordinateFormat(java.util.Locale locale, CoordinateSystem cs)
locale
- The locale for formatting coordinates and numbers.cs
- The output coordinate system.Method Detail |
public CoordinateSystem getCoordinateSystem()
public void setCoordinateSystem(CoordinateSystem cs)
cs
- The new coordinate system.public java.lang.String format(CoordinatePoint point)
point
- The CoordinatePoint
to format.
java.lang.IllegalArgumentException
- if this CoordinateFormat
cannot format the given object.public java.lang.StringBuffer format(CoordinatePoint point, java.lang.StringBuffer toAppendTo, java.text.FieldPosition position) throws java.lang.IllegalArgumentException
point
- The CoordinatePoint
to format.toAppendTo
- Where the text is to be appended.position
- A FieldPosition
identifying a field in the formatted text,
or null
if none.
toAppendTo
, with formatted
text appended.
java.lang.IllegalArgumentException
- if this CoordinateFormat
cannot format the given object.public java.lang.StringBuffer format(java.lang.Object object, java.lang.StringBuffer toAppendTo, java.text.FieldPosition position) throws java.lang.IllegalArgumentException
format
in class CoordinateFormat
object
- The CoordinatePoint
to format.toAppendTo
- Where the text is to be appended.position
- A FieldPosition
identifying a field in the formatted text,
or null
if none.
toAppendTo
, with formatted
text appended.
java.lang.NullPointerException
- if toAppendTo
is null.
java.lang.IllegalArgumentException
- if this CoordinateFormat
cannot format the given object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |