|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.display.SymbolCollection
public class SymbolCollection
Collection of symbols and id pairs.
A symbol collection is a collection of SymbolIdentifiers that each have a name, a symbol, and a unique ID. This is a generic collection that can store any symbol type, however, this object is primarily used in the AnnotationFeatureClassExtension as an efficient way to store TextSymbols for AnnotationFeatures. Rather than storing the TextSymbol of an AnnotationFeature with each row of the FeatureClass, AnnotationFeatures that have the same symbol can efficiently reference the same symbol in the SymbolCollection. The linkage between the TextElement of the AnnotationFeature and the symbol in the SymbolCollection is established using the interface ISymbolCollectionElement on the TextElement. ISymbolCollectionElement also provides additional access to properties that can be individually overridden for each TextElement. See ISymbolCollectionElement for more details.
Constructor Summary | |
---|---|
SymbolCollection()
Constructs a SymbolCollection using ArcGIS Engine. |
|
SymbolCollection(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SymbolCollection theSymbolCollection = (SymbolCollection) obj; |
Method Summary | |
---|---|
void |
addSymbol(ISymbol symbol,
String name,
ISymbolIdentifier2[] symbolID)
Adds a symbol to the collection. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
int |
getCount()
The number of symbols in the collection. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
ISymbol |
getSymbol(int symbolID)
The symbol associated with the symbolID. |
void |
getSymbolIdentifier(int iD,
ISymbolIdentifier2[] symbolID)
Returns the symbol with the given ID. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
void |
load(IStream pstm)
load |
ISymbolIdentifier |
next()
Returns the next symbolID-symbol pair in the collection. |
void |
readExternal(ObjectInput in)
|
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 |
save(IStream pstm,
int fClearDirty)
save |
void |
setSymbolByRef(int symbolID,
ISymbol symbol)
The symbol associated with the symbolID. |
void |
writeExternal(ObjectOutput out)
|
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 SymbolCollection() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SymbolCollection(Object obj) throws IOException
SymbolCollection theSymbolCollection = (SymbolCollection) obj;
obj
to SymbolCollection
.
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 ISymbol getSymbol(int symbolID) throws IOException, AutomationException
getSymbol
in interface ISymbolCollection
getSymbol
in interface ISymbolCollection2
symbolID
- The symbolID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSymbolByRef(int symbolID, ISymbol symbol) throws IOException, AutomationException
setSymbolByRef
in interface ISymbolCollection
setSymbolByRef
in interface ISymbolCollection2
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.public void reset() throws IOException, AutomationException
reset
in interface ISymbolCollection
reset
in interface ISymbolCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISymbolIdentifier next() throws IOException, AutomationException
next
in interface ISymbolCollection
next
in interface ISymbolCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void replace(int symbolID, ISymbol symbol) throws IOException, AutomationException
replace
in interface ISymbolCollection
replace
in interface ISymbolCollection2
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.public void remove(int symbolID) throws IOException, AutomationException
remove
in interface ISymbolCollection
remove
in interface ISymbolCollection2
symbolID
- The symbolID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAll() throws IOException, AutomationException
removeAll
in interface ISymbolCollection
removeAll
in interface ISymbolCollection2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addSymbol(ISymbol symbol, String name, ISymbolIdentifier2[] symbolID) throws IOException, AutomationException
addSymbol
in interface ISymbolCollection2
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.public void getSymbolIdentifier(int iD, ISymbolIdentifier2[] symbolID) throws IOException, AutomationException
getSymbolIdentifier
in interface ISymbolCollection2
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.public void renameSymbol(int symbolID, String name) throws IOException, AutomationException
renameSymbol
in interface ISymbolCollection2
symbolID
- The symbolID (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCount() throws IOException, AutomationException
getCount
in interface ISymbolCollection2
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.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |