Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.
VTT Markup Undo/Redo Design
I. Undoable Markup operations
VTT provides undo/redo for markup operations. Undoable and redoable operations include:
II. Java Classes
action_ | undoBases_: action in undoBases | ||||||||
---|---|---|---|---|---|---|---|---|---|
ADD | CHANGE | DELETE | JOIN | OVERRIDE | |
The following table demonstrates the data in a specified undoNode/undoBase when calling AddUndo( ):
Markup action_ | prev_ | cur_ | ||||||
---|---|---|---|---|---|---|---|---|
offset | length | tagName | annotation | offset | length | tagName | annotation | |
ADD (0) | cur offset | cur length | cur tag | cur annotation | cur offset | cur length | cur tag | cur annotation |
CHANGE (1) | prev offset | prev length | prev tagName | prev annotation | cur offset | cur length | cur tagName | cur annotation |
DELETE (2) | cur offset | cur length | cur tag | cur annotation | cur offset | cur length | cur tag | cur annotation |
III. Undo Operations
The undo operation class performs the undo/redo basic operations of add/change/delete on markups.