|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.text.TextContentService
public abstract class TextContentService
Provides access to the page text content.
Nested Class Summary | |
---|---|
class |
TextContentService.TextContentResult
|
Constructor Summary | |
---|---|
TextContentService()
|
Method Summary | |
---|---|
static TextContentService |
getInstance()
Provides a TextContentService instance. |
static TextContentService |
getInstance(TaskExecutor<TextContentService.TextContentResult> taskExecutor)
Provides a TextContentService instance. |
abstract Selection |
getSelection(Page page)
Return the Selection for the whole page. |
abstract Selection |
getSelectionBetween(Page p,
Point2D start,
Point2D end)
Return the Selection between two points on the page. |
abstract Selection |
getSelectionBetween(Page p,
Point2D start,
Point2D end,
Granularity granularity)
Provides line based selection support. |
abstract Selection |
getSelectionInArea(Page page,
Rectangle selectedArea)
Return the Selection within a rectangular area. |
abstract boolean |
isSelectableAt(Page page,
Point2D documentPoint)
Return whether there is something selectable at the given point. |
abstract void |
purgeTextContent(Page page)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextContentService()
Method Detail |
---|
public static TextContentService getInstance()
TextContentService
instance. To start working with the
TextContentService
, this method should be used to obtain a instance.
TextContentService
public static TextContentService getInstance(TaskExecutor<TextContentService.TextContentResult> taskExecutor)
TextContentService
instance. To start working with the
TextContentService
, this method should be used to obtain a instance.
TextContentService
public abstract Selection getSelectionInArea(Page page, Rectangle selectedArea)
Selection
within a rectangular area. The area must be specified in document
units.
public abstract Selection getSelectionBetween(Page p, Point2D start, Point2D end)
Selection
between two points on the page. The points must be specified in
document units.
public abstract Selection getSelectionBetween(Page p, Point2D start, Point2D end, Granularity granularity)
List
of Selection
s in a line based manner. Think about it like the way selecting text inside a word processor
works. (Dragging the mouse cursor)
p
- the Page
to perform the selection onstart
- the starting pointend
- the ending pointgranularity
- the granularity with which to select elements
Selection
elementspublic abstract boolean isSelectableAt(Page page, Point2D documentPoint)
public abstract Selection getSelection(Page page)
Selection
for the whole page.
public abstract void purgeTextContent(Page page)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |