|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.measure.angle.SexagesimalAngleUnit
Constant object identifiers of the units of sexigesimal angle representations.
The primary (most significant) units of a sexigesimal angle
distinguish it's SexagesimalAngleType.
A SexagesimalAngleType.DMS is sub-united into Degrees, Minutes, Seconds (and Microseconds)
A SexagesimalAngleType.HMS is sub-united into Hours, Minutes, Seconds (and Microseconds)
Angle,
DecimalAngle,
SexagesimalAngle| Field Summary | |
double |
degrees
The value of a single unit in decimal degrees |
static SexagesimalAngleUnit |
DEGREES
Constant identifier for units of degrees |
static SexagesimalAngleUnit |
HOURS
Constant identifier for units of hours |
int |
index
The index of the sub-unit within the sexigesimal type |
long |
micros
The value of a single unit in microseconds of degree |
static SexagesimalAngleUnit |
MICROSECONDS_OF_DEGREE
Constant identifier for units of microseconds of degree |
static SexagesimalAngleUnit |
MICROSECONDS_OF_HOUR
Constant identifier for units of microseconds of hour |
static int |
MINUTE_INDEX
Minute unit index |
static SexagesimalAngleUnit |
MINUTES_OF_DEGREE
Constant identifier for units of minutes of degree |
static SexagesimalAngleUnit |
MINUTES_OF_HOUR
Constant identifier for units of minutes of hour |
java.lang.String |
name
The name of the unit of angle |
static int |
PRIMARY_INDEX
Primary unit index |
static int |
SECOND_INDEX
Second unit index |
static SexagesimalAngleUnit |
SECONDS_OF_DEGREE
Constant identifier for units of seconds of degree |
static SexagesimalAngleUnit |
SECONDS_OF_HOUR
Constant identifier for units of seconds of hour |
java.lang.String |
symbol
The symbol of the unit of angle |
SexagesimalAngleType |
type
The sexagesimal type of the unit |
| Constructor Summary | |
protected |
SexagesimalAngleUnit(java.lang.String name,
java.lang.String symbol,
SexagesimalAngleType type,
int index,
double degrees,
long micros)
Construct a SexagesimalAngleUnit object. |
| Method Summary | |
double |
getDegrees()
Return the double value of the unit in degrees. |
long |
getMicros()
Return the long value of the unit in microseconds of degree. |
static SexagesimalAngleUnit[] |
getSexagesimalAngleUnits()
Return an array of the defined SexagesimalAngleUnit objects |
java.lang.String |
toString()
Return a String representation ( the name String ) of this SexagesimalAngleUnit object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int PRIMARY_INDEX
public static final int MINUTE_INDEX
public static final int SECOND_INDEX
public static final SexagesimalAngleUnit DEGREES
public static final SexagesimalAngleUnit MINUTES_OF_DEGREE
public static final SexagesimalAngleUnit SECONDS_OF_DEGREE
public static final SexagesimalAngleUnit MICROSECONDS_OF_DEGREE
public static final SexagesimalAngleUnit HOURS
public static final SexagesimalAngleUnit MINUTES_OF_HOUR
public static final SexagesimalAngleUnit SECONDS_OF_HOUR
public static final SexagesimalAngleUnit MICROSECONDS_OF_HOUR
public final java.lang.String name
public final java.lang.String symbol
public final SexagesimalAngleType type
public final int index
public final double degrees
public final long micros
| Constructor Detail |
protected SexagesimalAngleUnit(java.lang.String name,
java.lang.String symbol,
SexagesimalAngleType type,
int index,
double degrees,
long micros)
SexagesimalAngleUnit object.
name - the sub-unit of sexigesimal anglesymbol - the unit of angle's symboltype - the SexagesimalAngleType of which this is a sub-unitindex - the index of the sub-unit within the sexigesimal typedegrees - the double value of a single unit in decimal degreesmicros - the long value of a single unit in microseconds of degree| Method Detail |
public double getDegrees()
double value of the unit in degrees.
getDegrees in interface AngleUnitdouble value of the unit in degrees.public long getMicros()
long value of the unit in microseconds of degree.
getMicros in interface AngleUnitlong value of the unit in microseconds of degree.public static SexagesimalAngleUnit[] getSexagesimalAngleUnits()
SexagesimalAngleUnit objects
SexagesimalAngleUnit objectspublic java.lang.String toString()
SexagesimalAngleUnit object.
SexagesimalAngleUnit object
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||