extendedformatrecord.java

来自「EXCEL read and write」· Java 代码 · 共 1,873 行 · 第 1/4 页

JAVA
1,873
字号
    /**     * set whether to merge cells     *     *     * @param merge - merge cells or not     * @see #setIndentionOptions(short)     */    public void setMergeCells(boolean merge)    {        field_5_indention_options =            _merge_cells.setShortBoolean(field_5_indention_options, merge);    }    /**     * set the reading order for far east versions (0 - Context, 1 - Left to right,     * 2 - right to left) - We could use some help with support for the far east.     *     * @param order - the reading order (0,1,2)     * @see #setIndentionOptions(short)     */    public void setReadingOrder(short order)    {   // only for far east  always 0 in US        field_5_indention_options =            _reading_order.setShortValue(field_5_indention_options, order);    }    /**     * set whether or not to use the format in this XF instead of the parent XF.     *     *     * @param parent - true if this XF has a different format value than its parent,     *                 false otherwise.     * @see #setIndentionOptions(short)     */    public void setIndentNotParentFormat(boolean parent)    {        field_5_indention_options =            _indent_not_parent_format                .setShortBoolean(field_5_indention_options, parent);    }    /**     * set whether or not to use the font in this XF instead of the parent XF.     *     *     * @param font   - true if this XF has a different font value than its parent,     *                 false otherwise.     * @see #setIndentionOptions(short)     */    public void setIndentNotParentFont(boolean font)    {        field_5_indention_options =            _indent_not_parent_font.setShortBoolean(field_5_indention_options,                                                    font);    }    /**     * set whether or not to use the alignment in this XF instead of the parent XF.     *     *     * @param alignment true if this XF has a different alignment value than its parent,     *                  false otherwise.     * @see #setIndentionOptions(short)     */    public void setIndentNotParentAlignment(boolean alignment)    {        field_5_indention_options =            _indent_not_parent_alignment                .setShortBoolean(field_5_indention_options, alignment);    }    /**     * set whether or not to use the border in this XF instead of the parent XF.     *     *     * @param border - true if this XF has a different border value than its parent,     *                 false otherwise.     * @see #setIndentionOptions(short)     */    public void setIndentNotParentBorder(boolean border)    {        field_5_indention_options =            _indent_not_parent_border                .setShortBoolean(field_5_indention_options, border);    }    /**     * <p>Sets whether or not to use the pattern in this XF instead of the     * parent XF (foreground/background).</p>     *      * @param pattern <code>true</code> if this XF has a different pattern     *        value than its parent,</code> false</code> otherwise.     * @see #setIndentionOptions(short)     */    public void setIndentNotParentPattern(boolean pattern)    {        field_5_indention_options =            _indent_not_parent_pattern                .setShortBoolean(field_5_indention_options, pattern);    }    /**     * set whether or not to use the locking/hidden in this XF instead of the parent XF.     *     *     * @param options true if this XF has a different locking or hidden value than its parent,     *                 false otherwise.     * @see #setIndentionOptions(short)     */    public void setIndentNotParentCellOptions(boolean options)    {        field_5_indention_options =            _indent_not_parent_cell_options                .setShortBoolean(field_5_indention_options, options);    }    // end indention options bitmask sets    /**     * set the border options bitmask (see the corresponding bitsetter methods     * that reference back to this one)     *     * @param options - the bit mask to set     *     */    public void setBorderOptions(short options)    {        field_6_border_options = options;    }    // border options bitfields    /**     * set the borderline style for the left border     *     *     * @param border - type of border for the left side of the cell     * @see     #NONE     * @see     #THIN     * @see     #MEDIUM     * @see     #DASHED     * @see     #DOTTED     * @see     #THICK     * @see     #DOUBLE     * @see     #HAIR     * @see     #MEDIUM_DASHED     * @see     #DASH_DOT     * @see     #MEDIUM_DASH_DOT     * @see     #DASH_DOT_DOT     * @see     #MEDIUM_DASH_DOT_DOT     * @see     #SLANTED_DASH_DOT     * @see #setBorderOptions(short)     */    public void setBorderLeft(short border)    {        field_6_border_options =            _border_left.setShortValue(field_6_border_options, border);    }    /**     * set the border line style for the right border     *     *     * @param border - type of border for the right side of the cell     * @see     #NONE     * @see     #THIN     * @see     #MEDIUM     * @see     #DASHED     * @see     #DOTTED     * @see     #THICK     * @see     #DOUBLE     * @see     #HAIR     * @see     #MEDIUM_DASHED     * @see     #DASH_DOT     * @see     #MEDIUM_DASH_DOT     * @see     #DASH_DOT_DOT     * @see     #MEDIUM_DASH_DOT_DOT     * @see     #SLANTED_DASH_DOT     * @see #setBorderOptions(short)     */    public void setBorderRight(short border)    {        field_6_border_options =            _border_right.setShortValue(field_6_border_options, border);    }    /**     * set the border line style for the top border     *     *     * @param border - type of border for the top of the cell     * @see     #NONE     * @see     #THIN     * @see     #MEDIUM     * @see     #DASHED     * @see     #DOTTED     * @see     #THICK     * @see     #DOUBLE     * @see     #HAIR     * @see     #MEDIUM_DASHED     * @see     #DASH_DOT     * @see     #MEDIUM_DASH_DOT     * @see     #DASH_DOT_DOT     * @see     #MEDIUM_DASH_DOT_DOT     * @see     #SLANTED_DASH_DOT     * @see #setBorderOptions(short)     */    public void setBorderTop(short border)    {        field_6_border_options =            _border_top.setShortValue(field_6_border_options, border);    }    /**     * set the border line style for the bottom border     *     *     * @param border - type of border for the bottom of the cell     * @see     #NONE     * @see     #THIN     * @see     #MEDIUM     * @see     #DASHED     * @see     #DOTTED     * @see     #THICK     * @see     #DOUBLE     * @see     #HAIR     * @see     #MEDIUM_DASHED     * @see     #DASH_DOT     * @see     #MEDIUM_DASH_DOT     * @see     #DASH_DOT_DOT     * @see     #MEDIUM_DASH_DOT_DOT     * @see     #SLANTED_DASH_DOT     * @see #setBorderOptions(short)     */    public void setBorderBottom(short border)    {        field_6_border_options =            _border_bottom.setShortValue(field_6_border_options, border);    }    // end border option bitfields    /**     * set the palette options bitmask (see the individual bitsetter methods that     * reference this one)     *     *     * @param options - the bitmask to set     *     */    public void setPaletteOptions(short options)    {        field_7_palette_options = options;    }    // bitfields for palette options    /**     * set the palette index for the left border color     *     *     * @param border - palette index     * @see #setPaletteOptions(short)     */    public void setLeftBorderPaletteIdx(short border)    {        field_7_palette_options =            _left_border_palette_idx.setShortValue(field_7_palette_options,                                                   border);    }    /**     * set the palette index for the right border color     *     *     * @param border - palette index     * @see #setPaletteOptions(short)     */    public void setRightBorderPaletteIdx(short border)    {        field_7_palette_options =            _right_border_palette_idx.setShortValue(field_7_palette_options,                                                    border);    }    // i've no idea.. possible values are 1 for down, 2 for up and 3 for both...0 for none..    // maybe a diagnal line?    /**     * Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..     *     *     * @param diag - set whatever it is that this is.     * @see #setPaletteOptions(short)     */    public void setDiag(short diag)    {        field_7_palette_options = _diag.setShortValue(field_7_palette_options,                diag);    }    // end of palette options    /**     * set the additional palette options bitmask (see individual bitsetter methods     * that reference this method)     *     *     * @param options - bitmask to set     *     */    public void setAdtlPaletteOptions(short options)    {        field_8_adtl_palette_options = options;    }    // bitfields for additional palette options    /**     * set the palette index for the top border     *     *     * @param border - palette index     * @see #setAdtlPaletteOptions(short)     */    public void setTopBorderPaletteIdx(short border)    {        field_8_adtl_palette_options =            _top_border_palette_idx.setValue(field_8_adtl_palette_options,                                             border);    }    /**     * 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);    }    /**     * 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);    }    /**     * set the diagonal border line style?  Who the heck ever heard of a diagonal border?     *     *     * @param diag - the line style     * @see     #NONE     * @see     #THIN     * @see     #MEDIUM     * @see     #DASHED     * @see     #DOTTED     * @see     #THICK     * @see     #DOUBLE     * @see     #HAIR     * @see     #MEDIUM_DASHED     * @see     #DASH_DOT     * @see     #MEDIUM_DASH_DOT     * @see     #DASH_DOT_DOT     * @see     #MEDIUM_DASH_DOT_DOT     * @see     #SLANTED_DASH_DOT     * @see #setAdtlPaletteOptions(short)     */    public void setAdtlDiagLineStyle(short diag)    {        field_8_adtl_palette_options =            _adtl_diag_line_style.setValue(field_8_adtl_palette_options,                                           diag);    }    /**     * set the fill pattern     *     * @see #NO_FILL     * @see #SOLID_FILL     * @see #FINE_DOTS     * @see #ALT_BARS     * @see #SPARSE_DOTS     * @see #THICK_HORZ_BANDS     * @see #THICK_VERT_BANDS     * @see #THICK_BACKWARD_DIAG     * @see #THICK_FORWARD_DIAG     * @see #BIG_SPOTS     * @see #BRICKS     * @see #THIN_HORZ_BANDS     * @see #THIN_VERT_BANDS     * @see #THIN_BACKWARD_DIAG     * @see #THIN_FORWARD_DIAG     * @see #SQUARES     * @see #DIAMONDS     *     * @param fill - fill pattern??     * @see #setAdtlPaletteOptions(short)     */    public void setAdtlFillPattern(short fill)    {        field_8_adtl_palette_options =            _adtl_fill_pattern.setValue(field_8_adtl_palette_options, fill);    }    // end bitfields for additional palette options    /**     * set the fill palette options bitmask (see     *     *     * @param options     *     */    public void setFillPaletteOptions(short options)    {        field_9_fill_palette_options = options;    }    /**     * set the foreground palette color index     *     *     * @param color - palette index     * @see #setFillPaletteOptions(short)     */    public void setFillForeground(short color)    {        field_9_fill_palette_options =            _fill_foreground.setShortValue(field_9_fill_palette_options,                                           color);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?