|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.display.SimpleTextParser
public class SimpleTextParser
Simple text parser object.
The text parser used in ArcMap. This object changes the formatting of all or part of a text string.
The following table describes the supported tags and their syntax. See the ArcGIS for Desktop Help for more information.
Tag |
Syntax |
---|---|
Font |
<FNT name="Arial" size="18">My text</FNT> <FNT name="Arial" scale="200">My text</FNT> |
Color | <CLR red="255" green="255" blue="255">My text</CLR> |
Bold | <BOL>My text</BOL> |
Italic | <ITA>My text</ITA> |
Underline | <UND>My text</UND> |
All Caps | <ACP>My text</ACP> |
Small Caps | <SCP>My text</SCP> |
Superscript | <SUP>My text</SUP> |
Character spacing (0%=regular) | <CHR spacing="25">My text</CHR> |
Character width (100%=regular) | <CHR width="150">My text</CHR> |
Word spacing (100%=regular) | <WRD spacing="150">My text</WRD> |
Leading (0 pts=regular) | <LIN leading="12">My text</LIN> |
Un-Italic | <_ITA>My text</_ITA> |
Un-Underline | <_UND>My text</_UND> |
Un-Superscript | <_SUP>My text</_SUP> |
Un-Bold | <_BOL>My text</_BOL> |
When the SimpleTextParser is used to parse text in a labeling expression, tag syntax varies slightly. Read more about this in the ArcGIS for Desktop Help under the index entry "labeling, expressions."
Constructor Summary | |
---|---|
SimpleTextParser()
Constructs a SimpleTextParser using ArcGIS Engine. |
|
SimpleTextParser(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SimpleTextParser theSimpleTextParser = (SimpleTextParser) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getText()
Text to parse. |
ITextSymbol |
getTextSymbol()
The text symbol. |
int |
hashCode()
the hashcode for this object |
void |
hasTags(boolean[] hasTags)
Returns true if the text contains tags and false if it does not. |
void |
next()
Parses the next tag and string and sets the TextSymbol accordingly. |
void |
reset()
Resets the text string tag sequence to the beginning. |
void |
setText(String text)
Text to parse. |
void |
setTextSymbolByRef(ITextSymbol textSym)
The text symbol. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public SimpleTextParser() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SimpleTextParser(Object obj) throws IOException
SimpleTextParser theSimpleTextParser = (SimpleTextParser) obj;
obj
to SimpleTextParser
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public ITextSymbol getTextSymbol() throws IOException, AutomationException
getTextSymbol
in interface ITextParser
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTextSymbolByRef(ITextSymbol textSym) throws IOException, AutomationException
setTextSymbolByRef
in interface ITextParser
textSym
- A reference to a com.esri.arcgis.display.ITextSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getText() throws IOException, AutomationException
getText
in interface ITextParser
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setText(String text) throws IOException, AutomationException
setText
in interface ITextParser
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void hasTags(boolean[] hasTags) throws IOException, AutomationException
hasTags
in interface ITextParser
hasTags
- The hasTags (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void next() throws IOException, AutomationException
next
in interface ITextParser
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reset() throws IOException, AutomationException
reset
in interface ITextParser
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
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 |