|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.Selections
public class Selections
Utility class for Selection
objects.
Constructor Summary | |
---|---|
Selections()
|
Method Summary | |
---|---|
static Selection |
selectRect(Page page)
Creates a Selection containing the whole page. |
static Selection |
selectRect(Page page,
Rectangle2D bounds)
Creates a Selection for the given Page with the specified bounds . |
static Selection |
selectText(Page page)
Creates a Selection for the given Page containing the whole textual content of
the page. |
static Selection |
selectText(Page page,
Rectangle2D bounds)
Creates a Selection for the given Page containing the textual content within
the given bounds of the page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Selections()
Method Detail |
---|
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 created
Selection
containing the whole page
IllegalArgumentException
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 selected
Selection
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 created
Selection
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |