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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? eschergraphics.java

?? java 報表 to office文檔: 本包由java語言開發(fā)
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ====================================================================   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;import org.apache.poi.util.POILogFactory;import org.apache.poi.util.POILogger;import org.apache.poi.hssf.util.HSSFColor;import java.awt.*;import java.awt.image.ImageObserver;import java.text.AttributedCharacterIterator;/** * Translates Graphics calls into escher calls.  The translation is lossy so * many features are not supported and some just aren't implemented yet.  If * in doubt test the specific calls you wish to make. Graphics calls are * always performed into an EscherGroup so one will need to be created. * <p> * <b>Important:</b> * <blockquote> * One important concept worth considering is that of font size.  One of the * difficulties in converting Graphics calls into escher drawing calls is that * Excel does not have the concept of absolute pixel positions.  It measures * it's cell widths in 'characters' and the cell heights in points. * Unfortunately it's not defined exactly what a type of character it's * measuring.  Presumably this is due to the fact that the Excel will be * using different fonts on different platforms or even within the same * platform. * <p> * Because of this constraint we've had to calculate the * verticalPointsPerPixel.  This the amount the font should be scaled by when * you issue commands such as drawString().  A good way to calculate this * is to use the follow formula: * <p> * <pre> *      multipler = groupHeightInPoints / heightOfGroup * </pre> * <p> * The height of the group is calculated fairly simply by calculating the * difference between the y coordinates of the bounding box of the shape.  The * height of the group can be calculated by using a convenience called * <code>HSSFClientAnchor.getAnchorHeightInPoints()</code>. * </blockquote> * * @author Glen Stampoultzis (glens at apache.org) */public class EscherGraphics        extends Graphics{    private HSSFShapeGroup escherGroup;    private HSSFWorkbook workbook;    private float verticalPointsPerPixel = 1.0f;    private float verticalPixelsPerPoint;    private Color foreground;    private Color background = Color.white;    private Font font;    private static POILogger logger = POILogFactory.getLogger(EscherGraphics.class);    /**     * Construct an escher graphics object.     *     * @param escherGroup           The escher group to write the graphics calls into.     * @param workbook              The workbook we are using.     * @param forecolor             The foreground color to use as default.     * @param verticalPointsPerPixel    The font multiplier.  (See class description for information on how this works.).     */    public EscherGraphics(HSSFShapeGroup escherGroup, HSSFWorkbook workbook, Color forecolor, float verticalPointsPerPixel )    {        this.escherGroup = escherGroup;        this.workbook = workbook;        this.verticalPointsPerPixel = verticalPointsPerPixel;        this.verticalPixelsPerPoint = 1 / verticalPointsPerPixel;        this.font = new Font("Arial", 0, 10);        this.foreground = forecolor;//        background = backcolor;    }    /**     * Constructs an escher graphics object.     *     * @param escherGroup           The escher group to write the graphics calls into.     * @param workbook              The workbook we are using.     * @param foreground            The foreground color to use as default.     * @param verticalPointsPerPixel    The font multiplier.  (See class description for information on how this works.).     * @param font                  The font to use.     */    EscherGraphics( HSSFShapeGroup escherGroup, HSSFWorkbook workbook, Color foreground, Font font, float verticalPointsPerPixel )    {        this.escherGroup = escherGroup;        this.workbook = workbook;        this.foreground = foreground;//        this.background = background;        this.font = font;        this.verticalPointsPerPixel = verticalPointsPerPixel;        this.verticalPixelsPerPoint = 1 / verticalPointsPerPixel;    }//    /**//     * Constructs an escher graphics object.//     *//     * @param escherGroup           The escher group to write the graphics calls into.//     * @param workbook              The workbook we are using.//     * @param forecolor             The default foreground color.//     *///    public EscherGraphics( HSSFShapeGroup escherGroup, HSSFWorkbook workbook, Color forecolor)//    {//        this(escherGroup, workbook, forecolor, 1.0f);//    }    public void clearRect(int x, int y, int width, int height)    {        Color color = foreground;        setColor(background);        fillRect(x,y,width,height);        setColor(color);    }    public void clipRect(int x, int y, int width, int height)    {        if (logger.check( POILogger.WARN ))            logger.log(POILogger.WARN,"clipRect not supported");    }    public void copyArea(int x, int y, int width, int height, int dx, int dy)    {        if (logger.check( POILogger.WARN ))            logger.log(POILogger.WARN,"copyArea not supported");    }    public Graphics create()    {        EscherGraphics g = new EscherGraphics(escherGroup, workbook,                foreground, font, verticalPointsPerPixel );        return g;    }    public void dispose()    {    }    public void drawArc(int x, int y, int width, int height,				 int startAngle, int arcAngle)    {        if (logger.check( POILogger.WARN ))            logger.log(POILogger.WARN,"drawArc not supported");    }    public boolean drawImage(Image img,				      int dx1, int dy1, int dx2, int dy2,				      int sx1, int sy1, int sx2, int sy2,				      Color bgcolor,				      ImageObserver observer)    {        if (logger.check( POILogger.WARN ))            logger.log(POILogger.WARN,"drawImage not supported");        return true;    }    public boolean drawImage(Image img,				      int dx1, int dy1, int dx2, int dy2,				      int sx1, int sy1, int sx2, int sy2,				      ImageObserver observer)    {        if (logger.check( POILogger.WARN ))            logger.log(POILogger.WARN,"drawImage not supported");        return true;    }    public boolean drawImage(Image image, int i, int j, int k, int l, Color color, ImageObserver imageobserver)    {        return drawImage(image, i, j, i + k, j + l, 0, 0, image.getWidth(imageobserver), image.getHeight(imageobserver), color, imageobserver);    }    public boolean drawImage(Image image, int i, int j, int k, int l, ImageObserver imageobserver)    {        return drawImage(image, i, j, i + k, j + l, 0, 0, image.getWidth(imageobserver), image.getHeight(imageobserver), imageobserver);    }    public boolean drawImage(Image image, int i, int j, Color color, ImageObserver imageobserver)    {        return drawImage(image, i, j, image.getWidth(imageobserver), image.getHeight(imageobserver), color, imageobserver);    }    public boolean drawImage(Image image, int i, int j, ImageObserver imageobserver)    {        return drawImage(image, i, j, image.getWidth(imageobserver), image.getHeight(imageobserver), imageobserver);    }    public void drawLine(int x1, int y1, int x2, int y2)    {        HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor(x1, y1, x2, y2) );        shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_LINE);        shape.setLineWidth(0);        shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());    }    public void drawOval(int x, int y, int width, int height)    {        HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor(x,y,x+width,y+height) );        shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);        shape.setLineWidth(0);        shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());        shape.setNoFill(true);    }    public void drawPolygon(int xPoints[], int yPoints[],				     int nPoints)    {        int right  = findBiggest(xPoints);        int bottom = findBiggest(yPoints);        int left   = findSmallest(xPoints);        int top    = findSmallest(yPoints);        HSSFPolygon shape = escherGroup.createPolygon(new HSSFChildAnchor(left,top,right,bottom) );        shape.setPolygonDrawArea(right - left, bottom - top);        shape.setPoints(addToAll(xPoints, -left), addToAll(yPoints, -top));        shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());        shape.setLineWidth(0);        shape.setNoFill(true);    }    private int[] addToAll( int[] values, int amount )    {        int[] result = new int[values.length];        for ( int i = 0; i < values.length; i++ )            result[i] = values[i] + amount;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品911| 欧美丰满美乳xxx高潮www| 欧美日韩一区在线| 国产欧美一区二区精品秋霞影院| 亚洲精品自拍动漫在线| 国产成人免费视频网站 | 亚洲视频一区二区在线观看| 日韩av一区二| 欧美视频一区二区三区四区| 国产精品免费久久| 奇米综合一区二区三区精品视频 | 一区二区高清免费观看影视大全| 亚洲不卡av一区二区三区| 国产精品伊人色| 制服丝袜中文字幕一区| 亚洲一区日韩精品中文字幕| 国产成人在线色| 欧美一区二区三区白人| 亚洲国产精品一区二区久久恐怖片| 伊人开心综合网| 国模一区二区三区白浆| 欧美无砖砖区免费| 亚洲视频 欧洲视频| 免费一级欧美片在线观看| 欧美探花视频资源| 国产精品理伦片| 国内成+人亚洲+欧美+综合在线| 欧美精品123区| 亚洲一区二区三区四区的| www.亚洲免费av| 国产女人aaa级久久久级| 婷婷国产v国产偷v亚洲高清| 91成人在线免费观看| 中文字幕一区二区三区不卡| 国产黄人亚洲片| 精品欧美久久久| 免费亚洲电影在线| 日韩欧美在线影院| 亚洲成人免费在线| 成人综合在线观看| 国产精品国产三级国产专播品爱网 | 麻豆视频观看网址久久| 欧美日韩一区国产| 国产亚洲欧美中文| 成人app软件下载大全免费| 日韩一区中文字幕| 欧美一区二区精品在线| 福利一区二区在线| 亚洲精品一二三| 国产精品理论在线观看| 日韩欧美视频一区| 裸体在线国模精品偷拍| 欧美一区二区三区在线观看视频| 欧美一区二区观看视频| 欧美激情在线观看视频免费| 岛国av在线一区| 国产午夜亚洲精品午夜鲁丝片| 国产a精品视频| 国产免费成人在线视频| 国产成人精品影院| 日韩一区中文字幕| 在线观看日产精品| 亚洲不卡在线观看| 日韩午夜av一区| 日韩有码一区二区三区| 精品欧美一区二区久久| 国产一区激情在线| 蜜桃久久av一区| 91精品综合久久久久久| 久久九九影视网| 精品亚洲成a人在线观看| 欧美精品乱码久久久久久| 奇米精品一区二区三区在线观看| 日韩欧美不卡在线观看视频| 国产资源精品在线观看| 亚洲视频电影在线| 欧美三级在线看| 韩国一区二区视频| 国产精品高潮呻吟久久| 在线观看日韩电影| 久久99国产精品久久99果冻传媒| 国产区在线观看成人精品| 成人a级免费电影| 亚洲美女在线一区| 777xxx欧美| 成人免费毛片高清视频| 一区二区三区蜜桃网| 欧美不卡123| av一区二区久久| 亚洲国产精品久久久久秋霞影院| 欧美α欧美αv大片| 成人午夜视频在线| 午夜精品免费在线| 国产欧美一区二区精品婷婷| 色狠狠av一区二区三区| 精品一区二区综合| 最新中文字幕一区二区三区 | 精品美女在线播放| 色综合天天性综合| 激情都市一区二区| 欧美电影一区二区三区| 激情图片小说一区| 精品卡一卡二卡三卡四在线| 91丨九色丨尤物| 天天综合天天综合色| 中文字幕在线不卡国产视频| 欧美疯狂性受xxxxx喷水图片| 极品美女销魂一区二区三区| 亚洲综合成人网| 久久综合九色综合欧美亚洲| 在线看不卡av| 国产成人免费9x9x人网站视频| 亚洲在线免费播放| 久久色中文字幕| 欧美日韩综合在线免费观看| 高清不卡在线观看| 日日噜噜夜夜狠狠视频欧美人| 中文字幕在线视频一区| 欧美一区二区免费| 94色蜜桃网一区二区三区| 老司机免费视频一区二区| 亚洲欧洲日韩av| 久久久久久久电影| 欧美午夜电影网| 91视频观看视频| 国产在线不卡视频| 亚洲香肠在线观看| 中文字幕乱码久久午夜不卡| 69久久夜色精品国产69蝌蚪网| 成人av午夜影院| 国内精品伊人久久久久影院对白| 亚洲成人免费av| 国产视频911| 日韩视频一区二区三区| 在线免费观看日本欧美| 高清av一区二区| 国产在线乱码一区二区三区| 日韩精品成人一区二区三区| 亚洲美女免费视频| 国产亚洲一区二区三区四区 | 成人综合婷婷国产精品久久免费| 日韩电影网1区2区| 午夜电影一区二区| 一区二区三区在线免费视频| 久久精品亚洲一区二区三区浴池| 91麻豆精品91久久久久久清纯| 色婷婷综合久久久久中文一区二区| 成人国产一区二区三区精品| 国产自产视频一区二区三区 | 国产精品色眯眯| 欧美一区二区精美| 91精品国产综合久久精品图片| 欧美亚洲国产一区二区三区va| 91精彩视频在线观看| www.欧美亚洲| jiyouzz国产精品久久| 国产suv精品一区二区883| 国产精品夜夜嗨| 国产在线日韩欧美| 亚洲18色成人| 一区二区三区美女视频| 一区二区三区丝袜| 亚洲欧美激情视频在线观看一区二区三区 | 久久亚洲综合av| 精品久久久久久久人人人人传媒| 91麻豆精品久久久久蜜臀| 在线成人av网站| 欧美精品在线观看播放| 日韩欧美成人一区二区| 欧美成人免费网站| 久久精品视频免费| 国产农村妇女毛片精品久久麻豆 | 在线综合+亚洲+欧美中文字幕| 欧美色图第一页| 欧美日韩午夜在线视频| 欧美性色黄大片| 日韩天堂在线观看| 欧美videofree性高清杂交| 精品精品国产高清a毛片牛牛 | 精品亚洲免费视频| 国产精品综合二区| 成人性生交大片免费看视频在线 | 国产精品资源网| 风流少妇一区二区| 国产成人av电影在线观看| www.亚洲免费av| 色菇凉天天综合网| 制服丝袜av成人在线看| 日韩视频永久免费| 国产欧美日韩麻豆91| 国产精品久久综合| 性做久久久久久久免费看| 免费人成黄页网站在线一区二区| 国产专区欧美精品| 成人激情黄色小说| 99精品视频中文字幕| 欧美亚洲国产bt| 欧美日韩在线播放三区四区| 2020国产精品自拍| 国产日韩精品一区二区三区|