|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextElement
Provides access to members that control the Text element.
ITextElement is the main interface of the TextElement and ParagraphTextElement objects. The interface is used to manipulate the symbol and text string associated with these element types. The most common method for obtaining a reference to an object that implements ITextElement object is to take an IElement reference from an IGraphicsContainer and check to see if the object supports ITextElement. If you are manipulating TextElements in an annotation feature class, it is recommended that you consult ISymbolCollectionElement for detailed information on the specialized symbol management of text in this situation.
Method Summary | |
---|---|
ITextSymbol |
getSymbol()
Text symbol this element uses to draw itself. |
String |
getText()
Text being displayed by this element. |
boolean |
isScaleText()
Indicates if the text scales with the map. |
void |
setScaleText(boolean scale)
Indicates if the text scales with the map. |
void |
setSymbol(ITextSymbol symbol)
Text symbol this element uses to draw itself. |
void |
setText(String text)
Text being displayed by this element. |
Method Detail |
---|
ITextSymbol getSymbol() throws IOException, AutomationException
The Symbol property returns or sets the ITextSymbol associated with the TextElement. The Symbol property represents the symbology being used to display the text on the map.
The size characteristic of the Symbol property is also affected by the ScaleText property. If this property is set to True, the size will scale along with the current scale of the map. If the ScaleText property is False, then the size will remain constant.
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.String getText() throws IOException, AutomationException
The Text property returns or sets the text string used displayed on the map. Use this property to manipulate the string associated with the TextElement.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setText(String text) throws IOException, AutomationException
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isScaleText() throws IOException, AutomationException
The ScaleText property specifies whether or not the size of the TextElement should change when the scale of the map changes. If the ScaleText property is set to True, then the size of the text will increase or decrease along with the scale of the map. If the property is False, then the size will remain constant.
The actual size of the text on the screen is based on the Symbol property of the TextElement and the setting of the ScaleText property. When the ScaleText property is True, the size of the TextElement will be a combination of the Symbol property, the reference scale for the layer, and the current scale of the map.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setScaleText(boolean scale) throws IOException, AutomationException
scale
- The scale (in)
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 |