亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hssfclientanchor.java

?? java 報表 to office文檔: 本包由java語言開發
?? JAVA
字號:
/* ====================================================================   Copyright 2004   Apache Software Foundation   Licensed under the Apache License, Version 2.0 (the "License");   you may not use this file except in compliance with the License.   You may obtain a copy of the License at       http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an "AS IS" BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License.==================================================================== */package org.apache.poi.hssf.usermodel;/** * A client anchor is attached to an excel worksheet.  It anchors against a * top-left and buttom-right cell. * * @author Glen Stampoultzis (glens at apache.org) */public class HSSFClientAnchor        extends HSSFAnchor{    short col1;    int row1;    short col2;    int row2;    int anchorType;    /**     * Creates a new client anchor and defaults all the anchor positions to 0.     */    public HSSFClientAnchor()    {    }    /**     * Creates a new client anchor and sets the top-left and bottom-right     * coordinates of the anchor.     *     * @param dx1   the x coordinate within the first cell.     * @param dy1   the y coordinate within the first cell.     * @param dx2   the x coordinate within the second cell.     * @param dy2   the y coordinate within the second cell.     * @param col1  the column (0 based) of the first cell.     * @param row1  the row (0 based) of the first cell.     * @param col2  the column (0 based) of the second cell.     * @param row2  the row (0 based) of the second cell.     */    public HSSFClientAnchor( int dx1, int dy1, int dx2, int dy2, short col1, int row1, short col2, int row2 )    {        super( dx1, dy1, dx2, dy2 );        checkRange(dx1, 0, 1023, "dx1");        checkRange(dx2, 0, 1023, "dx2");        checkRange(dy1, 0, 255, "dy1");        checkRange(dy2, 0, 255, "dy2");        checkRange(col1, 0, 255, "col1");        checkRange(col2, 0, 255, "col2");        checkRange(row1, 0, 255 * 256, "row1");        checkRange(row2, 0, 255 * 256, "row2");        this.col1 = col1;        this.row1 = row1;        this.col2 = col2;        this.row2 = row2;    }    /**     * Calculates the height of a client anchor in points.     *     * @param sheet     the sheet the anchor will be attached to     * @return          the shape height.     */    public float getAnchorHeightInPoints(HSSFSheet sheet )    {        int y1 = Math.min( getDy1(), getDy2() );        int y2 = Math.max( getDy1(), getDy2() );        int row1 = Math.min( getRow1(), getRow2() );        int row2 = Math.max( getRow1(), getRow2() );        float points = 0;        if (row1 == row2)        {            points = ((y2 - y1) / 256.0f) * getRowHeightInPoints(sheet, row2);        }        else        {            points += ((256.0f - y1) / 256.0f) * getRowHeightInPoints(sheet, row1);            for (int i = row1 + 1; i < row2; i++)            {                points += getRowHeightInPoints(sheet, i);            }            points += (y2 / 256.0f) * getRowHeightInPoints(sheet, row2);        }        return points;    }    private float getRowHeightInPoints(HSSFSheet sheet, int rowNum)    {        HSSFRow row = sheet.getRow(rowNum);        if (row == null)            return sheet.getDefaultRowHeightInPoints();        else            return row.getHeightInPoints();    }    public short getCol1()    {        return col1;    }    public void setCol1( short col1 )    {        checkRange(col1, 0, 255, "col1");        this.col1 = col1;    }    public short getCol2()    {        return col2;    }    public void setCol2( short col2 )    {        checkRange(col2, 0, 255, "col2");        this.col2 = col2;    }    public int getRow1()    {        return row1;    }    public void setRow1( int row1 )    {        checkRange(row1, 0, 256 * 256, "row1");        this.row1 = row1;    }    public int getRow2()    {        return row2;    }    public void setRow2( int row2 )    {        checkRange(row2, 0, 256 * 256, "row2");        this.row2 = row2;    }    /**     * Dets the top-left and bottom-right     * coordinates of the anchor.     *     * @param x1   the x coordinate within the first cell.     * @param y1   the y coordinate within the first cell.     * @param x2   the x coordinate within the second cell.     * @param y2   the y coordinate within the second cell.     * @param col1  the column (0 based) of the first cell.     * @param row1  the row (0 based) of the first cell.     * @param col2  the column (0 based) of the second cell.     * @param row2  the row (0 based) of the second cell.     */    public void setAnchor( short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2 )    {        checkRange(dx1, 0, 1023, "dx1");        checkRange(dx2, 0, 1023, "dx2");        checkRange(dy1, 0, 255, "dy1");        checkRange(dy2, 0, 255, "dy2");        checkRange(col1, 0, 255, "col1");        checkRange(col2, 0, 255, "col2");        checkRange(row1, 0, 255 * 256, "row1");        checkRange(row2, 0, 255 * 256, "row2");        this.col1 = col1;        this.row1 = row1;        this.dx1 = x1;        this.dy1 = y1;        this.col2 = col2;        this.row2 = row2;        this.dx2 = x2;        this.dy2 = y2;    }    /**     * @return  true if the anchor goes from right to left.     */    public boolean isHorizontallyFlipped()    {        if (col1 == col2)            return dx1 > dx2;        else            return col1 > col2;    }    /**     * @return  true if the anchor goes from bottom to top.     */    public boolean isVerticallyFlipped()    {        if (row1 == row2)            return dy1 > dy2;        else            return row1 > row2;    }    /**     * Gets the anchor type     * <p>     * 0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.     */    public int getAnchorType()    {        return anchorType;    }    /**     * Sets the anchor type     * <p>     * 0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.     */    public void setAnchorType( int anchorType )    {        this.anchorType = anchorType;    }    private void checkRange( int value, int minRange, int maxRange, String varName )    {        if (value < minRange || value > maxRange)            throw new IllegalArgumentException(varName + " must be between " + minRange + " and " + maxRange);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
3atv在线一区二区三区| 国内精品国产三级国产a久久| 国产三级欧美三级日产三级99| 色综合久久综合网| 91论坛在线播放| 日本韩国欧美三级| 欧美日产国产精品| 精品日韩成人av| 亚洲欧洲精品成人久久奇米网| 亚洲欧美日韩久久| 日韩精品免费视频人成| 久久精品国产在热久久| 国产成人久久精品77777最新版本| 91视频xxxx| 精品久久久久久久久久久久久久久久久 | 5月丁香婷婷综合| 久久久久久久久久久久久久久99| 日韩毛片精品高清免费| 免费视频一区二区| 91一区二区三区在线播放| 欧美精选一区二区| 国产日韩欧美不卡| 日本美女一区二区三区| 国产91富婆露脸刺激对白| 欧美专区亚洲专区| 日本一区二区成人| 日本午夜精品视频在线观看| 99视频国产精品| www国产精品av| 欧美96一区二区免费视频| 91蜜桃传媒精品久久久一区二区| 久久久久久久综合色一本| 青青草91视频| 欧美男男青年gay1069videost| 亚洲三级电影全部在线观看高清| 国产一区欧美一区| 久久精品在线观看| 激情综合五月婷婷| 欧美精品一区二区三区一线天视频| 奇米一区二区三区| 欧美日韩国产美女| 毛片av一区二区| 久久亚洲影视婷婷| 国产成人综合网站| 亚洲少妇屁股交4| 欧美日韩在线播| 欧美96一区二区免费视频| 在线91免费看| 国产成人午夜精品影院观看视频| 国产精品毛片大码女人| 欧美亚洲动漫另类| 蜜臀国产一区二区三区在线播放| 国产亚洲污的网站| 91福利在线看| 国产麻豆精品视频| 精品国产精品网麻豆系列| 成人黄色片在线观看| 亚洲靠逼com| 欧美精品一区男女天堂| 色婷婷精品大在线视频| 精品综合免费视频观看| 亚洲国产aⅴ成人精品无吗| 国产亚洲人成网站| 欧美一二三区精品| 在线观看亚洲精品视频| 国产成人夜色高潮福利影视| 亚洲成人av一区二区三区| 国产视频亚洲色图| 日韩精品自拍偷拍| 欧美在线观看视频在线| 日韩美女视频一区二区在线观看| 97久久超碰国产精品| 精品一区二区三区欧美| 麻豆91在线观看| 国产99久久久精品| 中文字幕精品在线不卡| 日本乱人伦一区| 99国产一区二区三精品乱码| 极品少妇一区二区三区精品视频| 日韩亚洲欧美成人一区| 色噜噜狠狠色综合中国| 91精品国产入口在线| 综合久久综合久久| 国产精品小仙女| 精品国产污污免费网站入口 | 欧美精品黑人性xxxx| 欧美成人一区二区三区片免费 | 亚洲色大成网站www久久九九| 蜜桃精品在线观看| 91精品国产综合久久精品图片| 亚洲色图色小说| 国产电影一区二区三区| 日韩精品一区二区三区老鸭窝| 亚洲精品大片www| av一区二区久久| 亚洲色图制服丝袜| 色综合天天综合狠狠| 久久久久久久久蜜桃| 国产精品综合视频| 国产日韩三级在线| 99久久久无码国产精品| 亚洲美女在线一区| 精品视频1区2区| 美洲天堂一区二卡三卡四卡视频 | 日本伊人午夜精品| 精品日韩99亚洲| 国内欧美视频一区二区| 日韩伦理电影网| 欧美无砖砖区免费| 精品一区二区三区免费播放| 久久嫩草精品久久久精品一| kk眼镜猥琐国模调教系列一区二区| 亚洲免费毛片网站| 91官网在线免费观看| 精品一区二区免费在线观看| 国产精品久99| 欧美一卡二卡在线| 91免费版在线| 久久99精品久久久| 亚洲精品久久7777| 欧美精品一区二区三区蜜臀| 91久久久免费一区二区| 日本高清免费不卡视频| 开心九九激情九九欧美日韩精美视频电影| 久久久久久久电影| 精品视频在线视频| 在线观看日韩国产| 国产乱码字幕精品高清av| 亚洲一级二级在线| 亚洲欧洲在线观看av| 久久久久久免费网| 欧美mv日韩mv国产| 欧美性猛交xxxx乱大交退制版| 成人精品电影在线观看| 国产一区二区美女诱惑| 天天综合色天天综合| 国产精品久久福利| 国产精品污网站| 国产精品电影院| 中文字幕av一区二区三区免费看| 欧美xxxxx牲另类人与| 欧美日韩一区二区在线观看视频| 99久久精品国产导航| 不卡的电影网站| 成人黄页在线观看| 色就色 综合激情| 99re成人精品视频| 一本到高清视频免费精品| 色偷偷久久人人79超碰人人澡| 国产91精品免费| 99re这里只有精品首页| 成人免费视频一区二区| 狠狠狠色丁香婷婷综合激情| 国产酒店精品激情| 成人午夜激情影院| 色综合中文字幕国产| 99精品视频一区二区三区| 成人av在线电影| 欧美日韩久久一区二区| 精品嫩草影院久久| 中文字幕字幕中文在线中不卡视频| 亚洲欧洲精品天堂一级| 亚洲欧美电影一区二区| 日韩电影在线观看网站| 国产成人精品www牛牛影视| 91免费视频观看| 欧美一级欧美一级在线播放| 亚洲国产精品二十页| 性久久久久久久久| 国产91精品精华液一区二区三区| 91小宝寻花一区二区三区| 欧美老肥妇做.爰bbww视频| 国产欧美日韩精品a在线观看| 亚洲国产综合视频在线观看| 国产美女在线观看一区| 欧美日韩另类一区| 国产免费久久精品| 亚洲va欧美va人人爽| 91在线国产观看| 国产网红主播福利一区二区| 亚洲国产成人va在线观看天堂| 91在线免费看| 精品成人免费观看| 五月激情综合色| 欧美亚洲一区二区在线| 综合久久一区二区三区| 成人av在线看| 久久久精品人体av艺术| 久久99精品国产| 91精品欧美一区二区三区综合在| 一卡二卡三卡日韩欧美| 一本色道亚洲精品aⅴ| 日韩美女精品在线| 北条麻妃一区二区三区| 亚洲黄色av一区| 欧美在线制服丝袜| 肉肉av福利一精品导航| 91精品国产品国语在线不卡| 天天亚洲美女在线视频| 精品视频一区二区不卡|