TextState.java 2.86 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.internal.pdftoolkit.core.types.ASName
 */
package com.adobe.internal.pdftoolkit.pdf.content.processor;

import com.adobe.internal.pdftoolkit.core.types.ASName;
import com.adobe.internal.pdftoolkit.pdf.graphics.font.PDFFont;

public class TextState {
    private double charSpacing = 0.0;
    private double wordSpacing = 0.0;
    private double horizScaling = 100.0;
    private double leading = 0.0;
    private ASName fontName = null;
    private double fontSize = 0.0;
    private PDFFont font = null;
    private int renderingMode = 0;
    private double rise = 0.0;
    private boolean knockout = true;

    public TextState() {
    }

    TextState(TextState textState) {
        this.setCharSpacing(textState.getCharSpacing());
        this.setWordSpacing(textState.getWordSpacing());
        this.setHorizScaling(textState.getHorizScaling());
        this.setLeading(textState.getLeading());
        this.setFontName(textState.getFontName());
        this.setFontSize(textState.getFontSize());
        this.setFont(textState.getFont());
        this.setRenderingMode(textState.getRenderingMode());
        this.setRise(textState.getRise());
        this.setKnockout(textState.getKnockout());
    }

    public double getCharSpacing() {
        return this.charSpacing;
    }

    public void setCharSpacing(double charSpacing) {
        this.charSpacing = charSpacing;
    }

    public double getWordSpacing() {
        return this.wordSpacing;
    }

    public void setWordSpacing(double wordSpacing) {
        this.wordSpacing = wordSpacing;
    }

    public double getHorizScaling() {
        return this.horizScaling;
    }

    public void setHorizScaling(double horizScaling) {
        this.horizScaling = horizScaling;
    }

    public double getLeading() {
        return this.leading;
    }

    public void setLeading(double leading) {
        this.leading = leading;
    }

    public ASName getFontName() {
        return this.fontName;
    }

    public void setFontName(ASName fontName) {
        this.fontName = fontName;
    }

    public double getFontSize() {
        return this.fontSize;
    }

    public void setFontSize(double fontSize) {
        this.fontSize = fontSize;
    }

    public PDFFont getFont() {
        return this.font;
    }

    public void setFont(PDFFont font) {
        this.font = font;
    }

    public int getRenderingMode() {
        return this.renderingMode;
    }

    public void setRenderingMode(int renderingMode) {
        this.renderingMode = renderingMode;
    }

    public double getRise() {
        return this.rise;
    }

    public void setRise(double rise) {
        this.rise = rise;
    }

    public boolean getKnockout() {
        return this.knockout;
    }

    public void setKnockout(boolean knockout) {
        this.knockout = knockout;
    }
}