|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDimensionStyleText
Provides access to members that control a dimension style's text.
The IDimensionStyleText interface contains properties that control how the text of a dimension feature is displayed.
The Align property will force the text to align to the angle of the DimensionLine. If the Align property is False, the TextSymbol’s angle will be used. The ConvertUnits property specifies if the value of the text will be converted from the feature class’s native units to the units of the DisplayUnits property. The text can be formatted using the DisplayPrecision property and the TextDisplay property. The esriDimensionTextDisplay enumeration defines four values for formatting the text string:
esriDimensionTDValueOnly - Displays only the numeric value.
esriDimensionTDPrefixSuffix - Displays the numeric value with the Prefix and Suffix property.
esriDimensionTDExpression - Evaluate the numeric value in the code expression.
esriDimensionTDNone - Do not display text.
The text string can also be determined from an expression specified in the Expression property. The expression can be a simple concatenation of column values and strings or a function written in scripting language. The name of the parser for the expression should be specified in the ExpressionParserName property. The currently available parsers are “VB Script” and “Java Script”.
The TextFit property determines where the text will be placed if it does not fit between the markers after they have been moved (due to marker fit settings). The esriDimensionTextFit enumeration defines three values for this behavior:
esriDimensionTextFitNone - Do not move text.
esriDimensionTextFitMoveBegin - Move text to beginning dimension line.
esriDimensionTextFitMoveEnd - Move text to ending dimension line.
When the markers are moved because of a fit, a line will be drawn between the markers based on the DrawLineOnFit property.
Method Summary | |
---|---|
int |
getDisplayPrecision()
Precision for the value displayed by the dimension text. |
int |
getDisplayUnits()
Units the length of the dimension text is displayed in. |
String |
getExpression()
Text expression for the style. |
String |
getExpressionParserName()
Text expression parser for the text expression for the style. |
String |
getPrefix()
Prefix for the text expression for the style. |
String |
getSuffix()
Suffix for the text expression for the style. |
int |
getTextDisplay()
Text display setting for the style. |
int |
getTextFit()
Text fit policy for the style. |
ITextSymbol |
getTextSymbol()
Symbol used for the text. |
boolean |
isAlign()
Indicates if the text should be aligned with the dimension line. |
boolean |
isConvertUnits()
Indicates if the length of the dimension needs to be converted for display. |
boolean |
isExpressionSimple()
Indicates if the text expression is simple or custom for the style. |
boolean |
isExtendLineOnFit()
Indicates if the dimension line will be extended to underline the text on inward dimensions. |
void |
setAlign(boolean align)
Indicates if the text should be aligned with the dimension line. |
void |
setConvertUnits(boolean convert)
Indicates if the length of the dimension needs to be converted for display. |
void |
setDisplayPrecision(int precision)
Precision for the value displayed by the dimension text. |
void |
setDisplayUnits(int units)
Units the length of the dimension text is displayed in. |
void |
setExpression(String expression)
Text expression for the style. |
void |
setExpressionParserName(String name)
Text expression parser for the text expression for the style. |
void |
setExpressionSimple(boolean isSimple)
Indicates if the text expression is simple or custom for the style. |
void |
setExtendLineOnFit(boolean draw)
Indicates if the dimension line will be extended to underline the text on inward dimensions. |
void |
setPrefix(String prefix)
Prefix for the text expression for the style. |
void |
setSuffix(String suffix)
Suffix for the text expression for the style. |
void |
setTextDisplay(int display)
Text display setting for the style. |
void |
setTextFit(int fit)
Text fit policy for the style. |
void |
setTextSymbol(ITextSymbol symbol)
Symbol used for the text. |
Method Detail |
---|
void setTextSymbol(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 getTextSymbol() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAlign(boolean align) throws IOException, AutomationException
align
- The align (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAlign() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDisplayUnits(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 getDisplayUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setConvertUnits(boolean convert) throws IOException, AutomationException
convert
- The convert (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isConvertUnits() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDisplayPrecision(int precision) throws IOException, AutomationException
precision
- The precision (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDisplayPrecision() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextDisplay(int display) throws IOException, AutomationException
The esriDimensionTextDisplay enumeration defines four values for formatting the text string:
esriDimensionTDValueOnly - Displays only the numeric value.
esriDimensionTDPrefixSuffix - Displays the numeric value with the Prefix and Suffix property.
esriDimensionTDExpression - Evaluate the numeric value in the code expression.
esriDimensionTDNone - Do not display text.
display
- A com.esri.arcgis.carto.esriDimensionTextDisplay constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTextDisplay() throws IOException, AutomationException
The esriDimensionTextDisplay enumeration defines four values for formatting the text string:
esriDimensionTDValueOnly - Displays only the numeric value.
esriDimensionTDPrefixSuffix - Displays the numeric value with the Prefix and Suffix property.
esriDimensionTDExpression - Evaluate the numeric value in the code expression.
esriDimensionTDNone - Do not display text.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExpression(String expression) throws IOException, AutomationException
The text string can also be determined from an expression specified in the Expression property. The expression can be a simple concatenation of column values and strings or a function written in scripting language. The name of the parser for the expression should be specified in the ExpressionParserName property. The currently available parsers are “VB Script” and “Java Script”.
expression
- The expression (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getExpression() throws IOException, AutomationException
The text string can also be determined from an expression specified in the Expression property. The expression can be a simple concatenation of column values and strings or a function written in scripting language. The name of the parser for the expression should be specified in the ExpressionParserName property. The currently available parsers are “VB Script” and “Java Script”.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExpressionParserName(String name) throws IOException, AutomationException
The text string can also be determined from an expression specified in the Expression property. The expression can be a simple concatenation of column values and strings or a function written in scripting language. The name of the parser for the expression should be specified in the ExpressionParserName property. The currently available parsers are “VB Script” and “Java Script”.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getExpressionParserName() throws IOException, AutomationException
The text string can also be determined from an expression specified in the Expression property. The expression can be a simple concatenation of column values and strings or a function written in scripting language. The name of the parser for the expression should be specified in the ExpressionParserName property. The currently available parsers are “VB Script” and “Java Script”.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExpressionSimple(boolean isSimple) throws IOException, AutomationException
isSimple
- The isSimple (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isExpressionSimple() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPrefix(String prefix) throws IOException, AutomationException
prefix
- The prefix (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getPrefix() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSuffix(String suffix) throws IOException, AutomationException
suffix
- The suffix (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getSuffix() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTextFit(int fit) throws IOException, AutomationException
The TextFit property determines where the text will be placed if it does not fit between the markers after they have been moved (due to marker fit settings). The esriDimensionTextFit enumeration defines three values for this behavior:
esriDimensionTextFitNone - Do not move text.
esriDimensionTextFitMoveBegin - Move text to beginning dimension line.
esriDimensionTextFitMoveEnd - Move text to ending dimension line.
fit
- A com.esri.arcgis.carto.esriDimensionTextFit constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTextFit() throws IOException, AutomationException
The TextFit property determines where the text will be placed if it does not fit between the markers after they have been moved (due to marker fit settings). The esriDimensionTextFit enumeration defines three values for this behavior:
esriDimensionTextFitNone - Do not move text.
esriDimensionTextFitMoveBegin - Move text to beginning dimension line.
esriDimensionTextFitMoveEnd - Move text to ending dimension line.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExtendLineOnFit(boolean draw) throws IOException, AutomationException
When the markers are moved because of a fit, a line will be drawn between the markers based on the DrawLineOnFit property.
draw
- The draw (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isExtendLineOnFit() throws IOException, AutomationException
When the markers are moved because of a fit, a line will be drawn between the markers based on the DrawLineOnFit property.
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 |