|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFeatureBookmark
Provides access to members that control a feature bookmark.
The FeatureBookmark object is used to create a Feature bookmark.
To create a Feature bookmark in ArcMap, you would use the Identify tool, Identify a feature and use the Set Bookmark command in the context menu.
This object stores the ID of a feature and the feature class it belongs to in the FeatureID and FeatureClass properties. You can later find the bookmark by its name and display the corresponding feature.
IFeatureBookmark inherits from ISpatialBookmark .
To add bookmarks to the map, QueryInterface IMapBookMarks interface from IMap interface and then call the IMapBookmarks::AddBookMark method.
See also IAOIBookmark and the examples in the Carto library overview.
The Draw, Flash and PanTo methods are currently not implemented.
Method Summary | |
---|---|
void |
draw(IDisplay display)
Draws the feature on the map display. |
void |
flash(IDisplay display)
Flashes the feature on the map display. |
IFeatureClass |
getFeatureClass()
Feature class. |
int |
getFeatureId()
Feature id. |
void |
panTo(IDisplay display)
Pans to the feature on the map display. |
void |
setFeatureClass(IFeatureClass featureClass)
Feature class. |
void |
setFeatureId(int fID)
Feature id. |
Methods inherited from interface com.esri.arcgis.carto.ISpatialBookmark |
---|
getBookmarkType, getName, setName, zoomTo |
Method Detail |
---|
int getFeatureId() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFeatureId(int fID) throws IOException, AutomationException
fID
- The fID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IFeatureClass getFeatureClass() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFeatureClass(IFeatureClass featureClass) throws IOException, AutomationException
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void panTo(IDisplay display) throws IOException, AutomationException
display
- A reference to a com.esri.arcgis.display.IDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void flash(IDisplay display) throws IOException, AutomationException
display
- A reference to a com.esri.arcgis.display.IDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void draw(IDisplay display) throws IOException, AutomationException
display
- A reference to a com.esri.arcgis.display.IDisplay (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 |