com.qoppa.pdf
Class TextPositionWithContext

java.lang.Object
  extended by com.qoppa.pdf.TextPosition
      extended by com.qoppa.pdf.TextPositionWithContext
All Implemented Interfaces:
TextSelection

public class TextPositionWithContext
extends TextPosition

This class represents one result from a text search in a document. The class contains information about the text that was searched for and found, including its location and shape on the page and some text before and after the string that was searched for that can be used for display purposes.

Author:
Qoppa Software

Field Summary
 String m_AfterText
           
 String m_BeforeText
           
 
Fields inherited from class com.qoppa.pdf.TextPosition
m_PageNumber
 
Constructor Summary
TextPositionWithContext(int pageNumber, String beforeText, String searchText, String afterText, Shape textShape, Point2D[] quad, double angle)
           
 
Method Summary
 String getAfterText()
           
 String getBeforeText()
           
 String toString()
           
 
Methods inherited from class com.qoppa.pdf.TextPosition
getAngle, getEnclosingShape, getPageNumber, getQuadrilateral, getQuadrilaterals, getSelectionShape, getText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_BeforeText

public String m_BeforeText

m_AfterText

public String m_AfterText
Constructor Detail

TextPositionWithContext

public TextPositionWithContext(int pageNumber,
                               String beforeText,
                               String searchText,
                               String afterText,
                               Shape textShape,
                               Point2D[] quad,
                               double angle)
Method Detail

getBeforeText

public String getBeforeText()

getAfterText

public String getAfterText()

toString

public String toString()
Overrides:
toString in class Object