summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex/mupdf/fitz/Annotation.java
blob: b2d27855eb9c8aff06c2bd18044f4ca20321cd96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.artifex.mupdf.fitz;

public class Annotation
{
	static {
		Context.init();
	}

	private long pointer;

	protected native void finalize();

	public void destroy() {
		finalize();
		pointer = 0;
	}

	protected Annotation(long p) {
		pointer = p;
	}

	public native void run(Device dev, Matrix ctm, Cookie cookie);
	public native Pixmap toPixmap(Matrix ctm, ColorSpace colorspace, boolean alpha);
	public native Rect getBounds();
	public native DisplayList toDisplayList();

	private native long advance();
}