Enumeration class which contains the various patterns available within
the standard Excel pattern palette
Field Summary |
---|
public static final Pattern | NONE | |
public static final Pattern | SOLID | |
public static final Pattern | GRAY_50 | |
public static final Pattern | GRAY_75 | |
public static final Pattern | GRAY_25 | |
public static final Pattern | PATTERN1 | |
public static final Pattern | PATTERN2 | |
public static final Pattern | PATTERN3 | |
public static final Pattern | PATTERN4 | |
public static final Pattern | PATTERN5 | |
public static final Pattern | PATTERN6 | |
public static final Pattern | PATTERN7 | |
public static final Pattern | PATTERN8 | |
public static final Pattern | PATTERN9 | |
public static final Pattern | PATTERN10 | |
public static final Pattern | PATTERN11 | |
public static final Pattern | PATTERN12 | |
public static final Pattern | PATTERN13 | |
public static final Pattern | PATTERN14 | |
Constructor: |
protected Pattern(int val,
String s) {
value = val;
string = s;
Pattern[] oldcols = patterns;
patterns = new Pattern[oldcols.length + 1];
System.arraycopy(oldcols, 0, patterns, 0, oldcols.length);
patterns[oldcols.length] = this;
}
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from jxl.format.Pattern Detail: |
public String getDescription() {
return string;
}
Gets the textual description |
public static Pattern getPattern(int val) {
for (int i = 0 ; i < patterns.length ; i++)
{
if (patterns[i].getValue() == val)
{
return patterns[i];
}
}
return NONE;
}
Gets the pattern from the value |
public int getValue() {
return value;
}
Gets the value of this pattern. This is the value that is written to
the generated Excel file |