summaryrefslogtreecommitdiff
path: root/android/src/com/artifex/mupdfdemo/Annotation.java
blob: cf915524f946391cba7ab49d0e8c48ef678433f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.artifex.mupdfdemo;

import android.graphics.RectF;

public class Annotation extends RectF {
	enum Type {
		TEXT, LINK, FREETEXT, LINE, SQUARE, CIRCLE, POLYGON, POLYLINE, HIGHLIGHT,
		UNDERLINE, SQUIGGLY, STRIKEOUT, STAMP, CARET, INK, POPUP, FILEATTACHMENT,
		SOUND, MOVIE, WIDGET, SCREEN, PRINTERMARK, TRAPNET, WATERMARK, A3D, UNKNOWN
	}

	public final Type type;

	public Annotation(float x0, float y0, float x1, float y1, int _type) {
		super(x0, y0, x1, y1);
		type = _type == -1 ? Type.UNKNOWN : Type.values()[_type];
	}
}