com.esri.arcgis.editor
Interface IEditSelectionCache

All Superinterfaces:
Serializable
All Known Implementing Classes:
EditSelectionCache

public interface IEditSelectionCache
extends Serializable

Provides access to members that cache the selection for fast hit testing.

When To Use

Use the EditSelectionCache object to quickly determine if the mouse is
over a selected feature.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 boolean hitTest(IPoint loc)
          Tests if the location is over the selection or not.
 void initialize(IEditor editor, int sizePixels)
          Initializes the cache using the editor's selection.
 

Method Detail

initialize

void initialize(IEditor editor,
                int sizePixels)
                throws IOException,
                       AutomationException
Initializes the cache using the editor's selection.

Remarks

Use Initialize to fill the cache with features from the editor's current selection. When the editor's selection changes you will need to rebuild the cache. Pixels determines the height and width of the cache.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
editor - A reference to a com.esri.arcgis.editor.IEditor (in)
sizePixels - The sizePixels (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hitTest

boolean hitTest(IPoint loc)
                throws IOException,
                       AutomationException
Tests if the location is over the selection or not.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
loc - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The hit
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.