java.lang.Object | |
↳ | com.pdftron.sdf.UndoManager |
The class UndoManager. Undo-redo interface; one-to-one mapped to document
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UndoManager(long impl_ptr) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | __GetHandle() | ||||||||||
boolean |
canRedo()
Returns a boolean indicating whether it is possible to redo from the current snapshot.
| ||||||||||
boolean |
canUndo()
Returns whether it is possible to undo from the current snapshot.
| ||||||||||
void |
close()
Frees the native memory of the object.
| ||||||||||
void |
destroy()
Frees the native memory of the object.
| ||||||||||
DocSnapshot |
discardAllSnapshots()
Forget all changes in this manager (without changing the document).
| ||||||||||
DocSnapshot |
getNextRedoSnapshot()
Gets the next state of the document.
| ||||||||||
DocSnapshot |
getNextUndoSnapshot()
Gets the previous state of the document.
| ||||||||||
ResultSnapshot |
redo()
Restores to the next snapshot, if there is one.
| ||||||||||
ResultSnapshot |
takeSnapshot()
Creates a snapshot of document state, transitions to the new snapshot.
| ||||||||||
ResultSnapshot |
undo()
Restores to the previous snapshot point, if there is one.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
Returns a boolean indicating whether it is possible to redo from the current snapshot.
PDFNetException |
---|
Returns whether it is possible to undo from the current snapshot.
PDFNetException |
---|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|
Forget all changes in this manager (without changing the document).
PDFNetException |
---|
Gets the next state of the document. This state may be invalid if it is impossible to redo.
PDFNetException |
---|
Gets the previous state of the document. This state may be invalid if it is impossible to undo.
PDFNetException |
---|
Restores to the next snapshot, if there is one.
PDFNetException |
---|
Creates a snapshot of document state, transitions to the new snapshot.
PDFNetException |
---|
Restores to the previous snapshot point, if there is one.
PDFNetException |
---|