first commit
This commit is contained in:
46
hrmsEjb/jxl/format/Alignment.java
Normal file
46
hrmsEjb/jxl/format/Alignment.java
Normal file
@@ -0,0 +1,46 @@
|
||||
package jxl.format;
|
||||
|
||||
public class Alignment {
|
||||
private int value;
|
||||
|
||||
private String string;
|
||||
|
||||
private static Alignment[] alignments = new Alignment[0];
|
||||
|
||||
protected Alignment(int val, String s) {
|
||||
this.value = val;
|
||||
this.string = s;
|
||||
Alignment[] oldaligns = alignments;
|
||||
alignments = new Alignment[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 Alignment getAlignment(int val) {
|
||||
for (int i = 0; i < alignments.length; i++) {
|
||||
if (alignments[i].getValue() == val)
|
||||
return alignments[i];
|
||||
}
|
||||
return GENERAL;
|
||||
}
|
||||
|
||||
public static Alignment GENERAL = new Alignment(0, "general");
|
||||
|
||||
public static Alignment LEFT = new Alignment(1, "left");
|
||||
|
||||
public static Alignment CENTRE = new Alignment(2, "centre");
|
||||
|
||||
public static Alignment RIGHT = new Alignment(3, "right");
|
||||
|
||||
public static Alignment FILL = new Alignment(4, "fill");
|
||||
|
||||
public static Alignment JUSTIFY = new Alignment(5, "justify");
|
||||
}
|
25
hrmsEjb/jxl/format/Border.java
Normal file
25
hrmsEjb/jxl/format/Border.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package jxl.format;
|
||||
|
||||
public class Border {
|
||||
private String string;
|
||||
|
||||
protected Border(String s) {
|
||||
this.string = s;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return this.string;
|
||||
}
|
||||
|
||||
public static final Border NONE = new Border("none");
|
||||
|
||||
public static final Border ALL = new Border("all");
|
||||
|
||||
public static final Border TOP = new Border("top");
|
||||
|
||||
public static final Border BOTTOM = new Border("bottom");
|
||||
|
||||
public static final Border LEFT = new Border("left");
|
||||
|
||||
public static final Border RIGHT = new Border("right");
|
||||
}
|
62
hrmsEjb/jxl/format/BorderLineStyle.java
Normal file
62
hrmsEjb/jxl/format/BorderLineStyle.java
Normal file
@@ -0,0 +1,62 @@
|
||||
package jxl.format;
|
||||
|
||||
public class BorderLineStyle {
|
||||
private int value;
|
||||
|
||||
private String string;
|
||||
|
||||
private static BorderLineStyle[] styles = new BorderLineStyle[0];
|
||||
|
||||
protected BorderLineStyle(int val, String s) {
|
||||
this.value = val;
|
||||
this.string = s;
|
||||
BorderLineStyle[] oldstyles = styles;
|
||||
styles = new BorderLineStyle[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 BorderLineStyle getStyle(int val) {
|
||||
for (int i = 0; i < styles.length; i++) {
|
||||
if (styles[i].getValue() == val)
|
||||
return styles[i];
|
||||
}
|
||||
return NONE;
|
||||
}
|
||||
|
||||
public static final BorderLineStyle NONE = new BorderLineStyle(0, "none");
|
||||
|
||||
public static final BorderLineStyle THIN = new BorderLineStyle(1, "thin");
|
||||
|
||||
public static final BorderLineStyle MEDIUM = new BorderLineStyle(2, "medium");
|
||||
|
||||
public static final BorderLineStyle DASHED = new BorderLineStyle(3, "dashed");
|
||||
|
||||
public static final BorderLineStyle DOTTED = new BorderLineStyle(4, "dotted");
|
||||
|
||||
public static final BorderLineStyle THICK = new BorderLineStyle(5, "thick");
|
||||
|
||||
public static final BorderLineStyle DOUBLE = new BorderLineStyle(6, "double");
|
||||
|
||||
public static final BorderLineStyle HAIR = new BorderLineStyle(7, "hair");
|
||||
|
||||
public static final BorderLineStyle MEDIUM_DASHED = new BorderLineStyle(8, "medium dashed");
|
||||
|
||||
public static final BorderLineStyle DASH_DOT = new BorderLineStyle(9, "dash dot");
|
||||
|
||||
public static final BorderLineStyle MEDIUM_DASH_DOT = new BorderLineStyle(10, "medium dash dot");
|
||||
|
||||
public static final BorderLineStyle DASH_DOT_DOT = new BorderLineStyle(11, "Dash dot dot");
|
||||
|
||||
public static final BorderLineStyle MEDIUM_DASH_DOT_DOT = new BorderLineStyle(12, "Medium dash dot dot");
|
||||
|
||||
public static final BorderLineStyle SLANTED_DASH_DOT = new BorderLineStyle(13, "Slanted dash dot");
|
||||
}
|
33
hrmsEjb/jxl/format/CellFormat.java
Normal file
33
hrmsEjb/jxl/format/CellFormat.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package jxl.format;
|
||||
|
||||
public interface CellFormat {
|
||||
Format getFormat();
|
||||
|
||||
Font getFont();
|
||||
|
||||
boolean getWrap();
|
||||
|
||||
Alignment getAlignment();
|
||||
|
||||
VerticalAlignment getVerticalAlignment();
|
||||
|
||||
Orientation getOrientation();
|
||||
|
||||
BorderLineStyle getBorder(Border paramBorder);
|
||||
|
||||
BorderLineStyle getBorderLine(Border paramBorder);
|
||||
|
||||
Colour getBorderColour(Border paramBorder);
|
||||
|
||||
boolean hasBorders();
|
||||
|
||||
Colour getBackgroundColour();
|
||||
|
||||
Pattern getPattern();
|
||||
|
||||
int getIndentation();
|
||||
|
||||
boolean isShrinkToFit();
|
||||
|
||||
boolean isLocked();
|
||||
}
|
183
hrmsEjb/jxl/format/Colour.java
Normal file
183
hrmsEjb/jxl/format/Colour.java
Normal file
@@ -0,0 +1,183 @@
|
||||
package jxl.format;
|
||||
|
||||
public class Colour {
|
||||
private int value;
|
||||
|
||||
private RGB rgb;
|
||||
|
||||
private String string;
|
||||
|
||||
private static Colour[] colours = new Colour[0];
|
||||
|
||||
protected Colour(int val, String s, int r, int g, int b) {
|
||||
this.value = val;
|
||||
this.string = s;
|
||||
this.rgb = new RGB(r, g, b);
|
||||
Colour[] oldcols = colours;
|
||||
colours = new Colour[oldcols.length + 1];
|
||||
System.arraycopy(oldcols, 0, colours, 0, oldcols.length);
|
||||
colours[oldcols.length] = this;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return this.string;
|
||||
}
|
||||
|
||||
public int getDefaultRed() {
|
||||
return this.rgb.getRed();
|
||||
}
|
||||
|
||||
public int getDefaultGreen() {
|
||||
return this.rgb.getGreen();
|
||||
}
|
||||
|
||||
public int getDefaultBlue() {
|
||||
return this.rgb.getBlue();
|
||||
}
|
||||
|
||||
public RGB getDefaultRGB() {
|
||||
return this.rgb;
|
||||
}
|
||||
|
||||
public static Colour getInternalColour(int val) {
|
||||
for (int i = 0; i < colours.length; i++) {
|
||||
if (colours[i].getValue() == val)
|
||||
return colours[i];
|
||||
}
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
||||
public static Colour[] getAllColours() {
|
||||
return colours;
|
||||
}
|
||||
|
||||
public static final Colour UNKNOWN = new Colour(32750, "unknown", 0, 0, 0);
|
||||
|
||||
public static final Colour BLACK = new Colour(32767, "black", 0, 0, 0);
|
||||
|
||||
public static final Colour WHITE = new Colour(9, "white", 255, 255, 255);
|
||||
|
||||
public static final Colour DEFAULT_BACKGROUND1 = new Colour(0, "default background", 255, 255, 255);
|
||||
|
||||
public static final Colour DEFAULT_BACKGROUND = new Colour(192, "default background", 255, 255, 255);
|
||||
|
||||
public static final Colour PALETTE_BLACK = new Colour(8, "black", 1, 0, 0);
|
||||
|
||||
public static final Colour RED = new Colour(10, "red", 255, 0, 0);
|
||||
|
||||
public static final Colour BRIGHT_GREEN = new Colour(11, "bright green", 0, 255, 0);
|
||||
|
||||
public static final Colour BLUE = new Colour(12, "blue", 0, 0, 255), YELLOW = new Colour(13, "yellow", 255, 255, 0);
|
||||
|
||||
public static final Colour PINK = new Colour(14, "pink", 255, 0, 255);
|
||||
|
||||
public static final Colour TURQUOISE = new Colour(15, "turquoise", 0, 255, 255);
|
||||
|
||||
public static final Colour DARK_RED = new Colour(16, "dark red", 128, 0, 0);
|
||||
|
||||
public static final Colour GREEN = new Colour(17, "green", 0, 128, 0);
|
||||
|
||||
public static final Colour DARK_BLUE = new Colour(18, "dark blue", 0, 0, 128);
|
||||
|
||||
public static final Colour DARK_YELLOW = new Colour(19, "dark yellow", 128, 128, 0);
|
||||
|
||||
public static final Colour VIOLET = new Colour(20, "violet", 128, 128, 0);
|
||||
|
||||
public static final Colour TEAL = new Colour(21, "teal", 0, 128, 128);
|
||||
|
||||
public static final Colour GREY_25_PERCENT = new Colour(22, "grey 25%", 192, 192, 192);
|
||||
|
||||
public static final Colour GREY_50_PERCENT = new Colour(23, "grey 50%", 128, 128, 128);
|
||||
|
||||
public static final Colour PERIWINKLE = new Colour(24, "periwinkle%", 153, 153, 255);
|
||||
|
||||
public static final Colour PLUM2 = new Colour(25, "plum", 153, 51, 102);
|
||||
|
||||
public static final Colour IVORY = new Colour(26, "ivory", 255, 255, 204);
|
||||
|
||||
public static final Colour LIGHT_TURQUOISE2 = new Colour(27, "light turquoise", 204, 255, 255);
|
||||
|
||||
public static final Colour DARK_PURPLE = new Colour(28, "dark purple", 102, 0, 102);
|
||||
|
||||
public static final Colour CORAL = new Colour(29, "coral", 255, 128, 128);
|
||||
|
||||
public static final Colour OCEAN_BLUE = new Colour(30, "ocean blue", 0, 102, 204);
|
||||
|
||||
public static final Colour ICE_BLUE = new Colour(31, "ice blue", 204, 204, 255);
|
||||
|
||||
public static final Colour DARK_BLUE2 = new Colour(32, "dark blue", 0, 0, 128);
|
||||
|
||||
public static final Colour PINK2 = new Colour(33, "pink", 255, 0, 255);
|
||||
|
||||
public static final Colour YELLOW2 = new Colour(34, "yellow", 255, 255, 0);
|
||||
|
||||
public static final Colour TURQOISE2 = new Colour(35, "turqoise", 0, 255, 255);
|
||||
|
||||
public static final Colour VIOLET2 = new Colour(36, "violet", 128, 0, 128);
|
||||
|
||||
public static final Colour DARK_RED2 = new Colour(37, "dark red", 128, 0, 0);
|
||||
|
||||
public static final Colour TEAL2 = new Colour(38, "teal", 0, 128, 128);
|
||||
|
||||
public static final Colour BLUE2 = new Colour(39, "blue", 0, 0, 255);
|
||||
|
||||
public static final Colour SKY_BLUE = new Colour(40, "sky blue", 0, 204, 255);
|
||||
|
||||
public static final Colour LIGHT_TURQUOISE = new Colour(41, "light turquoise", 204, 255, 255);
|
||||
|
||||
public static final Colour LIGHT_GREEN = new Colour(42, "light green", 204, 255, 204);
|
||||
|
||||
public static final Colour VERY_LIGHT_YELLOW = new Colour(43, "very light yellow", 255, 255, 153);
|
||||
|
||||
public static final Colour PALE_BLUE = new Colour(44, "pale blue", 153, 204, 255);
|
||||
|
||||
public static final Colour ROSE = new Colour(45, "rose", 255, 153, 204);
|
||||
|
||||
public static final Colour LAVENDER = new Colour(46, "lavender", 204, 153, 255);
|
||||
|
||||
public static final Colour TAN = new Colour(47, "tan", 255, 204, 153);
|
||||
|
||||
public static final Colour LIGHT_BLUE = new Colour(48, "light blue", 51, 102, 255);
|
||||
|
||||
public static final Colour AQUA = new Colour(49, "aqua", 51, 204, 204);
|
||||
|
||||
public static final Colour LIME = new Colour(50, "lime", 153, 204, 0);
|
||||
|
||||
public static final Colour GOLD = new Colour(51, "gold", 255, 204, 0);
|
||||
|
||||
public static final Colour LIGHT_ORANGE = new Colour(52, "light orange", 255, 153, 0);
|
||||
|
||||
public static final Colour ORANGE = new Colour(53, "orange", 255, 102, 0);
|
||||
|
||||
public static final Colour BLUE_GREY = new Colour(54, "blue grey", 102, 102, 204);
|
||||
|
||||
public static final Colour GREY_40_PERCENT = new Colour(55, "grey 40%", 150, 150, 150);
|
||||
|
||||
public static final Colour DARK_TEAL = new Colour(56, "dark teal", 0, 51, 102);
|
||||
|
||||
public static final Colour SEA_GREEN = new Colour(57, "sea green", 51, 153, 102);
|
||||
|
||||
public static final Colour DARK_GREEN = new Colour(58, "dark green", 0, 51, 0);
|
||||
|
||||
public static final Colour OLIVE_GREEN = new Colour(59, "olive green", 51, 51, 0);
|
||||
|
||||
public static final Colour BROWN = new Colour(60, "brown", 153, 51, 0);
|
||||
|
||||
public static final Colour PLUM = new Colour(61, "plum", 153, 51, 102);
|
||||
|
||||
public static final Colour INDIGO = new Colour(62, "indigo", 51, 51, 153);
|
||||
|
||||
public static final Colour GREY_80_PERCENT = new Colour(63, "grey 80%", 51, 51, 51);
|
||||
|
||||
public static final Colour AUTOMATIC = new Colour(64, "automatic", 255, 255, 255);
|
||||
|
||||
public static final Colour GRAY_80 = GREY_80_PERCENT;
|
||||
|
||||
public static final Colour GRAY_50 = GREY_50_PERCENT;
|
||||
|
||||
public static final Colour GRAY_25 = GREY_25_PERCENT;
|
||||
}
|
19
hrmsEjb/jxl/format/Font.java
Normal file
19
hrmsEjb/jxl/format/Font.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package jxl.format;
|
||||
|
||||
public interface Font {
|
||||
String getName();
|
||||
|
||||
int getPointSize();
|
||||
|
||||
int getBoldWeight();
|
||||
|
||||
boolean isItalic();
|
||||
|
||||
boolean isStruckout();
|
||||
|
||||
UnderlineStyle getUnderlineStyle();
|
||||
|
||||
Colour getColour();
|
||||
|
||||
ScriptStyle getScriptStyle();
|
||||
}
|
5
hrmsEjb/jxl/format/Format.java
Normal file
5
hrmsEjb/jxl/format/Format.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package jxl.format;
|
||||
|
||||
public interface Format {
|
||||
String getFormatString();
|
||||
}
|
48
hrmsEjb/jxl/format/Orientation.java
Normal file
48
hrmsEjb/jxl/format/Orientation.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package jxl.format;
|
||||
|
||||
public final class Orientation {
|
||||
private int value;
|
||||
|
||||
private String string;
|
||||
|
||||
private static Orientation[] orientations = new Orientation[0];
|
||||
|
||||
protected Orientation(int val, String s) {
|
||||
this.value = val;
|
||||
this.string = s;
|
||||
Orientation[] oldorients = orientations;
|
||||
orientations = new Orientation[oldorients.length + 1];
|
||||
System.arraycopy(oldorients, 0, orientations, 0, oldorients.length);
|
||||
orientations[oldorients.length] = this;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return this.string;
|
||||
}
|
||||
|
||||
public static Orientation getOrientation(int val) {
|
||||
for (int i = 0; i < orientations.length; i++) {
|
||||
if (orientations[i].getValue() == val)
|
||||
return orientations[i];
|
||||
}
|
||||
return HORIZONTAL;
|
||||
}
|
||||
|
||||
public static Orientation HORIZONTAL = new Orientation(0, "horizontal");
|
||||
|
||||
public static Orientation VERTICAL = new Orientation(255, "vertical");
|
||||
|
||||
public static Orientation PLUS_90 = new Orientation(90, "up 90");
|
||||
|
||||
public static Orientation MINUS_90 = new Orientation(180, "down 90");
|
||||
|
||||
public static Orientation PLUS_45 = new Orientation(45, "up 45");
|
||||
|
||||
public static Orientation MINUS_45 = new Orientation(135, "down 45");
|
||||
|
||||
public static Orientation STACKED = new Orientation(255, "stacked");
|
||||
}
|
7
hrmsEjb/jxl/format/PageOrientation.java
Normal file
7
hrmsEjb/jxl/format/PageOrientation.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package jxl.format;
|
||||
|
||||
public final class PageOrientation {
|
||||
public static PageOrientation PORTRAIT = new PageOrientation();
|
||||
|
||||
public static PageOrientation LANDSCAPE = new PageOrientation();
|
||||
}
|
193
hrmsEjb/jxl/format/PaperSize.java
Normal file
193
hrmsEjb/jxl/format/PaperSize.java
Normal file
@@ -0,0 +1,193 @@
|
||||
package jxl.format;
|
||||
|
||||
public final class PaperSize {
|
||||
private static final int LAST_PAPER_SIZE = 89;
|
||||
|
||||
private int val;
|
||||
|
||||
private static PaperSize[] paperSizes = new PaperSize[90];
|
||||
|
||||
private PaperSize(int v, boolean growArray) {
|
||||
this.val = v;
|
||||
if (v >= paperSizes.length && growArray) {
|
||||
PaperSize[] newarray = new PaperSize[v + 1];
|
||||
System.arraycopy(paperSizes, 0, newarray, 0, paperSizes.length);
|
||||
paperSizes = newarray;
|
||||
}
|
||||
if (v < paperSizes.length)
|
||||
paperSizes[v] = this;
|
||||
}
|
||||
|
||||
private PaperSize(int v) {
|
||||
this(v, true);
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return this.val;
|
||||
}
|
||||
|
||||
public static PaperSize getPaperSize(int val) {
|
||||
PaperSize p = (val > paperSizes.length - 1) ? null : paperSizes[val];
|
||||
return (p == null) ? new PaperSize(val, false) : p;
|
||||
}
|
||||
|
||||
public static final PaperSize UNDEFINED = new PaperSize(0);
|
||||
|
||||
public static final PaperSize LETTER = new PaperSize(1);
|
||||
|
||||
public static final PaperSize LETTER_SMALL = new PaperSize(2);
|
||||
|
||||
public static final PaperSize TABLOID = new PaperSize(3);
|
||||
|
||||
public static final PaperSize LEDGER = new PaperSize(4);
|
||||
|
||||
public static final PaperSize LEGAL = new PaperSize(5);
|
||||
|
||||
public static final PaperSize STATEMENT = new PaperSize(6);
|
||||
|
||||
public static final PaperSize EXECUTIVE = new PaperSize(7);
|
||||
|
||||
public static final PaperSize A3 = new PaperSize(8);
|
||||
|
||||
public static final PaperSize A4 = new PaperSize(9);
|
||||
|
||||
public static final PaperSize A4_SMALL = new PaperSize(10);
|
||||
|
||||
public static final PaperSize A5 = new PaperSize(11);
|
||||
|
||||
public static final PaperSize B4 = new PaperSize(12);
|
||||
|
||||
public static final PaperSize B5 = new PaperSize(13);
|
||||
|
||||
public static final PaperSize FOLIO = new PaperSize(14);
|
||||
|
||||
public static final PaperSize QUARTO = new PaperSize(15);
|
||||
|
||||
public static final PaperSize SIZE_10x14 = new PaperSize(16);
|
||||
|
||||
public static final PaperSize SIZE_10x17 = new PaperSize(17);
|
||||
|
||||
public static final PaperSize NOTE = new PaperSize(18);
|
||||
|
||||
public static final PaperSize ENVELOPE_9 = new PaperSize(19);
|
||||
|
||||
public static final PaperSize ENVELOPE_10 = new PaperSize(20);
|
||||
|
||||
public static final PaperSize ENVELOPE_11 = new PaperSize(21);
|
||||
|
||||
public static final PaperSize ENVELOPE_12 = new PaperSize(22);
|
||||
|
||||
public static final PaperSize ENVELOPE_14 = new PaperSize(23);
|
||||
|
||||
public static final PaperSize C = new PaperSize(24);
|
||||
|
||||
public static final PaperSize D = new PaperSize(25);
|
||||
|
||||
public static final PaperSize E = new PaperSize(26);
|
||||
|
||||
public static final PaperSize ENVELOPE_DL = new PaperSize(27);
|
||||
|
||||
public static final PaperSize ENVELOPE_C5 = new PaperSize(28);
|
||||
|
||||
public static final PaperSize ENVELOPE_C3 = new PaperSize(29);
|
||||
|
||||
public static final PaperSize ENVELOPE_C4 = new PaperSize(30);
|
||||
|
||||
public static final PaperSize ENVELOPE_C6 = new PaperSize(31);
|
||||
|
||||
public static final PaperSize ENVELOPE_C6_C5 = new PaperSize(32);
|
||||
|
||||
public static final PaperSize B4_ISO = new PaperSize(33);
|
||||
|
||||
public static final PaperSize B5_ISO = new PaperSize(34);
|
||||
|
||||
public static final PaperSize B6_ISO = new PaperSize(35);
|
||||
|
||||
public static final PaperSize ENVELOPE_ITALY = new PaperSize(36);
|
||||
|
||||
public static final PaperSize ENVELOPE_MONARCH = new PaperSize(37);
|
||||
|
||||
public static final PaperSize ENVELOPE_6_75 = new PaperSize(38);
|
||||
|
||||
public static final PaperSize US_FANFOLD = new PaperSize(39);
|
||||
|
||||
public static final PaperSize GERMAN_FANFOLD = new PaperSize(40);
|
||||
|
||||
public static final PaperSize GERMAN_LEGAL_FANFOLD = new PaperSize(41);
|
||||
|
||||
public static final PaperSize B4_ISO_2 = new PaperSize(42);
|
||||
|
||||
public static final PaperSize JAPANESE_POSTCARD = new PaperSize(43);
|
||||
|
||||
public static final PaperSize SIZE_9x11 = new PaperSize(44);
|
||||
|
||||
public static final PaperSize SIZE_10x11 = new PaperSize(45);
|
||||
|
||||
public static final PaperSize SIZE_15x11 = new PaperSize(46);
|
||||
|
||||
public static final PaperSize ENVELOPE_INVITE = new PaperSize(47);
|
||||
|
||||
public static final PaperSize LETTER_EXTRA = new PaperSize(50);
|
||||
|
||||
public static final PaperSize LEGAL_EXTRA = new PaperSize(51);
|
||||
|
||||
public static final PaperSize TABLOID_EXTRA = new PaperSize(52);
|
||||
|
||||
public static final PaperSize A4_EXTRA = new PaperSize(53);
|
||||
|
||||
public static final PaperSize LETTER_TRANSVERSE = new PaperSize(54);
|
||||
|
||||
public static final PaperSize A4_TRANSVERSE = new PaperSize(55);
|
||||
|
||||
public static final PaperSize LETTER_EXTRA_TRANSVERSE = new PaperSize(56);
|
||||
|
||||
public static final PaperSize SUPER_A_A4 = new PaperSize(57);
|
||||
|
||||
public static final PaperSize SUPER_B_A3 = new PaperSize(58);
|
||||
|
||||
public static final PaperSize LETTER_PLUS = new PaperSize(59);
|
||||
|
||||
public static final PaperSize A4_PLUS = new PaperSize(60);
|
||||
|
||||
public static final PaperSize A5_TRANSVERSE = new PaperSize(61);
|
||||
|
||||
public static final PaperSize B5_TRANSVERSE = new PaperSize(62);
|
||||
|
||||
public static final PaperSize A3_EXTRA = new PaperSize(63);
|
||||
|
||||
public static final PaperSize A5_EXTRA = new PaperSize(64);
|
||||
|
||||
public static final PaperSize B5_EXTRA = new PaperSize(65);
|
||||
|
||||
public static final PaperSize A2 = new PaperSize(66);
|
||||
|
||||
public static final PaperSize A3_TRANSVERSE = new PaperSize(67);
|
||||
|
||||
public static final PaperSize A3_EXTRA_TRANSVERSE = new PaperSize(68);
|
||||
|
||||
public static final PaperSize DOUBLE_JAPANESE_POSTCARD = new PaperSize(69);
|
||||
|
||||
public static final PaperSize A6 = new PaperSize(70);
|
||||
|
||||
public static final PaperSize LETTER_ROTATED = new PaperSize(75);
|
||||
|
||||
public static final PaperSize A3_ROTATED = new PaperSize(76);
|
||||
|
||||
public static final PaperSize A4_ROTATED = new PaperSize(77);
|
||||
|
||||
public static final PaperSize A5_ROTATED = new PaperSize(78);
|
||||
|
||||
public static final PaperSize B4_ROTATED = new PaperSize(79);
|
||||
|
||||
public static final PaperSize B5_ROTATED = new PaperSize(80);
|
||||
|
||||
public static final PaperSize JAPANESE_POSTCARD_ROTATED = new PaperSize(81);
|
||||
|
||||
public static final PaperSize DOUBLE_JAPANESE_POSTCARD_ROTATED = new PaperSize(82);
|
||||
|
||||
public static final PaperSize A6_ROTATED = new PaperSize(83);
|
||||
|
||||
public static final PaperSize B6 = new PaperSize(88);
|
||||
|
||||
public static final PaperSize B6_ROTATED = new PaperSize(89);
|
||||
}
|
72
hrmsEjb/jxl/format/Pattern.java
Normal file
72
hrmsEjb/jxl/format/Pattern.java
Normal file
@@ -0,0 +1,72 @@
|
||||
package jxl.format;
|
||||
|
||||
public class Pattern {
|
||||
private int value;
|
||||
|
||||
private String string;
|
||||
|
||||
private static Pattern[] patterns = new Pattern[0];
|
||||
|
||||
protected Pattern(int val, String s) {
|
||||
this.value = val;
|
||||
this.string = s;
|
||||
Pattern[] oldcols = patterns;
|
||||
patterns = new Pattern[oldcols.length + 1];
|
||||
System.arraycopy(oldcols, 0, patterns, 0, oldcols.length);
|
||||
patterns[oldcols.length] = this;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return this.string;
|
||||
}
|
||||
|
||||
public static Pattern getPattern(int val) {
|
||||
for (int i = 0; i < patterns.length; i++) {
|
||||
if (patterns[i].getValue() == val)
|
||||
return patterns[i];
|
||||
}
|
||||
return NONE;
|
||||
}
|
||||
|
||||
public static final Pattern NONE = new Pattern(0, "None");
|
||||
|
||||
public static final Pattern SOLID = new Pattern(1, "Solid");
|
||||
|
||||
public static final Pattern GRAY_50 = new Pattern(2, "Gray 50%");
|
||||
|
||||
public static final Pattern GRAY_75 = new Pattern(3, "Gray 75%");
|
||||
|
||||
public static final Pattern GRAY_25 = new Pattern(4, "Gray 25%");
|
||||
|
||||
public static final Pattern PATTERN1 = new Pattern(5, "Pattern 1");
|
||||
|
||||
public static final Pattern PATTERN2 = new Pattern(6, "Pattern 2");
|
||||
|
||||
public static final Pattern PATTERN3 = new Pattern(7, "Pattern 3");
|
||||
|
||||
public static final Pattern PATTERN4 = new Pattern(8, "Pattern 4");
|
||||
|
||||
public static final Pattern PATTERN5 = new Pattern(9, "Pattern 5");
|
||||
|
||||
public static final Pattern PATTERN6 = new Pattern(10, "Pattern 6");
|
||||
|
||||
public static final Pattern PATTERN7 = new Pattern(11, "Pattern 7");
|
||||
|
||||
public static final Pattern PATTERN8 = new Pattern(12, "Pattern 8");
|
||||
|
||||
public static final Pattern PATTERN9 = new Pattern(13, "Pattern 9");
|
||||
|
||||
public static final Pattern PATTERN10 = new Pattern(14, "Pattern 10");
|
||||
|
||||
public static final Pattern PATTERN11 = new Pattern(15, "Pattern 11");
|
||||
|
||||
public static final Pattern PATTERN12 = new Pattern(16, "Pattern 12");
|
||||
|
||||
public static final Pattern PATTERN13 = new Pattern(17, "Pattern 13");
|
||||
|
||||
public static final Pattern PATTERN14 = new Pattern(18, "Pattern 14");
|
||||
}
|
27
hrmsEjb/jxl/format/RGB.java
Normal file
27
hrmsEjb/jxl/format/RGB.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package jxl.format;
|
||||
|
||||
public final class RGB {
|
||||
private int red;
|
||||
|
||||
private int green;
|
||||
|
||||
private int blue;
|
||||
|
||||
public RGB(int r, int g, int b) {
|
||||
this.red = r;
|
||||
this.green = g;
|
||||
this.blue = b;
|
||||
}
|
||||
|
||||
public int getRed() {
|
||||
return this.red;
|
||||
}
|
||||
|
||||
public int getGreen() {
|
||||
return this.green;
|
||||
}
|
||||
|
||||
public int getBlue() {
|
||||
return this.blue;
|
||||
}
|
||||
}
|
40
hrmsEjb/jxl/format/ScriptStyle.java
Normal file
40
hrmsEjb/jxl/format/ScriptStyle.java
Normal 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");
|
||||
}
|
44
hrmsEjb/jxl/format/UnderlineStyle.java
Normal file
44
hrmsEjb/jxl/format/UnderlineStyle.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package jxl.format;
|
||||
|
||||
public final class UnderlineStyle {
|
||||
private int value;
|
||||
|
||||
private String string;
|
||||
|
||||
private static UnderlineStyle[] styles = new UnderlineStyle[0];
|
||||
|
||||
protected UnderlineStyle(int val, String s) {
|
||||
this.value = val;
|
||||
this.string = s;
|
||||
UnderlineStyle[] oldstyles = styles;
|
||||
styles = new UnderlineStyle[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 UnderlineStyle getStyle(int val) {
|
||||
for (int i = 0; i < styles.length; i++) {
|
||||
if (styles[i].getValue() == val)
|
||||
return styles[i];
|
||||
}
|
||||
return NO_UNDERLINE;
|
||||
}
|
||||
|
||||
public static final UnderlineStyle NO_UNDERLINE = new UnderlineStyle(0, "none");
|
||||
|
||||
public static final UnderlineStyle SINGLE = new UnderlineStyle(1, "single");
|
||||
|
||||
public static final UnderlineStyle DOUBLE = new UnderlineStyle(2, "double");
|
||||
|
||||
public static final UnderlineStyle SINGLE_ACCOUNTING = new UnderlineStyle(33, "single accounting");
|
||||
|
||||
public static final UnderlineStyle DOUBLE_ACCOUNTING = new UnderlineStyle(34, "double accounting");
|
||||
}
|
42
hrmsEjb/jxl/format/VerticalAlignment.java
Normal file
42
hrmsEjb/jxl/format/VerticalAlignment.java
Normal 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");
|
||||
}
|
Reference in New Issue
Block a user