|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISymbolCollection2
Provides access to members that control a collection of symbols and id pairs.
ISymbolCollection provides access to the members of the symbol collection. This interface is most commonly used to maintain the symbol collection of an AnnotationFeatureClassExtension. Care should be taken when modifying symbols in the collection of an AnnotationFeatureClassExtension. Updating a TextSymbol property for an existing symbol in use that results in a change in the size or shape of a TextElement will result in a disconnect between the drawn symbol and the feature geometry. This can be resolved by updating the out of sync features by calling IFeature::Store, but it is generally recommended that only new symbols should be added. ISymbolCollection2 provides new methods for adding new symbols to the collection and guaranteeing unique symbol IDs. It is recommended that developers use ISymbolCollection2::AddSymbol method to add symbols to the symbol collection. A SymbolCollection must have at least one symbol and the default symbol for any Annotation Class cannot be deleted.
Method Summary | |
---|---|
void |
addSymbol(ISymbol symbol,
String name,
ISymbolIdentifier2[] symbolID)
Adds a symbol to the collection. |
int |
getCount()
The number of symbols in the collection. |
ISymbol |
getSymbol(int symbolID)
The symbol associated with the symbolID. |
void |
getSymbolIdentifier(int iD,
ISymbolIdentifier2[] symbolID)
Returns the symbol with the given ID. |
ISymbolIdentifier |
next()
Returns the next symbolID-symbol pair in the collection. |
void |
remove(int symbolID)
Removes the symbolID-symbol pair in the collection. |
void |
removeAll()
Removes all the symbolID-symbol pairs in the collection. |
void |
renameSymbol(int symbolID,
String name)
Renames the symbol with the given ID. |
void |
replace(int symbolID,
ISymbol symbol)
Replaces the symbol associated with the symbolID. |
void |
reset()
Prepares the collection for Next to be called. |
void |
setSymbolByRef(int symbolID,
ISymbol symbol)
The symbol associated with the symbolID. |
Method Detail |
---|
ISymbol getSymbol(int symbolID) throws IOException, AutomationException
symbolID
- The symbolID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSymbolByRef(int symbolID, ISymbol symbol) throws IOException, AutomationException
symbolID
- The symbolID (in)symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void reset() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISymbolIdentifier next() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void replace(int symbolID, ISymbol symbol) throws IOException, AutomationException
symbolID
- The symbolID (in)symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void remove(int symbolID) throws IOException, AutomationException
symbolID
- The symbolID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAll() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addSymbol(ISymbol symbol, String name, ISymbolIdentifier2[] symbolID) throws IOException, AutomationException
symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)name
- The name (in)symbolID
- A reference to a com.esri.arcgis.display.ISymbolIdentifier2 (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getSymbolIdentifier(int iD, ISymbolIdentifier2[] symbolID) throws IOException, AutomationException
iD
- The iD (in)symbolID
- A reference to a com.esri.arcgis.display.ISymbolIdentifier2 (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void renameSymbol(int symbolID, String name) throws IOException, AutomationException
symbolID
- The symbolID (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCount() 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 |