Jeospace API

org.jeospace.text
Class AngleFormatSymbols

java.lang.Object
  extended byorg.jeospace.text.AngleFormatSymbols
All Implemented Interfaces:
java.lang.Cloneable

public class AngleFormatSymbols
extends java.lang.Object
implements java.lang.Cloneable

Defines the localizable symbols and separators used by AngleFormat. This class can be instanciated and manipulated to support an unsupported locale.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton
See Also:
AngleFormat

Constructor Summary
AngleFormatSymbols()
          Construct an AngleFormatSymbols object initialized to the default locale.
AngleFormatSymbols(java.util.Locale locale)
          Construct an AngleFormatSymbols object initialized to the specified locale.
 
Method Summary
 java.lang.Object clone()
          Return a copy of this AngleFormatSymbols object.
 boolean equals(java.lang.Object obj)
          Compare two AngleFormatSymbols for equality.
 java.lang.String getDecimalSeparator()
          Return the string used for decimal sign
 java.lang.String getDegreeSymbol()
          Return the String representing degrees.
 java.lang.String getDirectionAffixSeparator()
          Return the string used to separate the direction affix from the numeric portion of the angle.
 java.lang.String getEastDirectionSymbol()
          Return the string representing the direction East.
 java.lang.String getHourSymbol()
          Return the String representing hours.
 java.lang.String getMinutesOfDegreeSymbol()
          Return the String representing minutes of degree.
 java.lang.String getMinutesOfHourSymbol()
          Return the String representing minutes of hour.
 java.lang.String getNegativeDirectionSymbol()
          Return the string representing a negative direction.
 java.lang.String getNorthDirectionSymbol()
          Return the string representing the direction North.
 java.lang.String getPositiveDirectionSymbol()
          Return the string representing a positive direction.
 java.lang.String getRadianSymbol()
          Return the String representing radians.
 java.lang.String getRevolutionSymbol()
          Return the String representing revolutions.
 java.lang.String getSecondsOfDegreeSymbol()
          Return the String representing seconds of degree.
 java.lang.String getSecondsOfHourSymbol()
          Return the String representing seconds of hour.
 java.lang.String getSexagesimalFieldSeparator()
          Return the string used to separate the sexagesimal fields
 java.lang.String getSouthDirectionSymbol()
          Return the string representing the direction South.
 java.lang.String getWestDirectionSymbol()
          Return the string representing the direction West.
 int hashCode()
          Generate a hash code for the AngleFormatSymbols object.
 void setDecimalSeparator(java.lang.String decimalSeparator)
          Set the string used for decimal sign
 void setDegreeSymbol(java.lang.String degreeSymbol)
          Set the String representing degrees.
 void setDirectionAffixSeparator(java.lang.String directionAffixSeparator)
          Set the string used to separate the direction affix from numeric portion of the angle.
 void setEastDirectionSymbol(java.lang.String eastDirectionSymbol)
          Set the string representing the direction East.
 void setHourSymbol(java.lang.String hourSymbol)
          Set the String representing hours.
 void setMinutesOfDegreeSymbol(java.lang.String minutesOfDegreeSymbol)
          Set the String representing minutes of degree.
 void setMinutesOfHourSymbol(java.lang.String minutesOfHourSymbol)
          Set the String representing minutes of hour.
 void setNegativeDirectionSymbol(java.lang.String negativeDirectionSymbol)
          Set the string representing a negative direction.
 void setNorthDirectionSymbol(java.lang.String northDirectionSymbol)
          Set the string representing the direction North.
 void setPositiveDirectionSymbol(java.lang.String positiveDirectionSymbol)
          Set the string representing a positive direction.
 void setRadianSymbol(java.lang.String radianSymbol)
          Set the String representing radians.
 void setRevolutionSymbol(java.lang.String revolutionSymbol)
          Set the String representing revolutions.
 void setSecondsOfDegreeSymbol(java.lang.String secondsOfDegreeSymbol)
          Set the String representing seconds of degree.
 void setSecondsOfHourSymbol(java.lang.String secondsOfHourSymbol)
          Set the String representing seconds of hour.
 void setSexagesimalFieldSeparator(java.lang.String sexagesimalFieldSeparator)
          Set the string used to separate the sexagesimal fields
 void setSouthDirectionSymbol(java.lang.String southDirectionSymbol)
          Set the string representing the direction South.
 void setWestDirectionSymbol(java.lang.String westDirectionSymbol)
          Set the string representing the direction West.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AngleFormatSymbols

