All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openhtmltopdf.bidi.BidiTextRun Maven / Gradle / Ivy

package com.openhtmltopdf.bidi;


/**
 * Simple class to hold a visual ordering text run.
 */
public class BidiTextRun {
    private final int startIndex;
    private final int length;
    private final byte direction;
    
    public BidiTextRun(int startIndex, int length, byte direction) {
        this.startIndex = startIndex;
        this.length = length;
        this.direction = direction;
    }
    
    public int getStart() {
        return startIndex;
    }
    
    public int getLength() {
        return length;
    }

    /**
     * @return either LTR or RTL.
     */
    public byte getDirection() {
        return direction;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy