]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/glass/src/main/java/cz/cvut/fel/dce/qrscanner/mupdf/Annotation.java
Implement PDF preview showing, change icon, implement views and manus layout
[hornmich/skoda-qr-demo.git] / QRScanner / glass / src / main / java / cz / cvut / fel / dce / qrscanner / mupdf / Annotation.java
1 package cz.cvut.fel.dce.qrscanner.mupdf;
2
3 import android.graphics.RectF;
4
5 public class Annotation extends RectF {
6         enum Type {
7                 TEXT, LINK, FREETEXT, LINE, SQUARE, CIRCLE, POLYGON, POLYLINE, HIGHLIGHT,
8                 UNDERLINE, SQUIGGLY, STRIKEOUT, STAMP, CARET, INK, POPUP, FILEATTACHMENT,
9                 SOUND, MOVIE, WIDGET, SCREEN, PRINTERMARK, TRAPNET, WATERMARK, A3D, UNKNOWN
10         }
11
12         public final Type type;
13
14         public Annotation(float x0, float y0, float x1, float y1, int _type) {
15                 super(x0, y0, x1, y1);
16                 type = _type == -1 ? Type.UNKNOWN : Type.values()[_type];
17         }
18 }