summaryrefslogtreecommitdiff
path: root/platform/java/src
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-07-17 16:54:20 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-07-17 22:33:52 +0800
commit9500e155c7d7b1b99cc1f171c1ef3040c8023132 (patch)
tree2350f87d6d9c9c3be8f65ccd3801894688a16660 /platform/java/src
parent014fb58f887086ea34f74dcdb0d91dbec05966d1 (diff)
downloadmupdf-9500e155c7d7b1b99cc1f171c1ef3040c8023132.tar.xz
JNI: Implement Link for hyperlinks in document.
Diffstat (limited to 'platform/java/src')
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Link.java20
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Page.java1
2 files changed, 9 insertions, 12 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Link.java b/platform/java/src/com/artifex/mupdf/fitz/Link.java
index 0ecd8307..34bb648f 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Link.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Link.java
@@ -2,18 +2,14 @@ package com.artifex.mupdf.fitz;
public class Link
{
- private long pointer;
-
- protected native void finalize();
-
- public void destroy() {
- finalize();
- pointer = 0;
- }
-
- private Link(long p) {
- pointer = p;
+ public Rect bounds;
+ public int page;
+ public String uri;
+
+ public Link(Rect bounds, int page, String uri) {
+ this.bounds = bounds;
+ this.page = page;
+ this.uri = uri;
}
- public native Link getNext();
}
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Page.java b/platform/java/src/com/artifex/mupdf/fitz/Page.java
index 7763df04..91bd5067 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Page.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Page.java
@@ -4,6 +4,7 @@ public class Page
{
private long pointer;
private Annotation nativeAnnots[];
+ private Link nativeLinks[];
protected native void finalize();