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,42 @@
package jxl.format;
public class VerticalAlignment {
private int value;
private String string;
private static VerticalAlignment[] alignments = new VerticalAlignment[0];
protected VerticalAlignment(int val, String s) {
this.value = val;
this.string = s;
VerticalAlignment[] oldaligns = alignments;
alignments = new VerticalAlignment[oldaligns.length + 1];
System.arraycopy(oldaligns, 0, alignments, 0, oldaligns.length);
alignments[oldaligns.length] = this;
}
public int getValue() {
return this.value;
}
public String getDescription() {
return this.string;
}
public static VerticalAlignment getAlignment(int val) {
for (int i = 0; i < alignments.length; i++) {
if (alignments[i].getValue() == val)
return alignments[i];
}
return BOTTOM;
}
public static VerticalAlignment TOP = new VerticalAlignment(0, "top");
public static VerticalAlignment CENTRE = new VerticalAlignment(1, "centre");
public static VerticalAlignment BOTTOM = new VerticalAlignment(2, "bottom");
public static VerticalAlignment JUSTIFY = new VerticalAlignment(3, "Justify");
}