|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.GraphicSnapEnvironment
public class GraphicSnapEnvironment
Collection of Snap Agents used to snap a graphic point.
| Constructor Summary | |
|---|---|
GraphicSnapEnvironment()
Constructs a GraphicSnapEnvironment using ArcGIS Engine. |
|
GraphicSnapEnvironment(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GraphicSnapEnvironment theGraphicSnapEnvironment = (GraphicSnapEnvironment) obj; |
|
| Method Summary | |
|---|---|
void |
addSnapAgent(IGraphicSnap snapAgent)
Add a new snap agent to the environment. |
void |
clearSnapAgents()
Remove all snap agents. |
void |
deleteSnapAgent(IGraphicSnap snapAgent)
Remove specified snap agent from the environment. |
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
IGraphicSnap |
getSnapAgent(int index)
The snap agent at the specified index. |
int |
getSnapAgentCount()
The number of snap agents. |
IArray |
getSnapAgentOrder()
An array of IDs indicating how agents should be ordered. |
double |
getSnapTolerance()
The snap tolerance in page units. |
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 |
setSnapAgentOrder(IArray guids)
An array of IDs indicating how agents should be ordered. |
void |
setSnapTolerance(double tol)
The snap tolerance in page units. |
void |
snapShape(IGeometry shape)
Snap the shape using the agents in the environment. |
void |
snapShapeEx(IElement pElement,
IGeometry shape)
Snap the shape using the agents in the environment. |
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 GraphicSnapEnvironment()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public GraphicSnapEnvironment(Object obj)
throws IOException
GraphicSnapEnvironment theGraphicSnapEnvironment = (GraphicSnapEnvironment) obj;
obj to GraphicSnapEnvironment.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void snapShape(IGeometry shape)
throws IOException,
AutomationException
snapShape in interface IGraphicSnapEnvironmentsnapShape in interface IGraphicSnapEnvironment2shape - A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getSnapTolerance()
throws IOException,
AutomationException
getSnapTolerance in interface IGraphicSnapEnvironmentgetSnapTolerance in interface IGraphicSnapEnvironment2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSnapTolerance(double tol)
throws IOException,
AutomationException
setSnapTolerance in interface IGraphicSnapEnvironmentsetSnapTolerance in interface IGraphicSnapEnvironment2tol - The tol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSnapAgentOrder(IArray guids)
throws IOException,
AutomationException
setSnapAgentOrder in interface IGraphicSnapEnvironmentsetSnapAgentOrder in interface IGraphicSnapEnvironment2guids - A reference to a com.esri.arcgis.system.IArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getSnapAgentOrder()
throws IOException,
AutomationException
getSnapAgentOrder in interface IGraphicSnapEnvironmentgetSnapAgentOrder in interface IGraphicSnapEnvironment2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSnapAgentCount()
throws IOException,
AutomationException
getSnapAgentCount in interface IGraphicSnapEnvironmentgetSnapAgentCount in interface IGraphicSnapEnvironment2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGraphicSnap getSnapAgent(int index)
throws IOException,
AutomationException
getSnapAgent in interface IGraphicSnapEnvironmentgetSnapAgent in interface IGraphicSnapEnvironment2index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearSnapAgents()
throws IOException,
AutomationException
clearSnapAgents in interface IGraphicSnapEnvironmentclearSnapAgents in interface IGraphicSnapEnvironment2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addSnapAgent(IGraphicSnap snapAgent)
throws IOException,
AutomationException
addSnapAgent in interface IGraphicSnapEnvironmentaddSnapAgent in interface IGraphicSnapEnvironment2snapAgent - A reference to a com.esri.arcgis.carto.IGraphicSnap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteSnapAgent(IGraphicSnap snapAgent)
throws IOException,
AutomationException
deleteSnapAgent in interface IGraphicSnapEnvironmentdeleteSnapAgent in interface IGraphicSnapEnvironment2snapAgent - A reference to a com.esri.arcgis.carto.IGraphicSnap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void snapShapeEx(IElement pElement,
IGeometry shape)
throws IOException,
AutomationException
snapShapeEx in interface IGraphicSnapEnvironment2pElement - A reference to a com.esri.arcgis.carto.IElement (in)shape - A reference to a com.esri.arcgis.geometry.IGeometry (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 IPersistStreamIOException - 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 IPersistStreampstm - 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 IPersistStreampstm - 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 IPersistStreampcbSize - 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 IPersistpClassID - 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 ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||