|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFeatureExtent
Provides access to the Feature Extent Map Area Interface.
To use a FeatureExtent, the properties MapName, LayerID and FeatureIDs need to be set. You are likely to get unexpected results if these properties are not set. The ExpandRatio and DefaultScale properties are optional. If the ExpandRatio is not set some of the selected features will be located at the very edge of the map image. The DefaultScale value only affects conditions where a single point feature is selected. This will be the map scale in which the map will zoom to when a single point is selected.
Use IFeatureExtent to zoom to selected features of a layer.
Method Summary | |
---|---|
double |
getDefaultScale()
Scale at which the extent of a single point is drawn. |
double |
getExpandRatio()
Ratio used to expand the extent. |
IFIDSet |
getFeatureIDs()
The set of feature IDs. |
int |
getLayerID()
The ID of the layer. |
String |
getMapName()
Name of the map (data frame). |
void |
setDefaultScale(double mapScale)
Scale at which the extent of a single point is drawn. |
void |
setExpandRatio(double ratio)
Ratio used to expand the extent. |
void |
setFeatureIDs(IFIDSet featureIDs)
The set of feature IDs. |
void |
setLayerID(int layerID)
The ID of the layer. |
void |
setMapName(String name)
Name of the map (data frame). |
Method Detail |
---|
String getMapName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMapName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getLayerID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerID(int layerID) throws IOException, AutomationException
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IFIDSet getFeatureIDs() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFeatureIDs(IFIDSet featureIDs) throws IOException, AutomationException
featureIDs
- A reference to a com.esri.arcgis.geodatabase.IFIDSet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getExpandRatio() throws IOException, AutomationException
Use ExpandRatio to add a "buffer" around the requested geographic extent. For example, an ExpandRatio value of 1.5 will expand the map extent by 1.5 times.ExpandRatio should be used to ensure that the set of features can be viewed easily. Otherwise, some features may be at the very edge of the displayed map extent. If the ExpandRatio is not set (the default value is 1) some of the selected features will be located at the very edge of the map image. A number greater than 1 will "zoom out", providing a spatial buffer around the selected features. A number less than 1 will "zoom in".
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExpandRatio(double ratio) throws IOException, AutomationException
ratio
- The ratio (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getDefaultScale() throws IOException, AutomationException
Use DefaultScale to control the map scale when zooming to a single point feature. The DefaultScale value only affects conditions where a single point feature is selected. This value will be ignored when selecting multiple points or when selecting other feature types. If this value is not set and FeatureIDs is comprised of a single point feature, the new spatial extent may be too large.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultScale(double mapScale) throws IOException, AutomationException
mapScale
- The mapScale (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 |