public AngleFormatSymbols()
Construct an AngleFormatSymbols object initialized to the default locale.


AngleFormatSymbols

public AngleFormatSymbols(java.util.Locale locale)
Construct an AngleFormatSymbols object initialized to the specified locale.

Parameters:
locale - the locale
Method Detail

getPositiveDirectionSymbol

public java.lang.String getPositiveDirectionSymbol()
Return the string representing a positive direction. Typically "+".

Returns:
the positive direction string

getNegativeDirectionSymbol

public java.lang.String getNegativeDirectionSymbol()
Return the string representing a negative direction. Typically "-".

Returns:
the negative direction string

getEastDirectionSymbol

public java.lang.String getEastDirectionSymbol()
Return the string representing the direction East.
Example: positive geographic longitudes are often suffixed with the symbol that represents East.

Returns:
the the direction East string

getWestDirectionSymbol

public java.lang.String getWestDirectionSymbol()
Return the string representing the direction West.
Example: negative geographic longitudes are often suffixed with the symbol that represents West.

Returns:
the the direction West string

getNorthDirectionSymbol

public java.lang.String getNorthDirectionSymbol()
Return the string representing the direction North.
Example: positive geographic latitudes are often suffixed with the symbol that represents North.

Returns:
the the direction North string

getSouthDirectionSymbol

public java.lang.String getSouthDirectionSymbol()
Return the string representing the direction South.
Example: negative geographic latitudes are often suffixed with the symbol that represents South.

Returns:
the the direction South string

getDegreeSymbol

public java.lang.String getDegreeSymbol()
Return the String representing degrees.

Returns:
the degree symbol

getMinutesOfDegreeSymbol

public java.lang.String getMinutesOfDegreeSymbol()
Return the String representing minutes of degree.

Returns:
the minutes of degree symbol

getSecondsOfDegreeSymbol

public java.lang.String getSecondsOfDegreeSymbol()
Return the String representing seconds of degree.

Returns:
the seconds of degree symbol

getHourSymbol

public java.lang.String getHourSymbol()
Return the String representing hours.

Returns:
the hour symbol

getMinutesOfHourSymbol

public java.lang.String getMinutesOfHourSymbol()
Return the String representing minutes of hour.

Returns:
the minutes of hour symbol

getSecondsOfHourSymbol

public java.lang.String getSecondsOfHourSymbol()
Return the String representing seconds of hour.

Returns:
the seconds of hour symbol

getRadianSymbol

public java.lang.String getRadianSymbol()
Return the String representing radians.

Returns:
the radian symbol

getRevolutionSymbol

public java.lang.String getRevolutionSymbol()
Return the String representing revolutions.

Returns:
the revolution symbol

getDirectionAffixSeparator

public java.lang.String getDirectionAffixSeparator()
Return the string used to separate the direction affix from the numeric portion of the angle.

Returns:
the direction affix separator string

This string is typically blank or contains spaces.


getDecimalSeparator

public java.lang.String getDecimalSeparator()
Return the string used for decimal sign

Returns:
the decimal separator string

getSexagesimalFieldSeparator

public java.lang.String getSexagesimalFieldSeparator()
Return the string used to separate the sexagesimal fields

Returns:
the sexagesimal field separator string

setPositiveDirectionSymbol

public void setPositiveDirectionSymbol(java.lang.String positiveDirectionSymbol)
Set the string representing a positive direction.

Parameters:
positiveDirectionSymbol - the positive direction string

setNegativeDirectionSymbol

