diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-02-18 15:04:23 +0000 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-02-22 12:21:22 +0000 |
commit | d5dcc473b0e50e726dc80f2be4ecdcad43217d64 (patch) | |
tree | 3a2217041f026a0a1da5fb418b74c29adf090900 /android/src/com/artifex/mupdfdemo/Annotation.java | |
parent | 5d15995814d4d99e44a860ae435659d9e30fad3b (diff) | |
download | mupdf-d5dcc473b0e50e726dc80f2be4ecdcad43217d64.tar.xz |
Android: add MuPDFCore.getAnnotations
Diffstat (limited to 'android/src/com/artifex/mupdfdemo/Annotation.java')
-rw-r--r-- | android/src/com/artifex/mupdfdemo/Annotation.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/android/src/com/artifex/mupdfdemo/Annotation.java b/android/src/com/artifex/mupdfdemo/Annotation.java new file mode 100644 index 00000000..709b66cc --- /dev/null +++ b/android/src/com/artifex/mupdfdemo/Annotation.java @@ -0,0 +1,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 + } + + public final Type type; + + public Annotation(float x0, float y0, float x1, float y1, int _type) { + super(x0, y0, x1, y1); + type = Type.values()[_type]; + } +} |