|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.controls.SnappingFeedback
public class SnappingFeedback
Provdes the snapping feedback to the display.
The SnappingFeedback class manages the display of snapping feedback, including the snapping symbol and snap tip.
| Constructor Summary | |
|---|---|
SnappingFeedback()
Constructs a SnappingFeedback using ArcGIS Engine. |
|
SnappingFeedback(Object obj)
Construct a SnappingFeedback using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
void |
initialize(Object hook,
ISnappingEnvironment snapEnv,
boolean autoErase)
Initialize with the current snapping environment. |
void |
refresh(int hdc)
Refresh the last update. |
void |
unInitialize()
Disconnecting from the View. |
void |
update(ISnappingResult snappingResult,
int hdc)
Sets the current mouse location and snap result. |
| 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 SnappingFeedback()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public SnappingFeedback(Object obj)
throws IOException
obj to SnappingFeedback.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
SnappingFeedback theSnappingFeedback = (SnappingFeedback) obj;| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void initialize(Object hook,
ISnappingEnvironment snapEnv,
boolean autoErase)
throws IOException,
AutomationException
Initialize sets up a SnappingFeedback class with the appropriate snap symbol as defined on snapping environment.
initialize in interface ISnappingFeedbackhook - A reference to another Automation Object (IDispatch) (in)snapEnv - A reference to a com.esri.arcgis.controls.ISnappingEnvironment (in)autoErase - The autoErase (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void unInitialize()
throws IOException,
AutomationException
Uninitialize releases any references to the snapping environment and application specified in ISnappingFeedback.Initialize.
unInitialize in interface ISnappingFeedbackIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void update(ISnappingResult snappingResult,
int hdc)
throws IOException,
AutomationException
Update notifies the snapping feedback object that changes in the snap location may have occurred. The Update method uses the snapResult object that is passed in to display the snapping symbol and snap tip if a snap occurred, and draws them on the hDC passed in. Calls to Update are usually made in conjunction with calls to IPointSnapper.Snap() inside a tool’s MouseMove() method. Even if a null snap result is returned, your code should ensure that Update is called; a null SnapResult passed into the Update method() is fine.
update in interface ISnappingFeedbacksnappingResult - A reference to a com.esri.arcgis.controls.ISnappingResult (in)hdc - The hdc (A COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh(int hdc)
throws IOException,
AutomationException
A call to Refresh invalidates the previous location of the SnapTip and the snap symbol, and draws the new feedback. When a tool is utilizing the snapping environment, ISnappingFeedback.Refresh() should be called in the tool’s refresh method.
refresh in interface ISnappingFeedbackhdc - The hdc (A COM typedef) (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 | ||||||||