PDFAnnotationDefaults.java
1.69 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.internal.pdftoolkit.pdf.interactive.annotation;
import java.util.HashMap;
public class PDFAnnotationDefaults {
private HashMap annotationDefaults;
Object[] red = new Object[]{"RGB", new Double(1.0), new Double(0.0), new Double(0.0)};
public HashMap constructAnnotationDefaults() {
this.annotationDefaults = new HashMap();
this.annotationDefaults.put("arrowBegin", "None");
this.annotationDefaults.put("arrowEnd", "None");
this.annotationDefaults.put("strokeColor", this.red);
this.annotationDefaults.put("style", "Solid");
this.annotationDefaults.put("textColor", this.red);
this.annotationDefaults.put("textSize", new Double(12.0));
this.annotationDefaults.put("type", "Square");
this.annotationDefaults.put("width", 1);
this.annotationDefaults.put("AP", "Approved");
this.annotationDefaults = this.addRectToDefault(this.annotationDefaults);
return this.annotationDefaults;
}
public HashMap addRectToDefault(HashMap annotationDefaults) {
double[] arr = new double[]{0.0, 100.0, 200.0, 300.0};
annotationDefaults.put("rect", arr);
return annotationDefaults;
}
public HashMap addQuadPointsToDefaults(HashMap annotationDefaults) {
double[] arr = new double[]{0.0, 100.0, 100.0, 100.0, 0.0, 0.0, 100.0, 0.0};
annotationDefaults.put("quads", arr);
return annotationDefaults;
}
public HashMap getAnnotationDefaults() {
return this.annotationDefaults;
}
public void setAnnotationDefaults(HashMap annotationDefaults) {
this.annotationDefaults = annotationDefaults;
}
}