/** * @see HSSFColor#getTriplet() */ public short [] getTriplet() { return color.getTriplet(); }
/** * This function returns all the Colours, stored in a Map that * can be edited. No caching is performed. If you don't need to edit * the table, then call {@link #getIndexHash()} which returns a * statically cached immutable map of colours. */ public static Map<Integer,HSSFColor> getMutableIndexHash() { return createColorsByIndexMap(); }
/** * @see HSSFColor#getIndex() */ public short getIndex() { return color.getIndex(); }
/** * HSSF Doesn't support table borders, so always {@link HSSFColorPredefined#AUTOMATIC} * * @see org.apache.poi.ss.usermodel.BorderFormatting#getVerticalBorderColor() */ public short getVerticalBorderColor() { return HSSFColorPredefined.AUTOMATIC.getIndex(); }
/** * @see HSSFColor#getHexString() */ public String getHexString() { return color.getHexString(); }
public void setRawData( byte[] rawData ) { rawDataContainer.clear(); rawDataContainer.concatenate(rawData); }
/** * reads only the range (1 {@link CellRangeAddress8Bit}) from the stream * * @param in The interface for reading the record data. */ public SharedValueRecordBase(LittleEndianInput in) { _range = new CellRangeAddress8Bit(in); }
/** * HSSF Doesn't support table borders, so always {@link HSSFColorPredefined#AUTOMATIC} * * @see org.apache.poi.ss.usermodel.BorderFormatting#getVerticalBorderColorColor() */ public Color getVerticalBorderColorColor() { return HSSFColorPredefined.AUTOMATIC.getColor(); }
/** * @see HSSFColor#getIndex2() */ public short getIndex2() { return color.getIndex2(); }
@Override protected int getDataSize() { return 9 // 1 byte + 4 shorts + CellRangeAddress8Bit.getEncodedSize(field_6_refs.length); } @Override
/** * returns the rk number for column (coffset = column - field_2_first_col) * * @param coffset the coffset = column - field_2_first_col * * @return the value (decoded into a double) */ public double getRKNumberAt(int coffset) { return RKUtil.decodeNumber(field_3_rks[coffset].rk); }
/** * this function returns all colors in a hastable. It's not implemented as a * static member/statically initialized because that would be dirty in a * server environment as it is intended. This means you'll eat the time * it takes to create it once per request but you will not hold onto it * if you have none of those requests. * * @return a Map containing all colors keyed by String gnumeric-like triplets */ public static Map<String,HSSFColor> getTripletHash() { return createColorsByHexStringMap(); }
public void processContinueRecord( byte[] record ) { rawDataContainer.concatenate(record); }
HSSFColor lightGray = setColor(workbook,(byte) 0xE0, (byte)0xE0,(byte) 0xE0); style2.setFillForegroundColor(lightGray.getIndex()); style2.setFillPattern(CellStyle.SOLID_FOREGROUND);
/** * HSSF Doesn't support table borders, so always {@link HSSFColorPredefined#AUTOMATIC} * * @see org.apache.poi.ss.usermodel.BorderFormatting#getHorizontalBorderColor() */ public short getHorizontalBorderColor() { return HSSFColorPredefined.AUTOMATIC.getIndex(); }
private void resetField6() { // this is necessary in Excel to actually make Workbook.setActiveCell() take effect field_6_refs = new CellRangeAddress8Bit[] { new CellRangeAddress8Bit(field_2_row_active_cell, field_2_row_active_cell, field_3_col_active_cell, field_3_col_active_cell), }; }
/** * HSSF Doesn't support table borders, so always {@link HSSFColorPredefined#AUTOMATIC} * * @see org.apache.poi.ss.usermodel.BorderFormatting#getHorizontalBorderColorColor() */ public Color getHorizontalBorderColorColor() { return HSSFColorPredefined.AUTOMATIC.getColor(); }
public SharedFormulaRecord() { this(new CellRangeAddress8Bit(0,0,0,0)); } private SharedFormulaRecord(CellRangeAddress8Bit range) {
protected SharedValueRecordBase() { this(new CellRangeAddress8Bit(0, 0, 0, 0)); }