Class InternalLink
- java.lang.Object
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeBase
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.navigation.Link
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.navigation.InternalLink
-
public class InternalLink extends Link
A document-wide link
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InternalLink
create(Document targetDocument, Rectangle boundingBox, Destination target)
Create a document-internal linkstatic InternalLink
createFromQuadrilaterals(Document targetDocument, QuadrilateralList activeArea, Destination target)
Create a document-internal link with defined link areaDestination
getDestination()
The link target (Getter)-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.pdf.navigation.Link
copy, getActiveArea, getBoundingBox, getHidden, getNoPrint, setBorderStyle
-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
create
public static InternalLink create(Document targetDocument, Rectangle boundingBox, Destination target)
Create a document-internal link
The link is associated with thetargetDocument
but not yet part of any page. It can be added to a page's list of links.- Parameters:
targetDocument
- The document in which the links is usedboundingBox
- The location on the page.target
- The link target- Returns:
- The newly created object
- Throws:
java.lang.IllegalArgumentException
- if thetargetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if thetargetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- if thetarget
argument is not associated with thetargetDocument
java.lang.IllegalArgumentException
- iftargetDocument
isnull
java.lang.IllegalArgumentException
- ifboundingBox
isnull
java.lang.IllegalArgumentException
- iftarget
isnull
-
createFromQuadrilaterals
public static InternalLink createFromQuadrilaterals(Document targetDocument, QuadrilateralList activeArea, Destination target)
Create a document-internal link with defined link area
The link has an active area defined by the givenactiveArea
. The link is associated with thetargetDocument
but not yet part of any page. It can be added to a page's list of links.- Parameters:
targetDocument
- The document in which the links is usedactiveArea
- The active link area on the page.target
- The link target- Returns:
- The newly created object
- Throws:
java.lang.IllegalArgumentException
- if thetargetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if thetargetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- if thetarget
argument is not associated with thetargetDocument
java.lang.IllegalArgumentException
- if theactiveArea
is emptyjava.lang.IllegalArgumentException
- iftargetDocument
isnull
java.lang.IllegalArgumentException
- ifactiveArea
isnull
java.lang.IllegalArgumentException
- iftarget
isnull
-
getDestination
public Destination getDestination()
The link target (Getter)
- Throws:
java.lang.IllegalStateException
- if the object has already been closedjava.lang.IllegalStateException
- if the link has no destination
-
-