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

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

?? animationsequence.java

?? J2ME MIDP_Example_Applications
?? JAVA
字號:
// Copyright 2002 Nokia Corporation. 
// 
// THIS SOURCE CODE IS PROVIDED 'AS IS', WITH NO WARRANTIES WHATSOEVER, 
// EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS 
// FOR ANY PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE 
// OR TRADE PRACTICE, RELATING TO THE SOURCE CODE OR ANY WARRANTY OTHERWISE 
// ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE AND WITH NO 
// OBLIGATION OF NOKIA TO PROVIDE THE LICENSEE WITH ANY MAINTENANCE OR 
// SUPPORT. FURTHERMORE, NOKIA MAKES NO WARRANTY THAT EXERCISE OF THE 
// RIGHTS GRANTED HEREUNDER DOES NOT INFRINGE OR MAY NOT CAUSE INFRINGEMENT 
// OF ANY PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OWNED OR CONTROLLED 
// BY THIRD PARTIES 
// 
// Furthermore, information provided in this source code is preliminary, 
// and may be changed substantially prior to final release. Nokia Corporation 
// retains the right to make changes to this source code at 
// any time, without notice. This source code is provided for informational 
// purposes only. 
// 
// Nokia and Nokia Connecting People are registered trademarks of Nokia
// Corporation.
// Java and all Java-based marks are trademarks or registered trademarks of
// Sun Microsystems, Inc.
// Other product and company names mentioned herein may be trademarks or
// trade names of their respective owners.
// 
// A non-exclusive, non-transferable, worldwide, limited license is hereby 
// granted to the Licensee to download, print, reproduce and modify the 
// source code. The licensee has the right to market, sell, distribute and 
// make available the source code in original or modified form only when 
// incorporated into the programs developed by the Licensee. No other 
// license, express or implied, by estoppel or otherwise, to any other 
// intellectual property rights is granted herein.


package example.postcard;

import java.util.Vector;
import java.io.IOException;
import javax.microedition.lcdui.*;


// A class representing the sequence of Images used
// for an animation. It is constructed from a set of Images
// kept in a directory. The directory name is denoted as 'path'.
// The images in the sequence are named consequetively starting
// with "0.png".
//
// For example, the following is an example of an animation sequence
// of four images starting at <path> = "/images" :
//    /images/0.png
//    /images/1.png
//    /images/2.png
//    /images/3.png

class AnimationSequence
{
    private final Vector vector = new Vector();
    private int widest = 0;  // largest width of any image in the sequence
    private int tallest = 0; // largest height of any image in the sequence


    // Construct an AnimationSequence from the appropriate
    // 'path' where the sequence of Images is stored. The path
    // starts from the root "/" of the jarfile.
    //
    // 'path' is where the animation's .png images can be found,
    // 'maxWidth' is the maximum allowed width of an image
    // 'maxHeight' is the maximum allowed height of an image
    // An exception is thrown if some image in the sequence
    // exceeds maxWidth or maxHeight.

    AnimationSequence(String path, int maxWidth, int maxHeight)
        throws Exception
    {
        Image image;
        int w;
        int h;

        for (int ix = 0; ; ix++)
        {
            try
            {
                image = Image.createImage(path + "/" + ix + ".png");
                if (image != null)
                {
                    w = image.getWidth();
                    if ((w <= 0) || (w > maxWidth))
                    {
                        throw new Exception("Invalid image width");
                    }
                    else if (w > widest)
                    {
                        widest = w;
                    }

                    h = image.getHeight();
                    if ((h <= 0) || (h > maxHeight))
                    {
                        throw new Exception("Invalid image height");
                    }
                    else if (h > tallest)
                    {
                        tallest = h;
                    }

                    vector.addElement(image);
                }
                else
                {
                    throw new Exception("Invalid image: null");
                }
            }
            catch(IOException e)
            {
                if (ix == 0)
                {
                    // If at least one image '0.png' is not found then
                    // an exception is thrown.

                    throw new Exception("No images found");
                }
                else
                {
                    // The last image in the sequence 0.png .. N.png
                    // has been found.

                    break;
                }
            }
        }
    }


    // Return the number of elements in the animation sequence.

    int size()
    {
        return vector.size();
    }


    // Return the indexed image in the sequence if it exists.
    // The index ranges from 0 to (size() - 1).
    // 'ix' is the index of the image in the sequence

    Image elementAt(int ix)
    {
        return (Image)(vector.elementAt(ix));
    }


    // Return the width of the widest Image in the sequence.

    int getMaxImageWidth()
    {
        return widest;
    }


    // Return the height of the tallest Image in the sequence.

