|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.FeatureExtent
public class FeatureExtent
The Feature Extent coclass allows you to zoom to selected features in a layer.
Constructor Summary | |
---|---|
FeatureExtent()
Constructs a FeatureExtent using ArcGIS Engine. |
|
FeatureExtent(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. FeatureExtent theFeatureExtent = (FeatureExtent) obj; |
Method Summary | |
---|---|
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
double |
getDefaultScale()
Scale at which the extent of a single point is drawn. |
double |
getExpandRatio()
Ratio used to expand the extent. |
IEnvelope |
getExtent()
The geographic extent of the map. |
IFIDSet |
getFeatureIDs()
The set of feature IDs. |
int |
getLayerID()
The ID of the layer. |
String |
getMapName()
Name of the map (data frame). |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
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). |
void |
writeExternal(ObjectOutput out)
|
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 FeatureExtent() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic FeatureExtent(Object obj) throws IOException
FeatureExtent theFeatureExtent = (FeatureExtent) obj;
obj
to FeatureExtent
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IEnvelope getExtent() throws IOException, AutomationException
getExtent
in interface IMapArea
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getMapName() throws IOException, AutomationException
getMapName
in interface IFeatureExtent
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapName(String name) throws IOException, AutomationException
setMapName
in interface IFeatureExtent
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLayerID() throws IOException, AutomationException
getLayerID
in interface IFeatureExtent
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLayerID(int layerID) throws IOException, AutomationException
setLayerID
in interface IFeatureExtent
layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFIDSet getFeatureIDs() throws IOException, AutomationException
getFeatureIDs
in interface IFeatureExtent
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFeatureIDs(IFIDSet featureIDs) throws IOException, AutomationException
setFeatureIDs
in interface IFeatureExtent
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.public 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".
getExpandRatio
in interface IFeatureExtent
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExpandRatio(double ratio) throws IOException, AutomationException
setExpandRatio
in interface IFeatureExtent
ratio
- The ratio (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDefaultScale
in interface IFeatureExtent
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultScale(double mapScale) throws IOException, AutomationException
setDefaultScale
in interface IFeatureExtent
mapScale
- The mapScale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |