Java糞?強鮫幟忖嬉咫
扮寂:2011-03-24 cping
壓?旗?溥虹勧由議氏三圭塀?載謹議夕侘鴻御賜嗄老寡喘阻[ 幟忖嬉咫]議丼惚栖婢幣猟忖?輝隼?宸劔恂議朕議涙掲頁葎阻融 竃坪否賜簾哈凛白。
徽頁宸嶽糞?圭塀抜頁峙誼処授議?參和?厘公竃匯倖JAVA糞 ?議酒汽喘箭?俶勣宀辛參徭佩制割。
旗鷹糞??
package org.test;
import java.awt.Color;
import java.awt.Font;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Panel;
import java.awt.image.BufferedImage;
import org.loon.framework.game.helper.ImageHelper;
/** *//**
* <p>
* Title: LoonFramework
* </p>
* <p>
* Description:JAVA糞?斤三幟忖嬉咫?喇Loonframework戻工 ?
* </p>
* <p>
* Copyright: Copyright (c) 2007
* </p>
* <p>
* Company: LoonFramework
* </p>
*
* @author chenpeng
* @email?ceponline@yahoo.com.cn
* @version 0.1
*/
public final class WriterType extends Panel implements Runnable {
// 恷寄斤三方
private int _MAX_COUNT = 10;
//寂侯炎芝
private char _flag=''|'';
private Image _screen;
private Graphics _bg;
private Thread _L_WriterType;
private static Color _L_fClr;
private static Color _L_bClr;
private static String _M_Text[];
private int _S_COUNT;
private Font _L_TTF;
private int _L_Speed;
private int _L_Delay;
private String _C_Text[];
private static int _L_COUNT;
private static int _F_COUNT;
private static int _T_COUNT;
private static int _N_Text;
private String _FontName;
private final static int _WIDTH = 500;
private final static int _HEIGHT = 375;
private static int _FontStyle;
private static int _FontSize;
private static Image _back = null;
/** *//**
*
*/
private static final long serialVersionUID = 1L;
private boolean _isRun;
/** *//**
* 裂更痕方,廣秘嘘尚夕,儉桟?幣議猟忖方怏,堀業, 决岳
* @param img
* @param strContent
* @param speed
* @param delay
*/
public WriterType(Image img,String[] strContent, int speed, int delay) {
init(img,strContent, speed, delay);
}
private WriterType() {
}
public void init(Image img,String[] strContent, int speed, int delay) {
//兜兵嘘尚弼
setBackground(Color.BLACK);
// 圻兵斤三佚連
_M_Text = new String[_MAX_COUNT];
// 産贋斤三佚連
_C_Text = new String[_MAX_COUNT];
_back=img;
_FontName = "卜悶";
_FontStyle = 0;
_FontSize = 15;
_L_TTF = new Font(_FontName, _FontStyle, _FontSize);
_L_bClr = Color.BLACK;
_L_fClr = new Color(250, 250, 250);
int length = strContent.lengt
|