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

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

?? rectangthread.java

?? 這是我自己寫的一個(gè)小的JAVA實(shí)現(xiàn)的俄羅斯方塊
?? JAVA
字號(hào):
package net.rectang;import java.awt.Graphics;import java.awt.event.KeyEvent;import java.awt.event.KeyListener;import javax.swing.JPanel;public class RectangThread extends Thread implements KeyListener{	public static final int SIZE = 10;	private int windowWidth = 0;	private int windowHeight = 0;	private IndexLocation indexLocation = null;	private Rectangle rectangle = null;	private Index startIndex = null;	private Graphics graphics = null;	private JPanel workPanel = null;	private boolean flag = true;		public static final int MOVE_RIGHT = 1;	public static final int MOVE_LEFT = 2;	public static final int MOVE_DOWN = 3;	public static final int CHANGE = 4;	public static final int NATURE_DOWN = 5;	private int derector = NATURE_DOWN;		public RectangThread(Index startIndex, JPanel workPanel) {		super();		this.startIndex = startIndex;		this.workPanel = workPanel;		this.flag = true;			}	@Override	public void run() {		graphics = workPanel.getGraphics();		windowWidth = workPanel.getWidth();		windowHeight = workPanel.getHeight();		rectangle = new Rectangle();		indexLocation = rectangle.getAllLocation();		workPanel.setFocusable(true);				while(flag){			synchronized (graphics) {						clearRectang(indexLocation);				move(derector, indexLocation);				drawRectang(indexLocation);				try {					sleep(400);				} catch (InterruptedException e) {					e.printStackTrace();				}			}		}		try {			join();		} catch (InterruptedException e) {			e.printStackTrace();		}	}	private void clearRectang(IndexLocation indexLocation){		graphics.clearRect(indexLocation.getIndexOne().getLocationX(), indexLocation.getIndexOne().getLocationY(), SIZE, SIZE);		graphics.clearRect(indexLocation.getIndexTwo().getLocationX(), indexLocation.getIndexTwo().getLocationY(), SIZE, SIZE);		graphics.clearRect(indexLocation.getIndexThree().getLocationX(), indexLocation.getIndexThree().getLocationY(), SIZE, SIZE);		graphics.clearRect(indexLocation.getIndexFour().getLocationX(), indexLocation.getIndexFour().getLocationY(), SIZE, SIZE);		}	private void drawRectang(IndexLocation indexLocation){		graphics.fillRect(indexLocation.getIndexOne().getLocationX(), indexLocation.getIndexOne().getLocationY(), SIZE, SIZE);		graphics.fillRect(indexLocation.getIndexTwo().getLocationX(), indexLocation.getIndexTwo().getLocationY(), SIZE, SIZE);		graphics.fillRect(indexLocation.getIndexThree().getLocationX(), indexLocation.getIndexThree().getLocationY(), SIZE, SIZE);		graphics.fillRect(indexLocation.getIndexFour().getLocationX(), indexLocation.getIndexFour().getLocationY(), SIZE, SIZE);		}	public void move(int derector, IndexLocation indexLocation) {		if(derector == RectangThread.MOVE_RIGHT){			indexLocation.getIndexOne().setLocationX(indexLocation.getIndexOne().getLocationX() + SIZE);			indexLocation.getIndexTwo().setLocationX(indexLocation.getIndexTwo().getLocationX() + SIZE);			indexLocation.getIndexThree().setLocationX(indexLocation.getIndexThree().getLocationX() + SIZE);			indexLocation.getIndexFour().setLocationX(indexLocation.getIndexFour().getLocationX() + SIZE);		}else if(derector == RectangThread.MOVE_LEFT){			indexLocation.getIndexOne().setLocationX(indexLocation.getIndexOne().getLocationX() - SIZE);			indexLocation.getIndexTwo().setLocationX(indexLocation.getIndexTwo().getLocationX() - SIZE);			indexLocation.getIndexThree().setLocationX(indexLocation.getIndexThree().getLocationX() - SIZE);			indexLocation.getIndexFour().setLocationX(indexLocation.getIndexFour().getLocationX() - SIZE);		}else if(derector == RectangThread.MOVE_DOWN){					}else if(derector == RectangThread.CHANGE){					}	else if(derector == RectangThread.NATURE_DOWN){			indexLocation.getIndexOne().setLocationY(indexLocation.getIndexOne().getLocationY() + SIZE);			indexLocation.getIndexTwo().setLocationY(indexLocation.getIndexTwo().getLocationY() + SIZE);			indexLocation.getIndexThree().setLocationY(indexLocation.getIndexThree().getLocationY() + SIZE);			indexLocation.getIndexFour().setLocationY(indexLocation.getIndexFour().getLocationY() + SIZE);		}	}		public boolean isFlag() {		return flag;	}	public void setFlag(boolean flag) {		this.flag = flag;	}	public int getWindowWidth() {		return windowWidth;	}	public void setWindowWidth(int windowWidth) {		this.windowWidth = windowWidth;	}	public int getWindowHeight() {		return windowHeight;	}	public void setWindowHeight(int windowHeight) {		this.windowHeight = windowHeight;	}	public IndexLocation getIndexLocation() {		return indexLocation;	}	public void setIndexLocation(IndexLocation indexLocation) {		this.indexLocation = indexLocation;	}	public Rectangle getRectangle() {		return rectangle;	}	public void setRectangle(Rectangle rectangle) {		this.rectangle = rectangle;	}	public Index getStartIndex() {		return startIndex;	}	public void setStartIndex(Index startIndex) {		this.startIndex = startIndex;	}	public Graphics getGraphics() {		return graphics;	}	public void setGraphics(Graphics graphics) {		this.graphics = graphics;	}	public JPanel getWorkPanel() {		return workPanel;	}	public void setWorkPanel(JPanel workPanel) {		this.workPanel = workPanel;	}	public void keyPressed(KeyEvent e) {		if(e.getKeyCode() == KeyEvent.VK_RIGHT){			derector = MOVE_RIGHT;		}else if(e.getKeyCode() == KeyEvent.VK_LEFT){			derector = MOVE_LEFT;		}else if(e.getKeyCode() == KeyEvent.VK_DOWN){			derector = MOVE_DOWN;		}else if(e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_ALT){			derector = CHANGE;		}else{			derector = NATURE_DOWN;		}	}	public void keyReleased(KeyEvent e) {			}	public void keyTyped(KeyEvent e) {			}}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人亚洲精品狼色在线| 不卡视频在线观看| 国产精品久久久一本精品| 欧美视频完全免费看| 国产毛片一区二区| 午夜精品久久久久影视| 亚洲欧美一区二区在线观看| 欧美白人最猛性xxxxx69交| 国产精品欧美一级免费| 678五月天丁香亚洲综合网| 大桥未久av一区二区三区中文| 日韩专区在线视频| 亚洲欧美日韩一区二区三区在线观看| 久久中文字幕电影| 这里只有精品电影| 欧美日韩一区二区三区免费看| 成人午夜精品一区二区三区| 久久国产精品区| 性感美女极品91精品| 亚洲少妇中出一区| 欧美激情综合五月色丁香小说| 欧美一区二区精品| 欧美精品在线一区二区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美少妇xxx| 国产**成人网毛片九色| 精品一区二区三区在线观看| 性做久久久久久久久| 亚洲一二三级电影| 一区二区三区免费在线观看| 成人免费在线播放视频| 国产免费成人在线视频| 国产亚洲一区字幕| 久久这里只有精品6| 精品国产凹凸成av人网站| 日韩欧美国产一区二区三区 | 在线观看不卡一区| 日本电影欧美片| 色屁屁一区二区| 日本精品免费观看高清观看| 91美女精品福利| 91欧美激情一区二区三区成人| caoporm超碰国产精品| 成人h动漫精品| 波多野结衣一区二区三区| eeuss鲁片一区二区三区| 99久久精品一区| 91黄色免费看| 欧美主播一区二区三区| 欧美剧情电影在线观看完整版免费励志电影 | 色欧美日韩亚洲| 欧美在线三级电影| 7777精品伊人久久久大香线蕉最新版| 欧美日韩1234| 欧美不卡视频一区| 国产精品午夜在线观看| 亚洲视频资源在线| 亚洲电影第三页| 久久精品国产精品青草| 国产乱码精品1区2区3区| 成人免费视频一区二区| 色哟哟精品一区| 4438x成人网最大色成网站| 日韩欧美一级精品久久| 亚洲国产成人在线| 夜夜爽夜夜爽精品视频| 麻豆一区二区三区| 不卡的av电影| 欧美日韩国产经典色站一区二区三区| 欧美一区二区三区公司| 国产日韩欧美一区二区三区乱码| 国产精品久久精品日日| 丝袜美腿成人在线| 国产精品1区二区.| 欧美亚洲国产怡红院影院| 日韩美女在线视频| 自拍偷拍欧美精品| 青青草成人在线观看| 大尺度一区二区| 欧美色综合久久| 久久精品夜色噜噜亚洲a∨| 亚洲天堂免费在线观看视频| 日韩国产精品久久| 成人av电影免费在线播放| 欧美精品乱码久久久久久按摩| 久久综合色综合88| 亚洲最新视频在线播放| 国产在线看一区| 欧美在线啊v一区| 久久精品夜色噜噜亚洲aⅴ| 亚洲一区二区三区四区在线免费观看| 精品无码三级在线观看视频| 色综合久久中文字幕| 精品99一区二区三区| 亚洲一区二区三区美女| 国产乱人伦精品一区二区在线观看| 色噜噜狠狠成人网p站| xfplay精品久久| 亚洲电影第三页| 99久久99久久久精品齐齐| 精品免费一区二区三区| 亚洲午夜一区二区| 99久久99久久精品国产片果冻| 91精品婷婷国产综合久久性色| 亚洲天堂福利av| 国产美女娇喘av呻吟久久| 91麻豆精品国产91久久久| 亚洲美女淫视频| 成人毛片视频在线观看| 亚洲精品一区二区三区99| 婷婷成人综合网| 欧美在线观看视频在线| 国产精品国产三级国产普通话99| 狠狠v欧美v日韩v亚洲ⅴ| 91麻豆精品国产自产在线| 一区二区三区免费网站| 91在线高清观看| 麻豆一区二区在线| 欧美久久久久中文字幕| 亚洲综合无码一区二区| 99久久精品99国产精品| 亚洲国产精华液网站w | 国产专区欧美精品| 欧美一区二区三区影视| 午夜日韩在线电影| 欧美日韩综合一区| 亚洲免费av观看| 91蝌蚪porny九色| 亚洲女人****多毛耸耸8| 99久久婷婷国产综合精品电影| 欧美—级在线免费片| 国产成人免费av在线| 国产香蕉久久精品综合网| 国产原创一区二区| 久久亚洲一级片| 国产成人亚洲综合色影视| 久久久久久毛片| 国产jizzjizz一区二区| 国产精品女人毛片| 99精品视频在线观看免费| 亚洲视频免费在线| 欧美私人免费视频| 爽爽淫人综合网网站| 这里只有精品免费| 狠狠色丁香婷婷综合| 久久久国产一区二区三区四区小说| 国产一区二区精品久久| 久久精品欧美一区二区三区麻豆| 国产成人在线视频播放| 日韩毛片高清在线播放| 在线亚洲一区观看| 日韩和欧美一区二区| 日韩精品综合一本久道在线视频| 国内国产精品久久| 日本一区二区三区在线观看| av一本久道久久综合久久鬼色| 亚洲欧美视频一区| 欧美日韩dvd在线观看| 老汉av免费一区二区三区| 久久久夜色精品亚洲| eeuss鲁一区二区三区| 亚洲电影一级黄| 精品少妇一区二区三区日产乱码 | 欧美日韩专区在线| 蜜臀av一区二区在线免费观看| 亚洲精品一区二区三区福利| 成人黄色小视频在线观看| 亚洲午夜久久久久久久久电影院| 69精品人人人人| 成人理论电影网| 偷拍亚洲欧洲综合| 久久久青草青青国产亚洲免观| 91影视在线播放| 蜜桃视频一区二区| 欧美国产亚洲另类动漫| 欧美优质美女网站| 国产在线视视频有精品| 亚洲精选免费视频| 精品成a人在线观看| 91久久线看在观草草青青 | 国产乱人伦精品一区二区在线观看| 国产精品久久久久一区二区三区 | 亚洲欧洲日韩av| 欧美一二三区在线| 99综合电影在线视频| 裸体健美xxxx欧美裸体表演| 国产精品国产自产拍高清av| 欧美精品1区2区3区| 国产成人免费在线视频| 亚洲图片欧美一区| 亚洲国产精品成人综合 | 极品少妇一区二区三区精品视频| 亚洲欧洲精品一区二区三区| 日韩欧美一区二区不卡| 一本到不卡免费一区二区| 国产一区二区三区免费播放| 亚洲国产精品久久一线不卡| 中文欧美字幕免费| 精品免费视频.| 欧美一区永久视频免费观看|