⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extendedformatrecord.java

📁 java 报表 to office文档: 本包由java语言开发
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
    public void setRotation(short rotation)    {        field_4_alignment_options =            _rotation.setShortValue(field_4_alignment_options, rotation);    }    /**     * set the indent options bitmask  (see corresponding bitmask setters that reference     * this field)     *     *     * @param options bitmask to set.     *     */    public void setIndentionOptions(short options)    {        field_5_indention_options = options;    }    // set bitfields for indention options    /**     * set indention (not sure of the units, think its spaces)     *     * @param indent - how far to indent the cell     * @see #setIndentionOptions(short)     */    public void setIndent(short indent)    {        field_5_indention_options =            _indent.setShortValue(field_5_indention_options, indent);    }    /**     * set whether to shrink the text to fit     *     *     * @param shrink - shrink to fit or not     * @see #setIndentionOptions(short)     */    public void setShrinkToFit(boolean shrink)    {        field_5_indention_options =            _shrink_to_fit.setShortBoolean(field_5_indention_options, shrink);    }    /**     * 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

⌨️ 快捷键说明

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