ShadingPattern.java 2.97 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.internal.pdftoolkit.graphicsDOM;

import com.adobe.internal.pdftoolkit.graphicsDOM.ContentItem;
import com.adobe.internal.pdftoolkit.graphicsDOM.ContentType;
import com.adobe.internal.pdftoolkit.graphicsDOM.GraphicsState;
import com.adobe.internal.pdftoolkit.graphicsDOM.Pattern;
import com.adobe.internal.pdftoolkit.graphicsDOM.TextState;
import java.awt.Color;
import java.awt.DisplayMode;
import java.util.ArrayList;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public abstract class ShadingPattern<G extends GraphicsState, T extends TextState, C extends ContentItem<G>>
extends Pattern<G, T, C> {
    private double[] background;
    private Boolean antialias;
    private double[] domain;
    private ArrayList<Boolean> extend;
    private double[] bbox;
    private int height;
    protected Color[] colorValues;
    private int width;
    private double[] matrix;

    public ShadingPattern(G graphicsStae, int id) {
        super(graphicsStae, id);
    }

    public abstract ShadingType getShadingType();

    public abstract Color[] getColorValues();

    public abstract void setColorValues(Color[] var1);

    public double[] getBBox() {
        return this.bbox;
    }

    public void setBBox(double[] bBox) {
        this.bbox = bBox;
    }

    public void setDisplayMode(DisplayMode displayMode) {
    }

    public double[] getBackground() {
        return this.background;
    }

    public void setBackground(double[] background) {
        this.background = background;
    }

    public double[] getDomain() {
        return this.domain;
    }

    public void setDomain(double[] domain) {
        this.domain = domain;
    }

    public ArrayList<Boolean> getExtend() {
        return this.extend;
    }

    public void setExtend(ArrayList<Boolean> extend) {
        this.extend = extend;
    }

    public Boolean getantialiasing() {
        return this.antialias;
    }

    public void setAntialias(Boolean antialias) {
        this.antialias = antialias;
    }

    public int getHeight() {
        return this.height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWidth() {
        return this.width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public double[] getMatrix() {
        return this.matrix;
    }

    public void setMatrix(double[] matrix) {
        this.matrix = matrix;
    }

    @Override
    public ContentType getType() {
        return ContentType.ShadingPattern;
    }

    /*
     * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
     */
    public static enum ShadingType {
        FunctionBased,
        Axial,
        Radial,
        FreeFormGouraudShadedTriangleMeshes,
        LatticeFormGouraudShadedTriangleMeshes,
        CoonsPatchMeshes,
        TensorProductPatchMeshes;
        

        private ShadingType() {
        }
    }

}