|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.systemUI.ControlsOperationStack
public class ControlsOperationStack
Use this class to provide operation support to the ToolbarControl.
Outside the context of ArcGIS applications such as ArcMap, you can add undo and redo capability by using the ControlsOperationStack class. Usually, you cocreate this class in conjunction with the ToolbarControl and add undo and redo buttons which manipulate the OperationStack via IOperationStack.
| Constructor Summary | |
|---|---|
ControlsOperationStack()
Constructs a ControlsOperationStack using ArcGIS Engine. |
|
ControlsOperationStack(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ControlsOperationStack theControlsOperationStack = (ControlsOperationStack) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
void |
esri_do(IOperation operation)
Performs the given operation and places it on the stack. |
static String |
getClsid()
getClsid. |
int |
getCount()
The number of operations on the stack. |
IOperation |
getItem(int index)
The operation at the specified index. |
IOperation |
getRedoOperation()
Redoes a specified operation. |
IOperation |
getUndoOperation()
Undoes a specified operation. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
redo()
Redoes the next operation on the stack. |
void |
remove(int index)
Removes an operation from the stack. |
void |
reset()
Removes all operations from the stack. |
void |
undo()
Undoes the previous operation on the stack. |
| 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 ControlsOperationStack()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public ControlsOperationStack(Object obj)
throws IOException
ControlsOperationStack theControlsOperationStack = (ControlsOperationStack) obj;
obj to ControlsOperationStack.
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 int getCount()
throws IOException,
AutomationException
Returns the number of operations on the OperationStack.
getCount in interface IOperationStackIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IOperation getItem(int index)
throws IOException,
AutomationException
getItem in interface IOperationStackindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void reset()
throws IOException,
AutomationException
This method removes all operations from the OperationStack.
reset in interface IOperationStackIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_do(IOperation operation)
throws IOException,
AutomationException
esri_do in interface IOperationStackoperation - A reference to a com.esri.arcgis.systemUI.IOperation (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void undo()
throws IOException,
AutomationException
The Undo method performs the undo of the 'current' operation on the OperationStack and moves the 'current' operation pointer back one operation on the OperationStack.
undo in interface IOperationStackIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void redo()
throws IOException,
AutomationException
The Redo method performs the redo of the 'next' operation on the OperationStack and moves the 'current' operation pointer forward one operation on the OperationStack.
redo in interface IOperationStackIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IOperation getUndoOperation()
throws IOException,
AutomationException
Returns the 'current' operation on the OperationStack, without executing an undo.
getUndoOperation in interface IOperationStackIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IOperation getRedoOperation()
throws IOException,
AutomationException
Returns the 'next' operation on the OperationStack, without executing an redo.
getRedoOperation in interface IOperationStackIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void remove(int index)
throws IOException,
AutomationException
Removes the operation at the specified index from the OperationStack. The operation at the beginning of the collection has an index of 0 and the operation at the end of the collection has an index of IOperationStack::Count - 1.
remove in interface IOperationStackindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 | ||||||||