public class

EditingChange

extends Object
java.lang.Object
   ↳ com.pspdfkit.undo.EditingChange

Class Overview

Change that happened because of an operation performed by the document editor that can be undone/redone.

Summary

Public Constructors
EditingChange(EditingOperation editingOperation, int affectedPageIndex, int pageIndexDestination, int pageReferenceSourceIndex)
Constructs a new editing change.
Public Methods
int getAffectedPageIndex()
Gets the affected page index.
EditingOperation getEditingOperation()
Returns the operation type.
int getPageIndexDestination()
Gets the page index destination if it was a move change.
int getPageReferenceSourceIndex()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EditingChange (EditingOperation editingOperation, int affectedPageIndex, int pageIndexDestination, int pageReferenceSourceIndex)

Constructs a new editing change.

Parameters
editingOperation Type of editing change operation.
affectedPageIndex Affected page index.
pageIndexDestination Page index destination if it was a move change.

Public Methods

public int getAffectedPageIndex ()

Gets the affected page index.

Returns
  • Page index that was affected.

public EditingOperation getEditingOperation ()

Returns the operation type.

Returns
  • The operation type.

public int getPageIndexDestination ()

Gets the page index destination if it was a move change.

Returns
  • The destination of the page index if it was a move change, 0 otherwise.

public int getPageReferenceSourceIndex ()