public abstract class TextContentService extends Object
Modifier and Type | Class and Description |
---|---|
class |
TextContentService.TextContentResult |
Constructor and Description |
---|
TextContentService() |
Modifier and Type | Method and Description |
---|---|
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) |
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)
public abstract boolean isSelectableAt(Page page, Point2D documentPoint)
public abstract Selection getSelection(Page page)
Selection
for the whole page.public abstract void purgeTextContent(Page page)
Copyright © 2024 levigo holding gmbh. All rights reserved.