DigitWidth.java
867 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.fontengine.inlineformatting;
public final class DigitWidth {
private final String name;
public static final DigitWidth TABULAR = new DigitWidth("TABULAR");
public static final DigitWidth PROPORTIONAL = new DigitWidth("PROPORTIONAL");
public static final DigitWidth DEFAULT = new DigitWidth("DEFAULT");
private static final DigitWidth[] allValues = new DigitWidth[]{TABULAR, PROPORTIONAL, DEFAULT};
private DigitWidth(String name) {
this.name = name;
}
public String toString() {
return this.name;
}
public static DigitWidth parse(String s) {
for (int i = 0; i < allValues.length; ++i) {
if (DigitWidth.allValues[i].name.compareToIgnoreCase(s) != 0) continue;
return allValues[i];
}
return null;
}
}