TilingPattern.java 2.37 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.ContentItemsList;
import com.adobe.internal.pdftoolkit.graphicsDOM.ContentType;
import com.adobe.internal.pdftoolkit.graphicsDOM.DisplayArea;
import com.adobe.internal.pdftoolkit.graphicsDOM.GraphicsState;
import com.adobe.internal.pdftoolkit.graphicsDOM.Pattern;
import com.adobe.internal.pdftoolkit.graphicsDOM.TextState;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public abstract class TilingPattern<G extends GraphicsState, T extends TextState, C extends ContentItem<G>>
extends Pattern<G, T, C>
implements DisplayArea<G, T, C>,
ContentItem<G> {
    private ContentItemsList<G, C> ciList;
    private double[] bbox;
    private double rotation = 0.0;
    private double[] xStep = null;
    private double[] yStep = null;
    private double[] phase = null;
    private double[] scale = null;

    public TilingPattern(G graphicsState, int id) {
        super(graphicsState, id);
    }

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

    @Override
    public ContentItemsList<G, C> getContentItems() {
        return this.ciList;
    }

    @Override
    public double getDisplayRotation() {
        return this.rotation;
    }

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

    @Override
    public void setContentItems(ContentItemsList<G, C> contentItem) {
        this.ciList = contentItem;
    }

    @Override
    public void setDisplayRotation(double rotation) {
        this.rotation = rotation;
    }

    public double[] getXStep() {
        return this.xStep;
    }

    public void setXStep(double[] xStep) {
        this.xStep = xStep;
    }

    public double[] getYStep() {
        return this.yStep;
    }

    public void setYStep(double[] yStep) {
        this.yStep = yStep;
    }

    public double[] getPhase() {
        return this.phase;
    }

    public void setPhase(double[] phase) {
        this.phase = phase;
    }

    public void setScale(double[] scale) {
        this.scale = scale;
    }

    public double[] getScale() {
        return this.scale;
    }

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