| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.controls.SymbologyStyleClass
public class SymbologyStyleClass
Symbology StyleClass used by the SymbologyControl.
The SymbologyStyleClass manages individual symbology items of the same type.
| Constructor Summary | |
|---|---|
| SymbologyStyleClass(Object obj)Construct a SymbologyStyleClass using a reference to such an object returned from ArcGIS Engine or Server. | |
| Method Summary | |
|---|---|
|  void | addItem(IStyleGalleryItem item,
        int index)Adds an item to the SymbologyStyleClass. | 
|  boolean | equals(Object o)Compare this object with another | 
|  IStyleGalleryItem | getItem(int index)Returns the item at the specified index in the SymbologyStyleClass. | 
|  int | getItemCount(Object styleCategory)The number of items in the SymbologyStyleClass. | 
|  IStyleGalleryItem | getSelectedItem()Returns the selected item in the SymbologyStyleClass. | 
|  int | getSortDirection()The sort direction of the items in the SymbologyStyleClass. | 
|  String | getStyleCategory()The style category used by the SymbologyStyleClass. | 
|  int | getStyleClass()The class of the symbols in the SymbologyStyleClass. | 
|  int | hashCode()the hashcode for this object | 
|  void | interfaceSupportsErrorInfo(GUID riid)interfaceSupportsErrorInfo | 
|  Picture | previewItem(IStyleGalleryItem item,
            int width,
            int height)Previews the specified item as a bitmap. | 
|  void | removeAll()Removes all items from the SymbologyStyleClass. | 
|  void | removeItem(int index)Removes the item at the specified index from the SymbologyStyleClass. | 
|  void | selectItem(int index)Sets the selected item in the SymbologyStyleClass. | 
|  void | setSortDirection(int direction)The sort direction of the items in the SymbologyStyleClass. | 
|  void | setStyleCategory(String categoryName)The style category used by the SymbologyStyleClass. | 
|  void | unselectItem()Unsets the selected item in the SymbologyStyleClass. | 
|  void | update()Updates the contents of the SymbologyStyleClass. | 
| 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 SymbologyStyleClass(Object obj)
                    throws IOException
obj to SymbologyStyleClass.   * 
SymbologyStyleClass o = (SymbologyStyleClass)obj; // will not work 
 
SymbologyStyleClass o = new SymbologyStyleClass(obj); // Use this constructor instead  
    * @param     obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
  SymbologyStyleClass theSymbologyStyleClass = (SymbologyStyleClass) obj;| Method Detail | 
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void setStyleCategory(String categoryName)
                      throws IOException,
                             AutomationException
setStyleCategory in interface ISymbologyStyleClasscategoryName - The categoryName  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getStyleCategory()
                        throws IOException,
                               AutomationException
The IStyleGalleryItem::Category used to filter the items displayed within a SymbologyStyleClass. The StyleCategory is case sensitive. By default the StyleCategory is an empty string and indicates that all items are displayed.
getStyleCategory in interface ISymbologyStyleClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSortDirection(int direction)
                      throws IOException,
                             AutomationException
setSortDirection in interface ISymbologyStyleClassdirection - A com.esri.arcgis.controls.esriSymbologySortDirection constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSortDirection()
                     throws IOException,
                            AutomationException
The sort direction used to display the items in the SymbologyControl. By default there is no SortDirection.
getSortDirection in interface ISymbologyStyleClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getStyleClass()
                  throws IOException,
                         AutomationException
Returns the StyleClass of the SymbologyStyleClass.
getStyleClass in interface ISymbologyStyleClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getItemCount(Object styleCategory)
                 throws IOException,
                        AutomationException
getItemCount in interface ISymbologyStyleClassstyleCategory - A Variant  (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStyleGalleryItem getItem(int index)
                          throws IOException,
                                 AutomationException
Returns the item at the specified index in the SymbologyStyleClass. Typically the item is a ServerStyleGalleryItem .
getItem in interface ISymbologyStyleClassindex - The index  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void selectItem(int index)
                throws IOException,
                       AutomationException
Selects the item at the specified index in the SymbologyStyleClass. An item can also be selected interactively by the end user clicking on an item in the SymbologyControl.
Selecting an item triggers the OnItemSelected event.
selectItem in interface ISymbologyStyleClassindex - The index  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void unselectItem()
                  throws IOException,
                         AutomationException
Unselects the item selected in the SymbologyStyleClass.
unselectItem in interface ISymbologyStyleClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStyleGalleryItem getSelectedItem()
                                  throws IOException,
                                         AutomationException
Returns the selected item in the SymbologyStyleClass. If no item is selected Nothing is returned.
An item can be selected programmatically using the SelectItem method, or interactively by the end user clicking on an item in the SymbologyControl.
getSelectedItem in interface ISymbologyStyleClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addItem(IStyleGalleryItem item,
                    int index)
             throws IOException,
                    AutomationException
Adds the specified item to the SymbologyStyleClass at the specified index. By default the index is -1 and represents the end of the item collection. Specify the item as a ServerStyleGalleryItem.
addItem in interface ISymbologyStyleClassitem - A reference to a com.esri.arcgis.display.IStyleGalleryItem  (in)index - The index  (in, optional, pass -1 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeItem(int index)
                throws IOException,
                       AutomationException
Removes the item at the specified index from the SymbologyStyleClass.
removeItem in interface ISymbologyStyleClassindex - The index  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAll()
               throws IOException,
                      AutomationException
Removes all items from the SymbologyStyleClass.
removeAll in interface ISymbologyStyleClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Picture previewItem(IStyleGalleryItem item,
                           int width,
                           int height)
                    throws IOException,
                           AutomationException
Returns a picture implementing IPictureDisp of the specified item. Use the method to display a preview of the item in another control, such as a PictureBox.
previewItem in interface ISymbologyStyleClassitem - A reference to a com.esri.arcgis.display.IStyleGalleryItem  (in)width - The width  (in)height - The height  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void update()
            throws IOException,
                   AutomationException
Forces items to be loaded into the SymbologyStyleClass.
When the contents of a server style file are loaded into the SymbologyControl with the ISymbologyControl::LoadStyleFile method, items are 'demand loaded' to the end of a SymbologyStyleClass item collection. This is done to increase performance and means items are only loaded into a SymbologyStyleClass when it is the current ISymbologyControl::StyleClass.
To increase the speed that items display themselves within the SymbologyControl, the Update method can be used to force items to be loaded into a SymbologyStyleClass, when it is not the current ISymbologyControl::StyleClass.
update in interface ISymbologyStyleClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID  (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 | ||||||||