FrameGfxDraw.java 957 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xfa.text;

import com.adobe.xfa.text.DrawParm;
import com.adobe.xfa.text.FrameHelper;
import com.adobe.xfa.text.TextFrame;
import com.adobe.xfa.text.TextSparseStream;
import com.adobe.xfa.ut.UnitSpan;

class FrameGfxDraw
extends FrameHelper {
    private final DrawParm moParm;
    private boolean mbFits;

    FrameGfxDraw(TextSparseStream poStream, DrawParm oParm, int eProcess) {
        super(poStream, eProcess);
        this.moParm = oParm;
        this.mbFits = true;
    }

    FrameGfxDraw(TextSparseStream poStream, DrawParm oParm) {
        this(poStream, oParm, 0);
    }

    boolean fits() {
        return this.mbFits;
    }

    @Override
    protected boolean processOneFrame(TextFrame poFrame) {
        boolean bFits;
        if (poFrame != null && !(bFits = poFrame.gfxDraw(this.moParm, this.getOffset()))) {
            this.mbFits = false;
        }
        return true;
    }
}