public class InternalLink extends Link
Modifier and Type | Method and Description |
---|---|
static InternalLink |
create(Document targetDocument,
Rectangle boundingBox,
Destination target)
Create a document-internal link
|
static InternalLink |
createDynamicObject(long handle) |
static InternalLink |
createFromQuadrilaterals(Document targetDocument,
QuadrilateralList activeArea,
Destination target)
Create a document-internal link with defined link area
|
Destination |
getDestination()
The link target (Getter)
|
copy, getActiveArea, getBoundingBox, getHidden, getNoPrint, setBorderStyle
equals, hashCode
public static InternalLink createDynamicObject(long handle)
public static InternalLink create(Document targetDocument, Rectangle boundingBox, Destination target)
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.target
- 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 target
argument is null
java.lang.IllegalArgumentException
- if the target
argument is not associated with the targetDocument
java.lang.IllegalArgumentException
- if boundingBox
is null
public static InternalLink createFromQuadrilaterals(Document targetDocument, QuadrilateralList activeArea, Destination target)
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.target
- 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 target
argument is null
java.lang.IllegalArgumentException
- if the target
argument is not associated with the targetDocument
java.lang.IllegalArgumentException
- if the activeArea
argument is null
java.lang.IllegalArgumentException
- if the activeArea
is emptypublic Destination getDestination()
java.lang.IllegalStateException
- if the object has already been closedjava.lang.IllegalStateException
- if the link has no destination