|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 |
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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void snapShape(IGeometry shape) throws IOException, AutomationException
snapShape
in interface IGraphicSnapEnvironment
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 double getSnapTolerance() throws IOException, AutomationException
getSnapTolerance
in interface IGraphicSnapEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSnapTolerance(double tol) throws IOException, AutomationException
setSnapTolerance
in interface IGraphicSnapEnvironment
tol
- 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 IGraphicSnapEnvironment
guids
- 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 IGraphicSnapEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSnapAgentCount() throws IOException, AutomationException
getSnapAgentCount
in interface IGraphicSnapEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGraphicSnap getSnapAgent(int index) throws IOException, AutomationException
getSnapAgent
in interface IGraphicSnapEnvironment
index
- 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 IGraphicSnapEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addSnapAgent(IGraphicSnap snapAgent) throws IOException, AutomationException
addSnapAgent
in interface IGraphicSnapEnvironment
snapAgent
- 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 IGraphicSnapEnvironment
snapAgent
- 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 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 |