Jeospace API

org.jeospace.text
Class AngleFormatStyle

java.lang.Object
  extended byorg.jeospace.text.AngleFormatStyle

public class AngleFormatStyle
extends java.lang.Object

Constant object identifiers of types of angle usage which defines a style of presentation. A set of predefined style objects are provided to be used when instantiating an AngleFormat.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Field Summary
static AngleFormatStyle ALTITUDE
          Identifier of an altitude angle format style.
static AngleFormatStyle ANGLE
          Identifier of a generic angle format style.
static AngleFormatStyle AZIMUTH
          Identifier of an azimuth angle format style.
static AngleFormatStyle DECLINATION
          Identifier of a declination angle format style.
 Affix directionAffix
          The directional affix setting
static AngleFormatStyle GEOLATITUDE
          Identifier of a geographic latitude angle format style.
static AngleFormatStyle GEOLONGITUDE
          Identifier of a geographic longitude angle format style.
static AngleFormatStyle HOURANGLE
          Identifier of an hour angle format style.
static AngleFormatStyle LATITUDE
          Identifier of a latitude angle format style.
static AngleFormatStyle LONGITUDE
          Identifier of a longitude angle format style.
 Mult mult
          The multiplier object that cooresponds to the desired maximum number of decimal digits
 java.lang.String name
          The name of the angle format style
 AngleNorm norm
          The normalization option identifier
static AngleFormatStyle RADIANS
          Identifier of a radian angle format style.
static AngleFormatStyle REVOLUTIONS
          Identifier of a revolution angle format style.
 AngleSignPair signPair
          The sign convention identifier
 AngleUnit units
          The least significant units to use in formatting
 boolean usePositive
          The flag indicating that if the AngleSign is positive the positive symbol should be used.
 
Constructor Summary
protected AngleFormatStyle(java.lang.String name, Affix directionAffix, AngleSignPair signPair, boolean usePositive, AngleNorm norm, AngleUnit units, Mult mult)
          Restricted constructor
 
Method Summary
 java.lang.String toString()
          Return the name of the AngleFormatStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANGLE

public static final AngleFormatStyle ANGLE
Identifier of a generic angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), no sign for a positive value
	Norm:		None
	Units:		Sexagesimal, Degrees-Minutes-Seconds
	Decimal:	Milliseconds
 
	Example:	57°17'44.806"
 


LATITUDE

public static final AngleFormatStyle LATITUDE
Identifier of a latitude angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), no sign for a positive value
	Norm:		None
	Units:		Sexagesimal, Degrees-Minutes-Seconds
	Decimal:	Milliseconds
 
	Example:	57°17'44.806"
 


GEOLATITUDE

public static final AngleFormatStyle GEOLATITUDE
Identifier of a geographic latitude angle format style.

Default Settings:

 	Sign:		Geographic Suffix ( N/S ), positive sign value used
	Norm:		None
	Units:		Sexagesimal, Degrees-Minutes-Seconds
	Decimal:	Milliseconds
 
	Example:	57°17'44.806"N
 


LONGITUDE

public static final AngleFormatStyle LONGITUDE
Identifier of a longitude angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), no sign for a positive value
	Norm:		Full Revolution
	Units:		Sexagesimal, Degrees-Minutes-Seconds
	Decimal:	Milliseconds
 
	Example:	57°17'44.806"
 


GEOLONGITUDE

public static final AngleFormatStyle GEOLONGITUDE
Identifier of a geographic longitude angle format style.

Default Settings:

 	Sign:		Geographic Suffix ( E / W ), positive sign value used
	Norm:		Half Revolution
	Units:		Sexagesimal, Degrees-Minutes-Seconds
	Decimal:	Milliseconds
 
	Example:	57°17'44.806"E
 


AZIMUTH

public static final AngleFormatStyle AZIMUTH
Identifier of an azimuth angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), no sign for a positive value
	Norm:		Half Revolution
	Units:		Decimal Degrees
	Decimal:	Millis (of degree)
 
	Example:	57.296°
 


ALTITUDE

public static final AngleFormatStyle ALTITUDE
Identifier of an altitude angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), no sign for a positive value
	Norm:		None
	Units:		Decimal Degrees
	Decimal:	Millis (of degree)
 
	Example:	57.296°
 


DECLINATION

public static final AngleFormatStyle DECLINATION
Identifier of a declination angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), positive sign value used
	Norm:		None
	Units:		Sexagesimal, Degrees-Minutes-Seconds
	Decimal:	Milliseconds
 
	Example:	+57°17'44.806"
 


HOURANGLE

public static final AngleFormatStyle HOURANGLE
Identifier of an hour angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), no sign for a positive value
	Norm:		Full Revolution
	Units:		Sexagesimal, Hours-Minutes-Seconds
	Decimal:	Milliseconds (of hour)
 
	Example:	3h49m10.987s
 


RADIANS

public static final AngleFormatStyle RADIANS
Identifier of a radian angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), no sign for a positive value
	Norm:		None
	Units:		Decimal Radians
	Decimal:	Micros (of  radians)
 
	Example:	1.000000rad
 


REVOLUTIONS

public static final AngleFormatStyle REVOLUTIONS
Identifier of a revolution angle format style.

Default Settings:

 	Sign:		Numeric Prefix ( + / - ), no sign for a positive value
	Norm:		None
	Units:		Decimal Revolutions
	Decimal:	Micros (of Radians)
 
	Example:	0.159155rev
 


name

public final java.lang.String name
The name of the angle format style


directionAffix

public final Affix directionAffix
The directional affix setting


signPair

public final AngleSignPair signPair
The sign convention identifier


usePositive

public final boolean usePositive
The flag indicating that if the AngleSign is positive the positive symbol should be used.


norm

public final AngleNorm norm
The normalization option identifier


units

public final AngleUnit units
The least significant units to use in formatting


mult

public final Mult mult
The multiplier object that cooresponds to the desired maximum number of decimal digits

Constructor Detail

AngleFormatStyle

protected AngleFormatStyle(java.lang.String name,
                           Affix directionAffix,
                           AngleSignPair signPair,
                           boolean usePositive,
                           AngleNorm norm,
                           AngleUnit units,
                           Mult mult)
Restricted constructor

Parameters:
name - The name of the angle format style
directionAffix - The directional affix setting
signPair - The sign symbol convention identifier
usePositive - The flag indicating the use of the positive direction symbol
norm - The normalization option identifier
units - The least significant units to use in formatting
mult - The multiplier object that cooresponds to the desired maximum number of decimal digits
Method Detail

toString

public java.lang.String toString()
Return the name of the AngleFormatStyle

Returns:
the name of the AngleFormatStyle

Jeospace API

Copyright © 2006 - jeospace.org