|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.geometry.io.DecimalCoordinateFormatter
public class DecimalCoordinateFormatter
CoordinateFormatter
based on DecimalFormat
.
Field Summary | |
---|---|
static int |
DEFAULT_PLACES
Number of decimal places used by default (6). |
Constructor Summary | |
---|---|
DecimalCoordinateFormatter()
Creates a new DecimalCoordinateFormatter instance that uses DEFAULT_PLACES . |
|
DecimalCoordinateFormatter(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. |
|
DecimalCoordinateFormatter(IUnit uom)
Creates a new DecimalCoordinateFormatter instance suitable for the specified Unit . |
Method Summary | |
---|---|
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 |
Field Detail |
---|
public static final int DEFAULT_PLACES
Constructor Detail |
---|
public DecimalCoordinateFormatter()
DecimalCoordinateFormatter
instance that uses DEFAULT_PLACES
.
public DecimalCoordinateFormatter(IUnit uom)
DecimalCoordinateFormatter
instance suitable for the specified Unit
.
uom
- unit-of-measure, may be null
public DecimalCoordinateFormatter(int decimalPlaces)
DecimalCoordinateFormatter
instance that uses the specified number of decimal places.
decimalPlaces
- number of decimal placespublic DecimalCoordinateFormatter(DecimalFormat decimalFormat)
DecimalCoordinateFormatter
instance from the given DecimalFormat
.
decimalFormat
- decimalFormat to use for formatting, must not be null
Method Detail |
---|
public 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 |