public class WebLink extends Link
Modifier and Type | Method and Description |
---|---|
static WebLink |
create(Document targetDocument,
Rectangle boundingBox,
java.lang.String uri)
Create an external link
|
static WebLink |
createDynamicObject(long handle) |
static WebLink |
createFromQuadrilaterals(Document targetDocument,
QuadrilateralList activeArea,
java.lang.String uri)
Create an external link with defined link area
|
java.lang.String |
getUri()
The link target (Getter)
|
void |
setUri(java.lang.String value)
The link target (Setter)
|
copy, getActiveArea, getBoundingBox, getHidden, getNoPrint, setBorderStyle
equals, hashCode
public static WebLink createDynamicObject(long handle)
public static WebLink create(Document targetDocument, Rectangle boundingBox, java.lang.String uri)
targetDocument
but not yet part of any page.
It can be added to a page's list of links.targetDocument
- The document in which the links is usedboundingBox
- The location on the page.uri
- The link targetjava.lang.IllegalArgumentException
- if the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- if boundingBox
is null
java.lang.IllegalArgumentException
- if uri
is null
public static WebLink createFromQuadrilaterals(Document targetDocument, QuadrilateralList activeArea, java.lang.String uri)
activeArea
.
The link is associated with the targetDocument
but not yet part of any page.
It can be added to a page's list of links.targetDocument
- The document in which the links is usedactiveArea
- The active link area on the page.uri
- The link targetjava.lang.IllegalArgumentException
- if the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- if the activeArea
argument is null
java.lang.IllegalArgumentException
- if the activeArea
is emptyjava.lang.IllegalArgumentException
- if uri
is null
public java.lang.String getUri()
java.lang.IllegalStateException
- if the object has already been closedpublic void setUri(java.lang.String value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalStateException
- if the link has already been appended to a page's list of links