Gnostice PDFOne
Pro. Ed. v5.0.0


com.gnostice.pdfone
Class PdfSearchElement

java.lang.Object
  extended bycom.gnostice.pdfone.PdfSearchElement

public class PdfSearchElement
extends Object

This class represents a result of a page element search operation.

See Also:
PdfProDocument.search(int, String, int, int)

Method Summary
 Rectangle2D getBoundingRect()
          Returns region containing the search string.
 ArrayList getCharBoundingRects()
          Returns a list of regions containing characters of the search string.
 int getIndexOfMatchStringInLine()
          Returns index of the search string in the text element containing it.
 String getLineContainingMatchString()
          Returns actual text of the text element containing the search text.
 String getMatchString()
          Returns actual text of the search string found by by the search.
 int getPageNum()
          Returns number of the page that contains the text element found by the search.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()

getPageNum

public int getPageNum()
Returns number of the page that contains the text element found by the search.

Returns:
number of the page

getBoundingRect

public Rectangle2D getBoundingRect()
Returns region containing the search string.

Returns:
region containing the search string

getCharBoundingRects

public ArrayList getCharBoundingRects()
Returns a list of regions containing characters of the search string.

Returns:
list of regions containing characters of the search string

getMatchString

public String getMatchString()
Returns actual text of the search string found by by the search.

Returns:
actual text of the search string found by by the search

getLineContainingMatchString

public String getLineContainingMatchString()
Returns actual text of the text element containing the search text.

Returns:
actual text of the text element containing the search text

getIndexOfMatchStringInLine

public int getIndexOfMatchStringInLine()
Returns index of the search string in the text element containing it.

Returns:
index of the search string in the text element

Gnostice PDFOne
Pro. Ed. v5.0.0

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2010 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com