public void setNegativeDirectionSymbol(java.lang.String negativeDirectionSymbol)
Set the string representing a negative direction.

Parameters:
negativeDirectionSymbol - the negative direction string

setEastDirectionSymbol

public void setEastDirectionSymbol(java.lang.String eastDirectionSymbol)
Set the string representing the direction East.

Parameters:
eastDirectionSymbol - the positive direction string

setWestDirectionSymbol

public void setWestDirectionSymbol(java.lang.String westDirectionSymbol)
Set the string representing the direction West.

Parameters:
westDirectionSymbol - the negative direction string

setNorthDirectionSymbol

public void setNorthDirectionSymbol(java.lang.String northDirectionSymbol)
Set the string representing the direction North.

Parameters:
northDirectionSymbol - the positive direction string

setSouthDirectionSymbol

public void setSouthDirectionSymbol(java.lang.String southDirectionSymbol)
Set the string representing the direction South.

Parameters:
southDirectionSymbol - the negative direction string

setDegreeSymbol

public void setDegreeSymbol(java.lang.String degreeSymbol)
Set the String representing degrees.

Parameters:
degreeSymbol - the degree symbol

setMinutesOfDegreeSymbol

public void setMinutesOfDegreeSymbol(java.lang.String minutesOfDegreeSymbol)
Set the String representing minutes of degree.

Parameters:
minutesOfDegreeSymbol - the minutes of degree symbol

setSecondsOfDegreeSymbol

public void setSecondsOfDegreeSymbol(java.lang.String secondsOfDegreeSymbol)
Set the String representing seconds of degree.

Parameters:
secondsOfDegreeSymbol - the seconds of degree symbol

setHourSymbol

public void setHourSymbol(java.lang.String hourSymbol)
Set the String representing hours.

Parameters:
hourSymbol - the hour symbol

setMinutesOfHourSymbol

public void setMinutesOfHourSymbol(java.lang.String minutesOfHourSymbol)
Set the String representing minutes of hour.

Parameters:
minutesOfHourSymbol - the minutes of hour symbol

setSecondsOfHourSymbol

public void setSecondsOfHourSymbol(java.lang.String secondsOfHourSymbol)
Set the String representing seconds of hour.

Parameters:
secondsOfHourSymbol - the seconds of hour symbol

setRadianSymbol

public void setRadianSymbol(java.lang.String radianSymbol)
Set the String representing radians.

Parameters:
radianSymbol - the radian symbol

setRevolutionSymbol

public void setRevolutionSymbol(java.lang.String revolutionSymbol)
Set the String representing revolutions.

Parameters:
revolutionSymbol - the revolution symbol

setDirectionAffixSeparator

public void setDirectionAffixSeparator(java.lang.String directionAffixSeparator)
Set the string used to separate the direction affix from numeric portion of the angle.

Parameters:
directionAffixSeparator - the direction affix separator string

setDecimalSeparator

public void setDecimalSeparator(java.lang.String decimalSeparator)
Set the string used for decimal sign

Parameters:
decimalSeparator - the decimal separator string

setSexagesimalFieldSeparator

public void setSexagesimalFieldSeparator(java.lang.String sexagesimalFieldSeparator)
Set the string used to separate the sexagesimal fields

Parameters:
sexagesimalFieldSeparator - the sexagesimal field separator string

clone

public java.lang.Object clone()
Return a copy of this AngleFormatSymbols object. Overrides Cloneable.

Returns:
a copy of this AngleFormatSymbols object.

hashCode

public int hashCode()
Generate a hash code for the AngleFormatSymbols object.


equals

public boolean equals(java.lang.Object obj)
Compare two AngleFormatSymbols for equality. The result is true if and only if the argument object is not null, is an AngleFormatSymbols object and contains the same symbol set as this AngleFormatSymbols object.

Parameters:
obj - the object to compare with
Returns:
true if the AngleFormatSymbols are the same; false otherwise.

Jeospace API

Copyright © 2006 - jeospace.org