org.apache.pdfbox.util
Class TextPositionComparator

java.lang.Object
  extended by org.apache.pdfbox.util.TextPositionComparator
All Implemented Interfaces:
Comparator

public class TextPositionComparator
extends Object
implements Comparator

This class is a comparator for TextPosition operators. It handles pages with text in different directions by grouping the text based on direction and sorting in that direction. This allows continuous text in a given direction to be more easily grouped together.

Version:
$Revision: 1.7 $
Author:
Ben Litchfield

Constructor Summary
TextPositionComparator()
           
 
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()
Method Detail

compare

public int compare(Object o1,
                   Object o2)

Specified by:
compare in interface Comparator


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.