BidiRun.java 755 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.agl.text;

public class BidiRun {
    int start;
    int limit;
    int insertRemove;
    byte level;

    BidiRun() {
        this(0, 0, 0);
    }

    BidiRun(int start, int limit, byte embeddingLevel) {
        this.start = start;
        this.limit = limit;
        this.level = embeddingLevel;
    }

    void copyFrom(BidiRun run) {
        this.start = run.start;
        this.limit = run.limit;
        this.level = run.level;
        this.insertRemove = run.insertRemove;
    }

    public boolean isEvenRun() {
        return (this.level & 1) == 0;
    }

    public String toString() {
        return new String("BidiRun " + this.start + " - " + this.limit + " @ " + this.level);
    }
}