TextFragmentRectanglesComparer
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.comparison.sidebysidecomparison.TextFragmentRectanglesComparer
All Implemented Interfaces: Comparator < Rectangle >
public class TextFragmentRectanglesComparer extends Object implements Comparator < Rectangle >
Represents a class to compare two Rectangle objects. It is used in the context of side-by-side comparison of text fragments in PDF documents.
Constructors
| Constructor | Description |
|---|---|
| TextFragmentRectanglesComparer |
Methods
| Method | Description |
|---|---|
| compare | Compares two Rectangle objects. It takes into account their relative positions. This comparator allows you to sort text fragments or other objects with a rectangular area in reading order - from left to right. |
TextFragmentRectanglesComparer
public TextFragmentRectanglesComparer()
compare
Compares two Rectangle objects. It takes into account their relative positions. This comparator allows you to sort text fragments or other objects with a rectangular area in reading order - from left to right.