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

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

?? testchart.java

?? Photoalbum,開發(fā)于J2ME
?? JAVA
字號:
/* * * Copyright (c) 2007, Sun Microsystems, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * *  * Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. *  * Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. *  * Neither the name of Sun Microsystems nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */package example.photoalbum;import java.util.Vector;import javax.microedition.lcdui.*;import javax.microedition.midlet.*;/** * A quick sample of graphics which generates a series of images * that can be used as a sample animation.  The animation * consists of a title, a pie, and a bar chart.  The charts * are sized to the requested size so they will look good on * devices with various screen sizes. */class TestChart {    /** Width of the canvas */    int w;    /** Height of the canvas */    int h;    /** Font used for drawing text */    Font font;    /** height of the font */    int fh;    /** Height of the title */    int titleHeight;    /** Padding used between items */    int pad;    /** Size of the Pie chart used for width and height */    int pieSize;    /** Size of the Bar chart used for width and height */    int barSize;    /** The current frame number */    int frameno;    /**     * Initialize a new TestPattern to match the requested size.     * @param width the requested width of the Images     * @param height the requested height of the Images     */    public TestChart(int width, int height) {        w = width;        h = height;        font = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL);        fh = font.getHeight();        /*         * Compute the sizes of the bar and pie charts         * It should use all the space except for the title and event regions         * Don't let the charts get too small         */        pad = 2;        titleHeight = fh + (pad * 2);        barSize = h - (titleHeight + pad);        if (barSize < 10) { // Don't let them get too small            barSize = 10;        }        if (barSize > ((w - pad) / 2)) { // Shrink to 1/2 width            barSize = (w - pad) / 2;        }        pieSize = barSize;    }    /**     * Generate the frames for this animated chart.     * It consists of hour frames with the first frame     * containing only the base, and frame 2,3,4 adding     * the colors to the bars of the bar chart.     * @return the Vector of Images.     */    public Vector generateImages() {        Vector v = new Vector(4);        for (frameno = 0; frameno < 4; frameno++) {            Image image = Image.createImage(w, h);            paint(image.getGraphics());            v.addElement(image);        }        return v;    }    /**     * Draw the current frame.     * The field frameno contains the current frame number.     * @param g the Graphics context     */    public void paint(Graphics g) {        g.setFont(font);        g.setGrayScale(255);        g.fillRect(0, 0, w, h);        // Draw Fill and outline for background of title Text        int swidth = (pad * 2) + font.stringWidth("Chart Samples");        int title_x = (w - swidth) / 2;        g.setGrayScale(128);        g.fillRoundRect(title_x, 0, swidth, fh, 5, 5);        g.setGrayScale(0);        g.drawRoundRect(title_x, 0, swidth, fh, 5, 5);        // Sample Text        g.setColor(0, 0, 0);        g.drawString("Chart Samples", title_x + pad, pad, Graphics.TOP | Graphics.LEFT);        g.translate(0, titleHeight + pad); // Translate to below title text        // Draw pie chart on the left using the barSize for width and height        g.setColor(255, 0, 0);        g.fillArc(0, 0, pieSize, pieSize, 45, 270);        g.setColor(0, 255, 0);        g.fillArc(0, 0, pieSize, pieSize, 0, 45);        g.setColor(0, 0, 255);        g.fillArc(0, 0, pieSize, pieSize, 0, -45);        g.setColor(0);        g.drawArc(0, 0, pieSize, pieSize, 0, 360);        // Draw Bar chart on right side of the display        // scale the values to the pieSize maximum value        int yorig = barSize;        int h1 = barSize / 3;        int h2 = barSize / 2;        int h3 = barSize;        int avg = (h1 + h2 + h3) / 3;        // Move over to draw Bar chart        g.translate((w + pad) / 2, 0);        int bw = pieSize / 7;        if (bw < 2) {            bw = 2;        }        if (frameno > 0) {            g.setColor(255, 0, 0);            g.fillRect(bw * 1, yorig - h1, bw + 1, h1);        }        if (frameno > 1) {            g.setColor(0, 255, 0);            g.fillRect(bw * 3, yorig - h2, bw + 1, h2);        }        if (frameno > 2) {            g.setColor(0, 0, 255);            g.fillRect(bw * 5, yorig - h3, bw + 1, h3);        }        g.setColor(0);        g.drawRect(bw * 1, yorig - h1, bw, h1);        g.drawRect(bw * 3, yorig - h2, bw, h2);        g.drawRect(bw * 5, yorig - h3, bw, h3);        // Draw axis for bar chart.        g.setGrayScale(0);        g.drawLine(0, 0, 0, yorig);        g.drawLine(0, yorig, barSize, yorig);        g.setStrokeStyle(Graphics.DOTTED);        g.drawLine(0, yorig - avg, barSize, yorig - avg);        g.setStrokeStyle(Graphics.SOLID);        // Restore to left and move down        g.translate(-(w + pad) / 2, pieSize + pad);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图都市小说| 欧美日免费三级在线| 久久综合色8888| 免费人成精品欧美精品| 91精品国产一区二区人妖| 无码av免费一区二区三区试看| 欧美嫩在线观看| 狠狠色丁香九九婷婷综合五月| 久久久影院官网| 成人黄页在线观看| 亚洲老妇xxxxxx| 91精品黄色片免费大全| 精品一区二区三区av| 国产日韩欧美a| 色久优优欧美色久优优| 午夜精品福利在线| 精品国产成人在线影院| 国产高清精品久久久久| 亚洲女与黑人做爰| 欧美一卡在线观看| 成人听书哪个软件好| 一片黄亚洲嫩模| 日韩一区二区三区在线观看| 国产激情偷乱视频一区二区三区| 中文字幕一区二区三区蜜月| 欧美性感一类影片在线播放| 免费高清在线视频一区·| 国产欧美日韩激情| 91成人在线精品| 久久99精品久久久久久动态图| 欧美激情中文不卡| 欧美精品一卡两卡| 高清视频一区二区| 婷婷久久综合九色综合伊人色| 欧美大白屁股肥臀xxxxxx| 成人av集中营| 久久aⅴ国产欧美74aaa| 亚洲欧洲精品一区二区三区| 777a∨成人精品桃花网| 国产69精品久久99不卡| 日韩精品国产欧美| 亚洲欧洲精品天堂一级 | 一本到高清视频免费精品| 日韩成人一级片| 国产欧美一区二区三区沐欲| 555夜色666亚洲国产免| 成人黄色片在线观看| 蜜桃视频在线观看一区| 亚洲精选免费视频| 欧美高清一级片在线观看| 欧美无砖专区一中文字| 成人短视频下载| 激情欧美日韩一区二区| 亚洲国产三级在线| 国产精品久久99| 精品久久久久av影院| 欧美日韩不卡视频| 色又黄又爽网站www久久| 麻豆成人免费电影| 性久久久久久久| 亚洲精品国产a久久久久久| 日本一区二区久久| 久久亚洲精品小早川怜子| 8x8x8国产精品| 欧美性感一类影片在线播放| 91麻豆成人久久精品二区三区| 国模少妇一区二区三区| 日本91福利区| 午夜精品久久久久久久| 亚洲一区中文日韩| 亚洲黄色免费网站| 亚洲激情网站免费观看| 亚洲精品videosex极品| 一区二区在线观看av| 亚洲女同一区二区| 亚洲黄一区二区三区| 亚洲免费在线视频| 亚洲黄色免费网站| 性感美女极品91精品| 亚洲午夜羞羞片| 日韩精品亚洲一区二区三区免费| 午夜国产精品影院在线观看| 亚洲6080在线| 全部av―极品视觉盛宴亚洲| 欧美a一区二区| 国产精品一区三区| 国产成人h网站| 99国产精品国产精品久久| 99视频一区二区| 色欲综合视频天天天| eeuss鲁一区二区三区| 99精品视频一区二区三区| 成人综合在线观看| 国产成人免费网站| 丁香六月综合激情| www.一区二区| 欧美午夜精品理论片a级按摩| 色综合久久久网| 91福利精品视频| 欧美在线free| 欧美日韩国产小视频| 欧美日韩在线一区二区| 日韩久久久久久| 国产亚洲精品aa| 中文字幕免费观看一区| 中文在线免费一区三区高中清不卡| 国产亚洲欧美日韩在线一区| 久久久99免费| 精品久久久久一区二区国产| 国产亚洲欧美一区在线观看| 国产欧美日韩一区二区三区在线观看| 欧美精品一区二区精品网| 精品久久久久久久久久久久久久久| 欧美精品一区二区三区久久久| 在线播放国产精品二区一二区四区| 欧美一区二区三区在线电影| 精品国产一区二区三区久久影院| 精品国产乱码久久久久久老虎| 国产精品入口麻豆九色| 日韩久久一区二区| 天天综合网天天综合色 | 人人狠狠综合久久亚洲| 日本一不卡视频| 成人av在线影院| 欧美日本在线一区| 精品88久久久久88久久久| 亚洲国产成人在线| 国产一区二区成人久久免费影院| 色94色欧美sute亚洲线路一久| 欧美欧美午夜aⅴ在线观看| 精品第一国产综合精品aⅴ| 国产精品进线69影院| 午夜激情久久久| 国产**成人网毛片九色| 激情文学综合丁香| 欧美日韩的一区二区| 久久亚洲综合色| 亚洲综合另类小说| 久久99精品国产麻豆婷婷| 99精品热视频| 日本一区二区三区视频视频| 亚洲国产欧美日韩另类综合| 国产一区二区三区精品视频| 91福利国产成人精品照片| 久久欧美中文字幕| 一区二区三区欧美视频| 成人午夜在线免费| 日韩亚洲欧美中文三级| 中文字幕一区视频| 麻豆91精品视频| 91在线云播放| 日韩小视频在线观看专区| **欧美大码日韩| 久久97超碰国产精品超碰| 91热门视频在线观看| 欧美va亚洲va香蕉在线| 一区二区高清在线| 国产成人免费在线视频| 欧美一级欧美一级在线播放| 亚洲欧美在线视频观看| 国内精品第一页| 欧美日韩电影一区| 亚洲人成亚洲人成在线观看图片| 麻豆一区二区三| 欧美日韩国产中文| 亚洲免费av在线| 成人午夜私人影院| 欧美韩国日本一区| 久久99精品久久久久久国产越南| 欧美午夜精品电影| 亚洲视频免费在线| 大胆欧美人体老妇| 欧美激情在线看| 欧美日韩综合在线免费观看| 亚洲男人的天堂网| 成人av网站在线观看| 国产亚洲欧洲997久久综合| 国产成人亚洲精品狼色在线| 日韩精品一区在线| 日韩成人精品在线| 欧美日本韩国一区| 亚洲1区2区3区4区| 91视频国产资源| 中文字幕亚洲欧美在线不卡| 国产一区二区在线视频| 中文字幕成人在线观看| 国产99久久久久| 国产精品人人做人人爽人人添| 国产一区二区h| 在线观看视频一区二区欧美日韩| 亚洲一区二区三区影院| 欧美网站大全在线观看| 一区二区三区四区在线播放| 色综合久久综合网欧美综合网| 欧美国产日韩a欧美在线观看 | 欧美一区二区三区视频在线观看| 亚洲无线码一区二区三区| 欧美日韩性生活| 久久国产精品露脸对白| 国产精品午夜春色av|