|
JEphem site jephem API Build classes |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tig.Formats
Class containing constants and static methods for formatting outputs.
Called Formats
to distinguish from java.text.Format
.
Field Summary | |
static java.lang.String |
DEG
|
static java.lang.String |
MINUS
|
static java.lang.String |
MINUT
|
static java.lang.String |
SECOND
|
static java.lang.String |
ZERO
|
Constructor Summary | |
Formats()
|
Method Summary | |
static java.lang.String |
addZero(int nb)
Formats a integer to a 2 character long String. |
static java.lang.String |
doubleToDMS(double x)
Expresses a number in format "DMS" (degrees, minuts, seconds). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MINUS
public static final java.lang.String DEG
public static final java.lang.String ZERO
public static final java.lang.String MINUT
public static final java.lang.String SECOND
Constructor Detail |
public Formats()
Method Detail |
public static java.lang.String doubleToDMS(double x)
186.5
will be transformed to 186°30'00"
;
-6.5
will be transformed to -6°30'00"
.
x
must be reduced to its correct interval (ex [0, 360[)
before calling this method.
x
- any number.
x
expressed in "DMS" format.public static java.lang.String addZero(int nb)
nb
- integer number to format.
nb
:
0 <= nb <= 9
, "0" followed by the digit ;10 <= nb <= 99
, the two digits ;nb < 0 or nb > 100
, the String "xx".
|
JEphem site jephem API Build classes |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |