com.openhtmltopdf.bidi.BidiTextRun Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openhtmltopdf-core Show documentation
Show all versions of openhtmltopdf-core Show documentation
Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code.
The 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;
}
}