com.esri.arcgis.arcmapui
Class ElementSelection

java.lang.Object
  extended by com.esri.arcgis.arcmapui.ElementSelection
All Implemented Interfaces:
IEnumElement, ISelection, IConnectionPointContainer, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class ElementSelection
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ISelection, IEnumElement, IConnectionPointContainer

COM Class 'ElementSelection'. Generated 3/19/2015 1:20:50 PM from 'C:\ArcGIS\COM\esriArcMapUI.olb'

Description 'Maintains the the graphic element selection.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.carto.ISelection
IID, IIDb1a1ca6d_a96c_11d1_8745_0000f8751720, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IEnumElement
IID, IIDdd94d769_836d_11d0_87ec_080009ec732a, xxDummy
 
Fields inherited from interface com.esri.arcgis.display.IConnectionPointContainer
IID, IIDb196b284_bab4_101a_b69c_00aa00341d07, xxDummy
 
Constructor Summary
ElementSelection()
          Constructs a ElementSelection using ArcGIS Engine.
ElementSelection(java.lang.Object obj)
          Construct a ElementSelection using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void addISelectionEventsListener(ISelectionEvents theListener)
          addISelectionEventsListener.
 boolean canClear()
          Indicates if the selection can be cleared.
 boolean canCopy()
          Indicates if the selection can be copied.
 boolean canCut()
          Indicates if the selection can be cut.
 boolean canPaste()
          Indicates if paste is supported.
 boolean canSelectAll()
          Indicates if there's something to select.
 void clear()
          Clears all items in the selection.
 void copy()
          Copy the selected items to the clipboard.
 void cut()
          Cut the selected items to the clipboard.
 void draw(IDisplay display, ITrackCancel cancelTracker)
          Draw the selected items.
 void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
          enumConnectionPoints
 boolean equals(java.lang.Object o)
          Compare this object with another
 void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP)
          findConnectionPoint
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 IElement next()
          Returns the next element in the enumeration.
 void paste()
          Paste clipboard contents.
 void release()
          Release a ElementSelection.
 void removeISelectionEventsListener(ISelectionEvents theListener)
          removeISelectionEventsListener.
 void reset()
          Start the enumeration at the beginning.
 void selectAll()
          Selects all items.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementSelection

public ElementSelection()
                 throws java.io.IOException,
                        java.net.UnknownHostException
Constructs a ElementSelection using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

ElementSelection

public ElementSelection(java.lang.Object obj)
                 throws java.io.IOException
Construct a ElementSelection using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to ElementSelection.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems ElementSelection theElementSelection = (ElementSelection) obj;
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

addISelectionEventsListener

public void addISelectionEventsListener(ISelectionEvents theListener)
                                 throws java.io.IOException
addISelectionEventsListener. Listen to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.carto.ISelectionEvents interface.
Throws:
java.io.IOException - If there are communications problems.

removeISelectionEventsListener

public void removeISelectionEventsListener(ISelectionEvents theListener)
                                    throws java.io.IOException
removeISelectionEventsListener. Stop listening to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.carto.ISelectionEvents interface.
Throws:
java.io.IOException - If there are communications problems.

release

public void release()
Release a ElementSelection.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

canCut

public boolean canCut()
               throws java.io.IOException,
                      AutomationException
Indicates if the selection can be cut.

Specified by:
canCut in interface ISelection
Returns:
The result
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canCopy

public boolean canCopy()
                throws java.io.IOException,
                       AutomationException
Indicates if the selection can be copied.

Specified by:
canCopy in interface ISelection
Returns:
The result
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canPaste

public boolean canPaste()
                 throws java.io.IOException,
                        AutomationException
Indicates if paste is supported.

Specified by:
canPaste in interface ISelection
Returns:
The result
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canClear

public boolean canClear()
                 throws java.io.IOException,
                        AutomationException
Indicates if the selection can be cleared.

Specified by:
canClear in interface ISelection
Returns:
The result
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canSelectAll

public boolean canSelectAll()
                     throws java.io.IOException,
                            AutomationException
Indicates if there's something to select.

Specified by:
canSelectAll in interface ISelection
Returns:
The result
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

cut

public void cut()
         throws java.io.IOException,
                AutomationException
Cut the selected items to the clipboard.

Specified by:
cut in interface ISelection
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

copy

public void copy()
          throws java.io.IOException,
                 AutomationException
Copy the selected items to the clipboard.

Specified by:
copy in interface ISelection
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

paste

public void paste()
           throws java.io.IOException,
                  AutomationException
Paste clipboard contents.

Specified by:
paste in interface ISelection
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clear

public void clear()
           throws java.io.IOException,
                  AutomationException
Clears all items in the selection.

Specified by:
clear in interface ISelection
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

selectAll

public void selectAll()
               throws java.io.IOException,
                      AutomationException
Selects all items.

Specified by:
selectAll in interface ISelection
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

draw

public void draw(IDisplay display,
                 ITrackCancel cancelTracker)
          throws java.io.IOException,
                 AutomationException
Draw the selected items.

Specified by:
draw in interface ISelection
Parameters:
display - A reference to a com.esri.arcgis.display.IDisplay (in)
cancelTracker - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

next

public IElement next()
              throws java.io.IOException,
                     AutomationException
Returns the next element in the enumeration.

Specified by:
next in interface IEnumElement
Returns:
A reference to a com.esri.arcgis.carto.IElement
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset()
           throws java.io.IOException,
                  AutomationException
Start the enumeration at the beginning.

Specified by:
reset in interface IEnumElement
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

enumConnectionPoints

public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
                          throws java.io.IOException,
                                 AutomationException
enumConnectionPoints

Specified by:
enumConnectionPoints in interface IConnectionPointContainer
Parameters:
ppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findConnectionPoint

public void findConnectionPoint(GUID riid,
                                IConnectionPoint[] ppCP)
                         throws java.io.IOException,
                                AutomationException
findConnectionPoint

Specified by:
findConnectionPoint in interface IConnectionPointContainer
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.