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

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

?? photoframe.java

?? Photoalbum,開發于J2ME
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * * 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.*;/** * This PhotoFrame provides the picture frame and drives the animation * of the frames and the picture. It handles the starting and stopping * of the Animation and contains the Thread used to do * the timing and requests that the Canvas be repainted * periodically. * It controls the border style and animation speed. */class PhotoFrame extends Canvas implements Runnable {    /**     * Mapping of speed values to delays in ms.     * Indices map to those in the speed ChoiceGroup in the options form.     * The indices are: 0 = stop, 1 = slow, 2 = medium, 3 = fast.     * @see setSpeed     */    private static final int[] speeds = { 999999999, 500, 250, 100, 0 };    /** border style */    private int style;    /** animation speed set */    private int speed;    /** Vector of images to display */    private Vector images;    /** Index of next image to display */    private int index;    /** X offset of image in frame */    private int imageX;    /** X offset of image in frame */    private int imageY;    /** Width and height of image */    private int imageWidth;    /** Width and height of image */    private int imageHeight;    /** Thread used for triggering repaints */    private Thread thread;    /** buffer image of the screen */    private Image image;    /** Pattern image used for border */    private Image bimage;    /** Time of most recent paint */    private long paintTime;    /** Time of most recent frame rate report */    private long statsTime;    /** Number of frames since last frame rate report */    int frameCount;    /** Last reported frame rate (for re-paint) */    int frameRate;    /**     * Create a new PhotoFrame.     * Create an offscreen mutable image into which the border is drawn.     * Border style is none (0).     * Speed is stopped (0) until set.     */    PhotoFrame() {        image = Image.createImage(getWidth(), getHeight());        setStyle(0);        setSpeed(0);    }    /**     * Set the array of images to be displayed.     * Update the width and height of the image and draw     * the border to fit around it in the offscreen image.     * @param images a vector of images to be displayed.     */    void setImages(Vector images) {        this.images = images;        if (images.size() > 0) {            Image image = (Image)images.elementAt(0);            imageWidth = image.getWidth();            imageHeight = image.getHeight();        } else {            imageWidth = 0;            imageHeight = 0;        }        index = 0;        imageX = (getWidth() - imageWidth) / 2;        imageY = (getHeight() - imageHeight) / 2;        genFrame(style, imageX, imageY, imageWidth, imageHeight);    }    /**     * Advance to the next image and wrap around if necessary.     */    void next() {        if ((images == null) || (++index >= images.size())) {            index = 0;        }    }    /**     * Back up to the previous image.     * Wrap around to the end if at the beginning.     */    void previous() {        if ((images != null) && (--index < 0)) {            index = images.size() - 1;        } else {            index = 0;        }    }    /**     * Reset the PhotoFrame so it holds minimal resources.     * The animation thread is stopped.     */    void reset() {        images = null;        thread = null;    }    /**     * Handle key events. FIRE events toggle between     * running and stopped.  LEFT and RIGHT key events     * when stopped show the previous or next image.     * @param keyCode of the key pressed     */    protected void keyPressed(int keyCode) {        int action = getGameAction(keyCode);        switch (action) {        case RIGHT:            if (thread == null) {                next();                repaint();            }            break;        case LEFT:            if (thread == null) {                previous();                repaint();            }            break;        case FIRE:            // Use FIRE to toggle the activity of the thread            if (thread == null) {                thread = new Thread(this);                thread.start();            } else {                synchronized (this) {                    // Wake up the thread to change the timing                    this.notify();                }                // Shouldn't be in synchronized block                thread = null;            }            break;        }    }    /**     * Handle key repeat events as regular key events.     * @param keyCode of the key repeated     */    protected void keyRepeated(int keyCode) {        keyPressed(keyCode);    }    /**     * Set the animation speed.     * Speed:     * <OL>     * <LI>0 = stop     * <LI>1 = slow     * <LI>2 = medium     * <LI>3 = fast     * <LI>4 = unlimited     * </OL>     * @param speed speedo of animation 0-3;     */    void setSpeed(int speed) {        this.speed = speed;        statsTime = 0;    }    /**     * Get the speed at which animation occurs.     * @return the current speed.     * @see setSpeed     */    int getSpeed() {        return speed;    }    /**     * Set the frame style.     * Recreate the photo frame image from the current style     * and location and size     * <p>     * Style:     * <OL>     * <LI> Style 0: No border is drawn.     * <LI> Style 1: A simple border is drawn     * <LI> Style 2: The border is outlined and an image     * is created to tile within the border.     * </OL>     * @param style the style of the border; 0 = none, 1 = simple,     * 2 = fancy.     */    void setStyle(int style) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕乱码日本亚洲一区二区| 久久久久久久国产精品影院| 国产精品一区二区在线观看网站| 亚洲精品乱码久久久久久日本蜜臀| 麻豆高清免费国产一区| 91亚洲永久精品| 69堂成人精品免费视频| 欧美精品一区二区三区一线天视频| 日本一区二区三区久久久久久久久不| 国产精品久久久久久久久免费相片 | 从欧美一区二区三区| 色成年激情久久综合| 欧美一级淫片007| 欧美成人video| 国产精品福利一区| 免费不卡在线观看| 97久久精品人人做人人爽| 91精品在线观看入口| 欧美视频日韩视频在线观看| 日韩欧美的一区| 亚洲欧美国产77777| 国产一区二三区好的| 欧美日韩在线播放一区| 中文在线一区二区| 亚洲电影一区二区| 成人av免费观看| 久久亚洲一区二区三区四区| 午夜亚洲国产au精品一区二区| 成人免费毛片片v| xnxx国产精品| 另类人妖一区二区av| 欧美日韩成人一区| 亚洲久草在线视频| 国产传媒日韩欧美成人| 欧美一二三区精品| 亚洲女同ⅹxx女同tv| 偷拍日韩校园综合在线| 不卡一区在线观看| 国产欧美中文在线| 一区二区三区日韩| 99久久国产免费看| 亚洲色欲色欲www| 国产成人99久久亚洲综合精品| 欧美高清精品3d| 午夜精品福利一区二区三区av | 国产精品成人一区二区艾草 | 视频一区中文字幕| 国产成a人亚洲精品| 久久精品网站免费观看| 久久99精品国产麻豆婷婷| 欧美一卡在线观看| 婷婷成人激情在线网| 在线看国产日韩| 亚洲视频在线观看三级| 韩国成人在线视频| 日韩一区二区不卡| 精品一二三四区| 国产福利一区在线| 欧美日韩精品电影| 777久久久精品| 欧美日韩五月天| 欧美大度的电影原声| 91色porny蝌蚪| 美美哒免费高清在线观看视频一区二区 | 综合色中文字幕| 日韩三级伦理片妻子的秘密按摩| 蜜臀av国产精品久久久久| ...xxx性欧美| 国产亚洲午夜高清国产拍精品| 欧美午夜视频网站| 丁香啪啪综合成人亚洲小说| 欧美96一区二区免费视频| 亚洲激情图片小说视频| 色综合天天综合网天天狠天天 | 久久国产精品99久久久久久老狼 | 大白屁股一区二区视频| 国产精品99精品久久免费| 男女男精品网站| 亚洲综合一二三区| 亚洲18女电影在线观看| 自拍偷在线精品自拍偷无码专区| 久久免费视频一区| 久久久综合视频| 欧美日韩三级一区| 欧美性xxxxx极品少妇| 91一区二区在线观看| 色中色一区二区| 色综合一个色综合亚洲| 在线免费观看视频一区| 色综合天天综合在线视频| 在线观看成人免费视频| 欧美性受极品xxxx喷水| 99久久综合99久久综合网站| 色天使色偷偷av一区二区| 91色九色蝌蚪| 欧美高清www午色夜在线视频| 欧美久久一二三四区| 精品国产网站在线观看| 日韩欧美aaaaaa| 国产日韩欧美一区二区三区乱码| 精品国产免费久久| 国产亚洲精品aa| 亚洲麻豆国产自偷在线| 亚洲欧洲制服丝袜| 日韩成人一级片| 精品综合免费视频观看| 成人精品鲁一区一区二区| av电影在线观看一区| bt7086福利一区国产| 色呦呦一区二区三区| 欧美精品丝袜久久久中文字幕| 欧美成人一区二区| 日本一区二区三区国色天香| 亚洲精品中文在线影院| 亚洲bdsm女犯bdsm网站| 国产成人av影院| 色丁香久综合在线久综合在线观看| 91麻豆精品国产91久久久久| 精品美女一区二区| 亚洲精品在线网站| 亚洲一区二区视频在线| 青青草原综合久久大伊人精品| 成人激情小说网站| 欧美日韩mp4| 中文在线一区二区| 偷拍一区二区三区四区| 99久久综合国产精品| 欧美日韩1234| 亚洲国产精华液网站w| 亚洲国产综合91精品麻豆| 蜜桃久久久久久久| 在线观看三级视频欧美| 精品福利av导航| 五月激情六月综合| 成人午夜免费视频| 精品日韩在线观看| 亚洲精品国产品国语在线app| 国内久久精品视频| 91黄色免费看| 国产精品久久久久精k8| 日本人妖一区二区| 在线影视一区二区三区| 26uuu亚洲综合色欧美| 国产无人区一区二区三区| 亚洲成人av福利| 丁香六月综合激情| 久久久精品中文字幕麻豆发布| 亚洲精品日产精品乱码不卡| 成人综合激情网| 91精品国产高清一区二区三区蜜臀| 一区二区三区中文在线观看| 久久成人久久爱| 日韩一级精品视频在线观看| 一区二区三区在线观看国产| 成人免费毛片aaaaa**| 欧美成人精品1314www| 国产精品的网站| 不卡在线视频中文字幕| 欧美大片一区二区三区| 久久激情五月激情| 欧美日韩国产影片| 亚洲第一精品在线| 色爱区综合激月婷婷| 亚洲国产成人一区二区三区| 美国十次了思思久久精品导航| 欧美性生活影院| 日韩毛片高清在线播放| 在线亚洲精品福利网址导航| 中文字幕中文字幕中文字幕亚洲无线 | 亚洲一区二区三区免费视频| 91亚洲午夜精品久久久久久| 中文字幕乱码亚洲精品一区 | 成人手机在线视频| 欧美一区二区免费| 亚洲第一会所有码转帖| 波多野结衣中文一区| 亚洲欧美日韩在线播放| 不卡电影一区二区三区| 亚洲精品久久久久久国产精华液| 成人h精品动漫一区二区三区| 国产精品欧美一级免费| 国产sm精品调教视频网站| 国产精品美女久久久久久久久久久| 激情综合一区二区三区| 亚洲国产成人自拍| 波多野结衣亚洲一区| 亚洲最快最全在线视频| 欧美亚洲国产怡红院影院| 丝瓜av网站精品一区二区 | 日韩一级大片在线| 日韩av中文字幕一区二区| 精品国产91洋老外米糕| 国产在线播放一区| 欧美激情综合五月色丁香小说| 国产精品一区二区在线播放| 久久影院视频免费| 一本大道久久a久久精二百| 亚洲一二三区视频在线观看| 欧美一区二区视频网站| 麻豆传媒一区二区三区|