de.vorb.tesseract.TextlineOrder Maven / Gradle / Ivy
package de.vorb.tesseract;
import java.util.Collections;
import java.util.Iterator;
import org.bridj.FlagSet;
import org.bridj.IntValuedEnum;
/**
* Textline order.
*
* @author Paul Vorbach
*/
public enum TextlineOrder implements IntValuedEnum {
LEFT_TO_RIGHT(0),
RIGHT_TO_LEFT(1),
TOP_TO_BOTTOM(2);
TextlineOrder(long value) {
this.value = value;
}
public final long value;
public long value() {
return this.value;
}
public Iterator iterator() {
return Collections.singleton(this).iterator();
}
public static IntValuedEnum fromValue(int value) {
return FlagSet.fromValue(value, values());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy