|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.LegendGroup
public class LegendGroup
The collection of legend classes provided by a renderer.
Constructor Summary | |
---|---|
LegendGroup()
Constructs a LegendGroup using ArcGIS Engine. |
|
LegendGroup(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. LegendGroup theLegendGroup = (LegendGroup) obj; |
Method Summary | |
---|---|
void |
addClass(ILegendClass legendClass)
Adds a new legend class to the group at the end of list. |
void |
clearClasses()
Removes all classes from the group. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
ILegendClass |
esri_getClass(int index)
Legend class at the specified index. |
int |
getClassCount()
Number of legend classes in the group. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getHeading()
String heading. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
void |
insertClass(int index,
ILegendClass legendClass)
Inserts a new legend class into the group at the specified index. |
void |
isDirty()
isDirty |
boolean |
isEditable()
Indicates if the group can be edited. |
boolean |
isVisible()
Indicates if the group is displayed. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
removeClass(int index)
Removes the legend class from the group at the specified index. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setEditable(boolean editable)
Indicates if the group can be edited. |
void |
setHeading(String heading)
String heading. |
void |
setVisible(boolean visible)
Indicates if the group is displayed. |
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 LegendGroup() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic LegendGroup(Object obj) throws IOException
LegendGroup theLegendGroup = (LegendGroup) obj;
obj
to LegendGroup
.
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 boolean isVisible() throws IOException, AutomationException
This property indicates whether or not a layer's entry in the table of contents is expanded or collapsed. If a layer has only one legend group, then if Visible = True, then the layer is expanded. If a layer has more than one legend group, then the rule is that if any of the the layer's legend groups are visible, then the layer's entry in the table of contents is expanded.
isVisible
in interface ILegendGroup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVisible(boolean visible) throws IOException, AutomationException
setVisible
in interface ILegendGroup
visible
- The visible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEditable() throws IOException, AutomationException
This property indicates
whether or not the symbols and text strings in the LegendClass
objects of a LegendGroup can be edited. If this property is False
then the user cannot edit the group's symbols and text labels in
the ArcMap table of contents.
For example, the legend for a layer symbolized with a
ChartRenderer with PieChartSymbols consists of two legend groups.
The first legend group contains a representative pie chart symbol
and is not editable. The second legend group contains the
individual fill symbols that make up the pie chart slices, and this
legend group is editable.
isEditable
in interface ILegendGroup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEditable(boolean editable) throws IOException, AutomationException
setEditable
in interface ILegendGroup
editable
- The editable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getHeading() throws IOException, AutomationException
This property is the text string that describes the content of the legend group. This text string appears in the table of contents and can appear also in the legend. This string is typically generated by the renderer, but can be modified after creation by the user.
getHeading
in interface ILegendGroup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHeading(String heading) throws IOException, AutomationException
setHeading
in interface ILegendGroup
heading
- The heading (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getClassCount() throws IOException, AutomationException
getClassCount
in interface ILegendGroup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILegendClass esri_getClass(int index) throws IOException, AutomationException
esri_getClass
in interface ILegendGroup
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addClass(ILegendClass legendClass) throws IOException, AutomationException
Modifying the number of classes in a LegendGroup through addition, insertion, and deletion is the job of the renderer object.
addClass
in interface ILegendGroup
legendClass
- A reference to a com.esri.arcgis.carto.ILegendClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void insertClass(int index, ILegendClass legendClass) throws IOException, AutomationException
Modifying the number of classes in a LegendGroup through addition, insertion, and deletion is the job of the renderer object.
insertClass
in interface ILegendGroup
index
- The index (in)legendClass
- A reference to a com.esri.arcgis.carto.ILegendClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeClass(int index) throws IOException, AutomationException
Modifying the number of classes in a LegendGroup through addition, insertion, and deletion is the job of the renderer object.
removeClass
in interface ILegendGroup
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearClasses() throws IOException, AutomationException
Modifying the number of classes in a LegendGroup through addition, insertion, and deletion is the job of the renderer object.
clearClasses
in interface ILegendGroup
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 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 serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (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 |