PDFAnnotationDefaults.java 1.69 KB
/*
 * 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;
    }
}