|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.systemUI.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(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Compare this object with another |
void |
esri_do(IOperation operation)
Performs the given operation and places it on the stack. |
IOperationStack |
getAsIOperationStack()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ISupportErrorInfo |
getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
static java.lang.String |
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)
Supported Platforms |
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 |
| Constructor Detail |
public ControlsOperationStack()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public ControlsOperationStack(java.lang.Object obj)
throws java.io.IOException
obj to ControlsOperationStack. ControlsOperationStack theControlsOperationStack = (ControlsOperationStack) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IOperationStack getAsIOperationStack()
public ISupportErrorInfo getAsISupportErrorInfo()
public boolean equals(java.lang.Object o)
public int hashCode()
public int getCount()
throws java.io.IOException,
AutomationException
IOperationStackReturns the number of operations on the OperationStack.
getCount in interface IOperationStackjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IOperation getItem(int index)
throws java.io.IOException,
AutomationException
IOperationStackThe Item property is used to access a specific operation on the OperationStack. The operation at the beginning or top of the collection has an index of 0 and the operation at the end of the collection has an index of IOperationStack::Count - 1.
getItem in interface IOperationStackindex - The index (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void reset()
throws java.io.IOException,
AutomationException
IOperationStackThis method removes all operations from the OperationStack.
reset in interface IOperationStackAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void esri_do(IOperation operation)
throws java.io.IOException,
AutomationException
IOperationStack
esri_do in interface IOperationStackoperation - A reference to a com.esri.arcgis.systemUI.IOperation (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void undo()
throws java.io.IOException,
AutomationException
IOperationStackThe 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 IOperationStackAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void redo()
throws java.io.IOException,
AutomationException
IOperationStackThe 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 IOperationStackAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IOperation getUndoOperation()
throws java.io.IOException,
AutomationException
IOperationStackReturns the 'current' operation on the OperationStack, without executing an undo.
getUndoOperation in interface IOperationStackAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IOperation getRedoOperation()
throws java.io.IOException,
AutomationException
IOperationStackReturns the 'next' operation on the OperationStack, without executing an redo.
getRedoOperation in interface IOperationStackAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void remove(int index)
throws java.io.IOException,
AutomationException
IOperationStackRemoves 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void interfaceSupportsErrorInfo(GUID riid)
throws java.io.IOException,
AutomationException
ISupportErrorInfoIndicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||