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

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

Go to download

Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code.

There is a newer version: 1.1.4
Show newest version
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