Constructor and Description |
---|
Selections() |
Modifier and Type | Method and Description |
---|---|
static Selection |
selectRect(Page page)
Creates a
Selection containing the whole page. |
static Selection |
selectRect(Page page,
Rectangle2D bounds)
|
static Selection |
selectText(Page page)
|
static Selection |
selectText(Page page,
Rectangle2D bounds)
|
public static Selection selectRect(Page page) throws IllegalArgumentException
Selection
containing the whole page. In contrast to selectText(Page)
the resulting selection will be a single Rectangle
and not multiple representing each
line of text.
This method is s shortcut for selectRect(Page, Rectangle2D)
, where the second
parameter will be constructed using the current page size.
page
- the page for which the selection shall be createdSelection
containing the whole pageIllegalArgumentException
public static Selection selectRect(Page page, Rectangle2D bounds) throws IllegalArgumentException
Selection
for the given Page
with the specified bounds
. In contrast to selectText(Page, Rectangle2D)
the resulting selection will be
a single Rectangle2D
and not multiple representing each line of text.page
- the page for which the selection shall be createdbounds
- the area within the page that shall be selectedSelection
for the given bounds
IllegalArgumentException
- if page and/or bounds are nullpublic static Selection selectText(Page page) throws IllegalArgumentException
Selection
for the given Page
containing the whole textual content of
the page. In constrast to selectRect(Page)
this method will create a selection that
contains the full page text only.page
- the page for which the selection shall be createdSelection
containing the whole text of the page.IllegalArgumentException
- if page is null
public static Selection selectText(Page page, Rectangle2D bounds) throws IllegalArgumentException
Selection
for the given Page
containing the textual content within
the given bounds of the page.page
- the page for which the selection shall be createdbounds
- the bounds within the page to select the textual content from.Selection
containing the whole text of the page.IllegalArgumentException
- if page or bounds are null
Copyright © 2024 levigo holding gmbh. All rights reserved.