first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
package jxl.format;
public final class ScriptStyle {
private int value;
private String string;
private static ScriptStyle[] styles = new ScriptStyle[0];
protected ScriptStyle(int val, String s) {
this.value = val;
this.string = s;
ScriptStyle[] oldstyles = styles;
styles = new ScriptStyle[oldstyles.length + 1];
System.arraycopy(oldstyles, 0, styles, 0, oldstyles.length);
styles[oldstyles.length] = this;
}
public int getValue() {
return this.value;
}
public String getDescription() {
return this.string;
}
public static ScriptStyle getStyle(int val) {
for (int i = 0; i < styles.length; i++) {
if (styles[i].getValue() == val)
return styles[i];
}
return NORMAL_SCRIPT;
}
public static final ScriptStyle NORMAL_SCRIPT = new ScriptStyle(0, "normal");
public static final ScriptStyle SUPERSCRIPT = new ScriptStyle(1, "super");
public static final ScriptStyle SUBSCRIPT = new ScriptStyle(2, "sub");
}