|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.editor.SketchOperation
public class SketchOperation
Provides undo/redo capabilities for edit sketch modifications.
| Constructor Summary | |
|---|---|
SketchOperation()
Constructs a SketchOperation using ArcGIS Engine. |
|
SketchOperation(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SketchOperation theSketchOperation = (SketchOperation) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
void |
esri_do()
Performs the operation. |
void |
finish(IEnvelope invalEnv)
Finishes the operation and puts it into the operation stack. |
void |
finish(IEnvelope invalEnv,
int opType,
Object data)
Finishes the operation and puts it into the operation stack. |
static String |
getClsid()
getClsid. |
String |
getMenuString()
The menu string. |
int |
hashCode()
the hashcode for this object |
boolean |
isCanRedo()
Indicates if the operation can be redone. |
boolean |
isCanUndo()
Indicates if the operation can be undone. |
void |
redo()
Redoes the operation. |
void |
setMenuString(String rhs1)
The text that appears in the undo menu choice. |
void |
start(IEditor editor)
Starts the operation, caching the existing sketch. |
void |
undo()
Undoes the operation. |
| 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 SketchOperation()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public SketchOperation(Object obj)
throws IOException
SketchOperation theSketchOperation = (SketchOperation) obj;
obj to SketchOperation.
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 setMenuString(String rhs1)
throws IOException,
AutomationException
setMenuString in interface ISketchOperationsetMenuString in interface ISketchOperation2rhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void start(IEditor editor)
throws IOException,
AutomationException
start in interface ISketchOperationstart in interface ISketchOperation2editor - A reference to a com.esri.arcgis.editor.IEditor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void finish(IEnvelope invalEnv)
throws IOException,
AutomationException
finish in interface ISketchOperationinvalEnv - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getMenuString()
throws IOException,
AutomationException
The MenuString associated with the Operation. This is used by the application framework to populate the Edit menu in ArcMap. For example, adding a layer to ArcMap adds the menu string of the Operation "Undo Add Layers(s)" to the Edit menu.
getMenuString in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanUndo()
throws IOException,
AutomationException
CanUndo indicates if the operation can be un-done. Use the property before using the Undo method.
isCanUndo in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanRedo()
throws IOException,
AutomationException
CanRedo indicates if the operation can be re-done. Use the property before using the Redo method.
isCanRedo in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_do()
throws IOException,
AutomationException
esri_do in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void undo()
throws IOException,
AutomationException
Undo the operation to reset the action from the Do method. Use the CanUndo property to determine whether the operation can be un-done.
undo in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void redo()
throws IOException,
AutomationException
Redo the operation to redo the action from the Do method. Use the CanRedo property to determine whether the operation can be re-done.
redo in interface IOperationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void finish(IEnvelope invalEnv,
int opType,
Object data)
throws IOException,
AutomationException
InvalEnv determines the envelope that will be invalidated (refreshed) when the sketch operation is completed. OpType determines which method on IEditor::IEditSketch2 will be fired to notify all listeners that the edit sketch has changed and give them appropriate information as to how the edit sketch was modified. Data is a variant value that can pass an IPoint as an argument to the appropriate method on IEditSketch2, such as OnVertexAdded.
finish in interface ISketchOperation2invalEnv - A reference to a com.esri.arcgis.geometry.IEnvelope (in)opType - A com.esri.arcgis.editor.esriSketchOperationType constant (in)data - A Variant (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 | ||||||||