    int getMaxImageHeight()
    {
        return tallest;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
wwwwww.欧美系列| 亚洲综合免费观看高清完整版| 国产精品久久久久久久久免费丝袜 | 国产欧美日韩综合精品一区二区| 亚洲精品视频观看| 国产资源在线一区| 欧美日韩国产一级二级| 中文字幕高清一区| 激情五月婷婷综合| 欧美巨大另类极品videosbest | 国产精品久线在线观看| 精品一区二区日韩| 欧美日韩综合在线免费观看| 中文字幕乱码日本亚洲一区二区| 日韩av成人高清| 欧美天天综合网| 中文字幕字幕中文在线中不卡视频| 国产自产v一区二区三区c| 91麻豆精品国产91久久久| 亚洲一卡二卡三卡四卡| 99久久久精品| 国产女人18毛片水真多成人如厕 | av电影一区二区| 国产偷国产偷精品高清尤物| 久久99久久99精品免视看婷婷| 欧美久久婷婷综合色| 亚洲国产精品精华液网站| 欧美综合天天夜夜久久| 亚洲免费观看高清完整版在线| 韩日精品视频一区| 精品成人一区二区| 精品综合免费视频观看| 欧美精品一区在线观看| 麻豆精品久久久| 欧美va日韩va| 国产成人亚洲综合a∨猫咪| 久久精品日产第一区二区三区高清版| 美女性感视频久久| 精品国产一区二区三区久久影院| 久久成人久久鬼色| 久久色成人在线| 国产电影一区二区三区| 亚洲国产成人午夜在线一区| 波多野洁衣一区| 成人免费在线播放视频| 日本韩国欧美国产| 婷婷亚洲久悠悠色悠在线播放| 欧美肥妇毛茸茸| 激情五月婷婷综合网| 国产女人水真多18毛片18精品视频| 国产不卡视频在线播放| 亚洲免费在线观看视频| 欧美三区免费完整视频在线观看| 爽爽淫人综合网网站| 久久久99免费| 色综合久久综合| 日韩精品乱码免费| 久久精品一区二区三区四区| 99国产精品99久久久久久| 亚洲午夜激情网站| 久久日韩粉嫩一区二区三区| 99精品偷自拍| 午夜在线成人av| 国产日韩欧美不卡| 欧美日本精品一区二区三区| 国产精品一二三在| 亚洲综合一二三区| 久久综合五月天婷婷伊人| 99re免费视频精品全部| 日韩精品成人一区二区在线| 国产午夜精品理论片a级大结局 | 精品国偷自产国产一区| av一区二区三区在线| 亚洲3atv精品一区二区三区| 久久影院午夜论| 欧美色综合久久| 国产精品夜夜爽| 亚洲国产色一区| 国产亚洲一区字幕| 欧美一区二区在线看| 成人黄色777网| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品入口麻豆原神| 日韩一区二区在线免费观看| 成人av网站在线观看免费| 天天色天天操综合| 综合在线观看色| 精品国产麻豆免费人成网站| 欧美性生交片4| 成人在线视频一区| 国产在线视视频有精品| 日韩精品欧美成人高清一区二区| 亚洲天堂久久久久久久| 国产欧美一区二区精品忘忧草 | 在线观看不卡视频| 国产成人午夜精品影院观看视频 | 国产真实乱子伦精品视频| 午夜视频久久久久久| 亚洲精品中文在线影院| 国产精品久久久久久妇女6080| 久久久久久影视| 欧美大肚乱孕交hd孕妇| 3d成人动漫网站| 5566中文字幕一区二区电影| 欧美图区在线视频| 欧美日韩精品一区视频| 欧美在线高清视频| 色成年激情久久综合| 91理论电影在线观看| 99视频精品在线| 91麻豆产精品久久久久久| 97久久超碰国产精品| 成人av在线电影| 91在线视频在线| 91丨porny丨首页| 96av麻豆蜜桃一区二区| 99热这里都是精品| 99re成人在线| 91国产成人在线| 欧美日韩不卡视频| 日韩欧美国产午夜精品| 精品久久久久99| 国产人久久人人人人爽| 亚洲日本在线观看| 亚洲精品视频一区| 日韩激情在线观看| 精品夜夜嗨av一区二区三区| 狠狠色综合色综合网络| 国产成人精品亚洲日本在线桃色| 国产成人av资源| 91香蕉视频mp4| 欧美三级一区二区| 日韩欧美123| 国产欧美日韩在线视频| 亚洲免费视频中文字幕| 亚洲123区在线观看| 精品一区二区三区在线视频| 国产成人99久久亚洲综合精品| 99精品视频一区二区| 欧美日韩精品综合在线| 精品电影一区二区三区| 国产精品电影一区二区| 亚洲国产精品久久人人爱蜜臀| 免费美女久久99| 成人免费黄色在线| 欧美日韩一本到| 国产日韩精品一区二区三区| 亚洲一区二区三区四区的| 韩国三级中文字幕hd久久精品| 99久久久精品| 精品三级在线看| 日韩一区在线播放| 久久精品国产免费| 91片黄在线观看| 欧美大片在线观看一区| 亚洲女同女同女同女同女同69| 免费精品视频在线| 91麻豆蜜桃一区二区三区| 日韩精品专区在线| 亚洲激情综合网| 国产一区999| 5月丁香婷婷综合| 亚洲欧美日韩国产综合| 韩国理伦片一区二区三区在线播放| 91尤物视频在线观看| 精品粉嫩超白一线天av| 亚洲一区二区欧美| 成人免费观看视频| 精品1区2区在线观看| 亚洲aaa精品| 99国产精品视频免费观看| 久久日一线二线三线suv| 丝袜美腿亚洲一区二区图片| 色综合久久久久综合体| 国产欧美一区二区在线| 久久国产精品露脸对白| 欧美日本精品一区二区三区| 亚洲精品一二三四区| 成人激情电影免费在线观看| 欧美刺激脚交jootjob| 日韩精品福利网| 欧美日韩国产经典色站一区二区三区| 国产精品无遮挡| 国v精品久久久网| 久久久精品国产免大香伊| 琪琪久久久久日韩精品| 欧美日韩国产经典色站一区二区三区| 亚洲人成亚洲人成在线观看图片 | 成人自拍视频在线观看| www日韩大片| 免费的国产精品| 欧美剧情片在线观看| 亚洲va在线va天堂| 欧美美女一区二区| 视频一区二区三区在线| 欧美精选一区二区| 日本亚洲免费观看| 久久久另类综合| 丁香桃色午夜亚洲一区二区三区| 久久久美女毛片|