Class InternalLink
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.navigation.Link
-
- com.pdftools.toolbox.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 InternalLinkcreate(Document targetDocument, Rectangle boundingBox, Destination target)Create a document-internal linkstatic InternalLinkcreateFromQuadrilaterals(Document targetDocument, QuadrilateralList activeArea, Destination target)Create a document-internal link with defined link areaDestinationgetDestination()The link target (Getter)-
Methods inherited from class com.pdftools.toolbox.pdf.navigation.Link
copy, getActiveArea, getBoundingBox, getHidden, getNoPrint, setBorderStyle
-
Methods inherited from class com.pdftools.toolbox.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 thetargetDocumentbut 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 thetargetDocumentargument has already been closedjava.lang.IllegalArgumentException- if thetargetDocumentargument is read-onlyjava.lang.IllegalArgumentException- if thetargetargument is not associated with thetargetDocumentjava.lang.IllegalArgumentException- iftargetDocumentisnulljava.lang.IllegalArgumentException- ifboundingBoxisnulljava.lang.IllegalArgumentException- iftargetisnull
-
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 thetargetDocumentbut 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 thetargetDocumentargument has already been closedjava.lang.IllegalArgumentException- if thetargetDocumentargument is read-onlyjava.lang.IllegalArgumentException- if thetargetargument is not associated with thetargetDocumentjava.lang.IllegalArgumentException- if theactiveAreais emptyjava.lang.IllegalArgumentException- iftargetDocumentisnulljava.lang.IllegalArgumentException- ifactiveAreaisnulljava.lang.IllegalArgumentException- iftargetisnull
-
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
-
-