|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILatLonFormat
Provides access to members that format Latitudes and Longitudes.
The members in the ILatLonFormat interface define how the ValueToString method in the associated INumberFormat interface formats numbers.
The LatLonFormat coclass also inherits the INumericFormat interface, so both these interface's properties determine how numbers are formatted.
Use the ILatLonFormat interface to format numbers that represent a latitude or longitude.
ILatLonFormat2
,
IDMSGridLabel.getLabelType()
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
IDMSGridLabel
,
esriDMSGridLabelType
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
Method Summary | |
---|---|
void |
getDMS(double value,
int[] degrees,
int[] minutes,
double[] seconds)
Obtains the degrees, minutes, and seconds for a lat/lon number. |
boolean |
isShowDirections()
Indicates if a directional letter (N-S-E-W) is appended to the formatted number. |
boolean |
isShowZeroMinutes()
Indicates if zero minutes are included in formatted output. |
boolean |
isShowZeroSeconds()
Indicates if zero seconds are included in formatted output. |
void |
setIsLatitude(boolean rhs1)
Indicates if a formatted number is a latitude or not. |
void |
setShowDirections(boolean show)
Indicates if a directional letter (N-S-E-W) is appended to the formatted number. |
void |
setShowZeroMinutes(boolean show)
Indicates if zero minutes are included in formatted output. |
void |
setShowZeroSeconds(boolean show)
Indicates if zero seconds are included in formatted output. |
Method Detail |
---|
void setShowDirections(boolean show) throws IOException, AutomationException
The ShowDirections property sets or returns an indicator that tells whether to append a directional letter designation (N, S, E, or W) when the ValueToString method in the associated INumberFormat interface formats numbers.
The settings for ShowDirections are:
Setting | Description |
False |
(Default) A directional letter designation is not appended to the format, for example, 270°. |
True |
A directional letter designation is appended to the format, for example, 270°E. |
show
- The show (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
IDMSGridLabel.getLabelType()
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
IDMSGridLabel
,
esriDMSGridLabelType
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
boolean isShowDirections() throws IOException, AutomationException
The ShowDirections property sets or returns an indicator that tells whether to append a directional letter designation (N, S, E, or W) when the ValueToString method in the associated INumberFormat interface formats numbers.
The settings for ShowDirections are:
Setting | Description |
False |
(Default) A directional letter designation is not appended to the format, for example, 270°. |
True |
A directional letter designation is appended to the format, for example, 270°E. |
As an alternative, the ShowPlusSign property from INumericFormat can be used to show similar information since the LatLonFormat coclass also supports this interface.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
IDMSGridLabel.getLabelType()
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
IDMSGridLabel
,
esriDMSGridLabelType
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
void setIsLatitude(boolean rhs1) throws IOException, AutomationException
The IsLatitude property sets an indicator that tells whether the curvature of the coordinate system causes latitude labels to be placed on top or below the dataframe border, or for longitude labels that appear to the right or left of the dataframe border. It also determines the directional label appended to the format when the ValueToString method in the associated INumberFormat interface formats numbers.
The settings for ShowDirections are:
Setting | Description |
False |
(Default) Latitude labels are placed on top of the dataframe border. Longitude labels are placed to the left of the dataframe border. If ShowDirections is True, a directional letter designation of either E or W is appended to the format, for example, 23°E. |
True |
Latitude labels are placed below the dataframe border. Longitude labels are placed to the right of the dataframe border. If ShowDirections is True, a directional letter designation of either N or S is appended to the format, for example, 17°N. |
When used with the IDMSGridLabel interface, it sets an indicator to specify that latitude labels will be placed on top of the data frame border, and longitude labels will be placed to the left of the data frame border. If True, the directional letter will be either N or S; with IDMSGridLabel, latitude labels are placed below the data frame border and longitude labels are placed to the right.
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
IDMSGridLabel.getLabelType()
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
IDMSGridLabel
,
esriDMSGridLabelType
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
void getDMS(double value, int[] degrees, int[] minutes, double[] seconds) throws IOException, AutomationException
The GetDMS method returns the degrees, minutes, and seconds values for a given decimal degree latitudinal or longitudinal value.
To use it you should pass in the input decimal degree value and also pass in three double values representing the output degrees, minutes, and seconds that will be populated by the method.
value
- The value (in)degrees
- The degrees (out: use single element array)minutes
- The minutes (out: use single element array)seconds
- The seconds (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
IDMSGridLabel.getLabelType()
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
IDMSGridLabel
,
esriDMSGridLabelType
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
void setShowZeroMinutes(boolean show) throws IOException, AutomationException
The ShowZeroMinutes property sets or returns an indicator that tells whether or not a zero value in the minutes location is expressed when the ValueToString method in the associated INumberFormat interface formats numbers. Non-zero values are always expressed in the format.
The settings for ShowZeroMinutes are:
Setting | Description |
False |
(Default) Zero values in the minutes location are not shown, for example 17°N . |
True |
Zero values in the minutes location are shown, for example 17°0'N . |
show
- The show (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
boolean isShowZeroMinutes() throws IOException, AutomationException
The ShowZeroMinutes property sets or returns an indicator that tells whether or not a zero value in the minutes location is expressed when the ValueToString method in the associated INumberFormat interface formats numbers. Non-zero values are always expressed in the format.
The settings for ShowZeroMinutes are:
Setting | Description |
False |
(Default) Zero values in the minutes location are not shown, for example 17°N. |
True |
Zero values in the minutes location are shown, for example 17°0'N. |
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
void setShowZeroSeconds(boolean show) throws IOException, AutomationException
The ShowZeroSeconds property sets or returns an indicator that tells whether or not a zero value in the seconds location is expressed when the ValueToString method in the associated INumberFormat interface formats numbers. Non-zero values are always expressed in the format.
The settings for ShowZeroSeconds are:
Setting | Description |
False |
(Default) Zero values in the seconds location are not shown, for example 17°N . |
True |
Zero values in the seconds location are shown, for example 17°0'0"N . |
If ShowZeroSeconds is True, zero values in the minutes location are also shown regardless of the ShowZeroMinutes setting.
show
- The show (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
boolean isShowZeroSeconds() throws IOException, AutomationException
The ShowZeroSeconds property sets or returns an indicator that tells whether or not a zero value in the seconds location is expressed when the ValueToString method in the associated INumberFormat interface formats numbers. Non-zero values are always expressed in the format.
The settings for ShowZeroSeconds are:
Setting | Description |
False |
(Default) Zero values in the seconds location are not shown, for example 17°N . |
True |
Zero values in the seconds location are shown, for example 17°0'0"N . |
If ShowZeroSeconds is True, zero values in the minutes location are also shown regardless of the ShowZeroMinutes setting.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILatLonFormat2
,
CustomNumberFormat
,
IRateFormat
,
IAngleFormat
,
NumericFormat
,
LatLonFormat
,
CurrencyFormat
,
INumericFormat
,
IFractionFormat
,
RateFormat
,
IScientificNumberFormat
,
ICustomNumberFormat
,
ILatLonFormat
,
IPercentageFormat
,
INumberFormat
,
ScientificFormat
,
FractionFormat
,
PercentageFormat
,
AngleFormat
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |