org.pdfbox.util
Class TextPositionComparator

java.lang.Object
  extended byorg.pdfbox.util.TextPositionComparator
All Implemented Interfaces:
Comparator

public class TextPositionComparator
extends Object
implements Comparator

This class is a comparator for TextPosition operators.

Version:
$Revision: 1.7 $
Author:
Ben Litchfield

Constructor Summary
TextPositionComparator(PDPage page)
          Constuctor, comparison of TextPosition depends on the rotation of the page.
 
Method Summary
 int compare(Object o1, Object o2)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

TextPositionComparator

public TextPositionComparator(PDPage page)
Constuctor, comparison of TextPosition depends on the rotation of the page.

Parameters:
page - The page that the text position is on.
Method Detail

compare

public int compare(Object o1,
                   Object o2)

Specified by:
compare in interface Comparator