|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScaleFormat
Provides access to scale formatting options.
Method Summary | |
---|---|
double |
calcMapUnitValue(double absoluteScale)
Calculate the number of map units corresponding to the specified page units at the given absolute scale. |
String |
getCustomFormat()
A string defining the scale format. |
String |
getEquals()
The text used for 'equals', i.e., ' = ' in 1 inch = 5 miles. |
int |
getFormat()
Format used to display scale, i.e., 1:20000 or 1 inch equals 5 miles. |
int |
getMapUnits()
The map units used to display a scale, i.e., the 'miles' in 1 inch = 5 miles. |
INumberFormat |
getNumberFormat()
Format used to display scale value, i.e., 20,000. |
int |
getPageUnits()
The page units used to display a scale, i.e., the 'inch' in 1 inch = 5 miles. |
double |
getPageUnitValue()
The number preceding the page units in a scale, i.e., the '1' in 1 inch = 5 miles. |
String |
getSeparator()
Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000. |
boolean |
isAbbreviateUnits()
Abbreviate the units in the scale string. |
boolean |
isCapitolizeUnits()
Capitolize the units in the scale string. |
boolean |
isReverseOrder()
Reverse the standard order [1:1000] becomes [1000:1] and [1 in = 10 mi] becomes [10 mi = 1 in]. |
void |
loadFromRegistry()
Obtain the scale format to the system default. |
void |
saveToRegistry()
Store the scale format as the system default. |
String |
scaleToString(double scale)
Convert the absolute scale to a string using the current IScaleFormat attributes. |
void |
setAbbreviateUnits(boolean flag)
Abbreviate the units in the scale string. |
void |
setCapitolizeUnits(boolean flag)
Capitolize the units in the scale string. |
void |
setCustomFormat(String format)
A string defining the scale format. |
void |
setEquals(String text)
The text used for 'equals', i.e., ' = ' in 1 inch = 5 miles. |
void |
setFormat(int format)
Format used to display scale, i.e., 1:20000 or 1 inch equals 5 miles. |
void |
setMapUnits(int units)
The map units used to display a scale, i.e., the 'miles' in 1 inch = 5 miles. |
void |
setNumberFormat(INumberFormat format)
Format used to display scale value, i.e., 20,000. |
void |
setPageUnits(int units)
The page units used to display a scale, i.e., the 'inch' in 1 inch = 5 miles. |
void |
setPageUnitValue(double value)
The number preceding the page units in a scale, i.e., the '1' in 1 inch = 5 miles. |
void |
setReverseOrder(boolean flag)
Reverse the standard order [1:1000] becomes [1000:1] and [1 in = 10 mi] becomes [10 mi = 1 in]. |
void |
setSeparator(String separator)
Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000. |
double |
stringToScale(String scaleStr)
Convert the string to an absolute scale using the current IScaleFormat attributes. |
Method Detail |
---|
void setFormat(int format) throws IOException, AutomationException
format
- A com.esri.arcgis.system.esriScaleFormat constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getFormat() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNumberFormat(INumberFormat format) throws IOException, AutomationException
format
- A reference to a com.esri.arcgis.system.INumberFormat (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INumberFormat getNumberFormat() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSeparator(String separator) throws IOException, AutomationException
separator
- The separator (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getSeparator() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPageUnitValue(double value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getPageUnitValue() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPageUnits(int units) throws IOException, AutomationException
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getPageUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setEquals(String text) throws IOException, AutomationException
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getEquals() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMapUnits(int units) throws IOException, AutomationException
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMapUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCapitolizeUnits(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCapitolizeUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAbbreviateUnits(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAbbreviateUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setReverseOrder(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isReverseOrder() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCustomFormat(String format) throws IOException, AutomationException
format
- The format (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getCustomFormat() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double calcMapUnitValue(double absoluteScale) throws IOException, AutomationException
absoluteScale
- The absoluteScale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String scaleToString(double scale) throws IOException, AutomationException
scale
- The scale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double stringToScale(String scaleStr) throws IOException, AutomationException
scaleStr
- The scaleStr (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void saveToRegistry() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void loadFromRegistry() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |