|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScaleText
Provides access to members that control the scale text.
ScaleText is essentially a text element that describes the map’s scale. One example of scale text is “1 inch equals 2,400 miles”.
The interface IScaleText controls the format of the string that is added as a map surround element.
Text returns the text displayed e.g. “1 inch equals 2,400 miles”.
Symbol is a text symbol that you may access to modify its appearance.
NumberFormat is an INumberFormat that allows you for instance to modify the number of decimals used to display the map units.
The MapUnits and PageUnits are esriUnits and will initially reflect the current map units and page layout units. They can be set to any units to suit your needs.
The MapUnitLabel and PageUnitLabel are the labels describing the units used in the scale text. For instance, "kilometers" which you may change to "km" by setting the MapUnitLabel property.
The Style property is an esriScaleTextStyleEnum and can take two values defining if the scale text type is relative - “1 inch equals 2,400 miles” - or absolute - "1:200,000". Relative scale text is the default.
The Format property is not currently implemented.
There is no way to change the text in any other way than those listed here except by converting the Scale Text to graphics after it has been created or reading the text it returns and create your own text element to display it but the resulting scale will not be linked to the scale of the map frame anymore.
Method Summary | |
---|---|
String |
getFormat()
Format of the scale text. |
String |
getMapUnitLabel()
Map unit label of the scale text. |
int |
getMapUnits()
Map units of the scale text. |
INumberFormat |
getNumberFormat()
Number formatting. |
String |
getPageUnitLabel()
Page unit label of the scale text. |
int |
getPageUnits()
Page units of the scale text. |
int |
getStyle()
Style of the scale text. |
ITextSymbol |
getSymbol()
Symbol of the scale text. |
String |
getText()
The scale text. |
void |
setFormat(String format)
Format of the scale text. |
void |
setMapUnitLabel(String label)
Map unit label of the scale text. |
void |
setMapUnits(int units)
Map units of the scale text. |
void |
setNumberFormat(INumberFormat format)
Number formatting. |
void |
setPageUnitLabel(String label)
Page unit label of the scale text. |
void |
setPageUnits(int units)
Page units of the scale text. |
void |
setStyle(int style)
Style of the scale text. |
void |
setSymbol(ITextSymbol symbol)
Symbol of the scale text. |
Methods inherited from interface com.esri.arcgis.carto.IMapSurround |
---|
delayEvents, draw, fitToBounds, getIcon, getMap, getName, queryBounds, refresh, setMapByRef, setName |
Method Detail |
---|
String getText() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSymbol(ITextSymbol symbol) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.ITextSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITextSymbol getSymbol() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStyle(int style) throws IOException, AutomationException
style
- A com.esri.arcgis.carto.esriScaleTextStyleEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getStyle() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFormat(String format) throws IOException, AutomationException
format
- The format (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getFormat() 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 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 setPageUnitLabel(String label) throws IOException, AutomationException
label
- The label (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getPageUnitLabel() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMapUnitLabel(String label) throws IOException, AutomationException
label
- The label (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getMapUnitLabel() 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |