|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.geometry.io.DecimalCoordinateFormatter
public class DecimalCoordinateFormatter
CoordinateFormatter
based on DecimalFormat
.
Constructor Summary | |
---|---|
DecimalCoordinateFormatter(java.text.DecimalFormat decimalFormat)
Creates a new DecimalCoordinateFormatter instance from the given DecimalFormat . |
|
DecimalCoordinateFormatter(int decimalPlaces)
Creates a new DecimalCoordinateFormatter instance that uses the specified number of decimal places. |
Method Summary | |
---|---|
java.lang.String |
format(double number)
Returns the formatted string representation of the given ordinate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DecimalCoordinateFormatter(int decimalPlaces)
DecimalCoordinateFormatter
instance that uses the specified number of decimal places.
decimalPlaces
- number of decimal placespublic DecimalCoordinateFormatter(java.text.DecimalFormat decimalFormat)
DecimalCoordinateFormatter
instance from the given DecimalFormat
.
decimalFormat
- decimalFormat to use for formatting, must not be null
Method Detail |
---|
public java.lang.String format(double number)
CoordinateFormatter
format
in interface CoordinateFormatter
number
- ordinate to be formatted
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |