/** * Gets the pattern from the value * * @param val * @return the pattern with that value */ public static Pattern getPattern(int val) { for (int i = 0 ; i < patterns.length ; i++) { if (patterns[i].getValue() == val) { return patterns[i]; } } return NONE; }
patternVal = patternVal & 0xfc00; patternVal = patternVal >> 10; pattern = Pattern.getPattern(patternVal);
bw.newLine(); bw.write(" pattern=\"" + format.getPattern().getDescription() + "\""); bw.write(" />"); bw.newLine();
patternVal = patternVal & 0xfc00; patternVal = patternVal >> 10; pattern = Pattern.getPattern(patternVal);
bw.newLine(); bw.write(" pattern=\"" + format.getPattern().getDescription() + "\""); bw.write(" />"); bw.newLine();
/** * Gets the pattern from the value * * @param val * @return the pattern with that value */ public static Pattern getPattern(int val) { for (int i = 0 ; i < patterns.length ; i++) { if (patterns[i].getValue() == val) { return patterns[i]; } } return NONE; }
hashValue = oddPrimeNumber*hashValue + (bottomBorderColour.getValue()); hashValue = oddPrimeNumber*hashValue + (backgroundColour.getValue()); hashValue = oddPrimeNumber*hashValue + (pattern.getValue() + 1);
hashValue = oddPrimeNumber*hashValue + (bottomBorderColour.getValue()); hashValue = oddPrimeNumber*hashValue + (backgroundColour.getValue()); hashValue = oddPrimeNumber*hashValue + (pattern.getValue() + 1);
int patternVal = pattern.getValue() << 10; IntegerHelper.getTwoBytes(patternVal, data, 16);
int patternVal = pattern.getValue() << 10; IntegerHelper.getTwoBytes(patternVal, data, 16);