/** * Sets the Horizontal text alignment field value. */ public void setHorizontalTextAlignment(int value) { field_1_options = HorizontalTextAlignment.setValue(field_1_options, value); }
/** * set the foreground fill color */ public void setFillForegroundColor(int fg) { field_16_pattern_color_indexes = patternColorIndex.setValue(field_16_pattern_color_indexes,fg); }
/** * set the color to use for the bottom border * @param color The index of the color definition */ public void setBottomBorderColor(int color) { field_14_border_styles2 = bordBottomLineColor.setValue(field_14_border_styles2, color); }
/** * set the last column in the area */ public final void setLastColumn(int colIx) { field_4_last_column=columnMask.setValue(field_4_last_column, colIx); }
/** * set the outline level for the cells * @param olevel -outline level for the cells */ public void setOutlineLevel(int olevel) { _options = outlevel.setValue(_options, olevel); }
/** * set the color to use for the right border * @param color The index of the color definition */ public void setRightBorderColor(int color) { field_13_border_styles1 = bordRightLineColor.setValue(field_13_border_styles1, color); }
/** * set the color to use for the left border * @param color The index of the color definition */ public void setLeftBorderColor(int color) { field_13_border_styles1 = bordLeftLineColor.setValue(field_13_border_styles1, color); }
/** * set the color to use for the diagonal borders * @param color The index of the color definition */ public void setDiagonalBorderColor(int color) { field_14_border_styles2 = bordDiagLineColor.setValue(field_14_border_styles2, color); }
/** * set the outline level of this row * @param ol - the outline level */ public void setOutlineLevel(short ol) { field_7_option_flags = outlineLevel.setValue(field_7_option_flags, ol); }
/** * if the row is formatted then this is the index to the extended format record * @see org.apache.poi.hssf.record.ExtendedFormatRecord * @param index to the XF record */ public void setXFIndex(short index) { field_8_option_flags = xfIndex.setValue(field_8_option_flags, index); }
/** * set the background fill color. */ public void setFillBackgroundColor(int bg) { field_16_pattern_color_indexes = patternBackgroundColorIndex.setValue(field_16_pattern_color_indexes,bg); }
/** * set the color to use for the top border * @param color The index of the color definition */ public void setTopBorderColor(int color) { field_14_border_styles2 = bordTopLineColor.setValue(field_14_border_styles2, color); }
/** * set the first column in the area */ public final void setFirstColumn(int colIx) { field_3_first_column=columnMask.setValue(field_3_first_column, colIx); }
/** * Sets the Vertical text alignment field value. */ public void setVerticalTextAlignment(int value) { field_1_options = VerticalTextAlignment.setValue(field_1_options, value); }
/** * set the actual index of the style extended format record * @param xfIndex of the xf record */ public void setXFIndex(int xfIndex) { field_1_xf_index = styleIndexMask.setValue(field_1_xf_index, xfIndex); }
/** * set for diagonal borders? No idea (its a palette color for the other function * we didn't know what was?) * * * @param diag - the palette index? * @see #setAdtlPaletteOptions(short) */ public void setAdtlDiag(short diag) { field_8_adtl_palette_options = _adtl_diag.setValue(field_8_adtl_palette_options, diag); }
/** * Replace the bits with new values. * * @param holder the short data containing the bits we're interested in * @param value the new value for the specified bits * * @return the value of holder with the bits from the value * parameter replacing the old bits */ public short setShortValue(final short holder, final short value) { return ( short ) setValue(holder, value); }
/** * set the palette index for the bottom border * * * @param border - palette index * @see #setAdtlPaletteOptions(short) */ public void setBottomBorderPaletteIdx(short border) { field_8_adtl_palette_options = _bottom_border_palette_idx.setValue(field_8_adtl_palette_options, border); }
private void setDefaults() { // Set modification flags to 1: by default options are not modified formatting_options = modificationBits.setValue(formatting_options, -1); // Set formatting block flags to 0 (no formatting blocks) formatting_options = fmtBlockBits.setValue(formatting_options, 0); formatting_options = undocumented.clear(formatting_options); formatting_not_used = (short)0x8002; // Excel seems to write this value, but it doesn't seem to care what it reads _fontFormatting = null; _borderFormatting = null; _patternFormatting = null; }
private void setOptionFlag(boolean modified, BitField field) { int value = modified? 0 : 1; int optionFlags = getInt(OFFSET_OPTION_FLAGS); optionFlags = field.setValue(optionFlags, value); setInt(OFFSET_OPTION_FLAGS, optionFlags); }