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

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

?? textlist.java.svn-base

?? 類似QQ的功能
?? SVN-BASE
?? 第 1 頁 / 共 2 頁
字號:
	public void selectFirstTextIndex()	{		int size = lines.size();		TextLine line;		for (int i = 0; i < size; i++)		{			line = getLine(i);			if (line.bigTextIndex == -1) continue;			setCurrentItem(i);			break;		}		line = null;	}		public String getTextByIndex(int offset, boolean wholeText, int textIndex)	{		StringBuffer result = new StringBuffer();				// Fills the lines		int size = lines.size();		TextLine line;		for (int i = 0; i < size; i++)		{			line = getLine(i);			if (wholeText || (textIndex == -1) || (line.bigTextIndex == textIndex))			{				line.readText(result);				if (line.last_charaster != '\0')				{					if (line.last_charaster == '\n') result.append("\n");					else result.append(line.last_charaster);				}			}		}		line = null;				if (result.length() == 0) return null;		String resultText = result.toString();		int len = resultText.length();		if (offset > len) return null;		return resultText.substring(offset, len);	}		public void selectTextByIndex(int textIndex)	{		if (textIndex == -1) return;		int size = lines.size();		for (int i = 0; i < size; i++)		{			if (getLine(i).bigTextIndex == textIndex)			{				setCurrentItem(i);				break;			}		}	}	// Returns lines of text which were added by 	// methon addBigText in current selection	public String getCurrText(int offset, boolean wholeText)	{		return getTextByIndex(offset, wholeText, getCurrTextIndex());	}	public int getCurrTextIndex()	{		int currItemIndex = getCurrIndex();		if ((currItemIndex < 0) || (currItemIndex >= lines.size())) return -1;		return getLine(currItemIndex).bigTextIndex;	}	public void setColors(int capTxt, int capbk, int bkgrnd, int cursor, int text, int crsFrame, int cursorAlpha, int menuAlpha)	{		if (getTextColor() != text)		{			Enumeration allLines = lines.elements();			while (allLines.hasMoreElements())				((TextLine) allLines.nextElement()).setItemColor(text);		}		super.setColors(capTxt, capbk, bkgrnd, cursor, text, crsFrame, cursorAlpha, menuAlpha);	}	public TextList doCRLF(int blockTextIndex)	{		if (lines.size() != 0) ((TextLine) lines.lastElement()).last_charaster = '\n';		TextLine newLine = new TextLine();		newLine.bigTextIndex = blockTextIndex;		lines.addElement(newLine);		return this;	}		public TextList addAniImage(Image[] image, byte[] imgNumsAndTimes, String altarnateText, int blockTextIndex)	{		if (lines.isEmpty()) lines.addElement(new TextLine());		TextLine textLine = (TextLine) lines.lastElement();		textLine.bigTextIndex = blockTextIndex;				if ((textLine.getWidth(getFontSize()) + image[0].getWidth()) > getTextAreaWidth())		{			doCRLF(blockTextIndex);			textLine = (TextLine) lines.lastElement();		}		TextItem newItem = new TextItem();		newItem.image = image;		newItem.imgNumsAndTimes = imgNumsAndTimes;		newItem.text = altarnateText;		textLine.add(newItem);				boolean lastAnimated = animated; 		animated |= (image.length > 1);		if (lastAnimated != animated) startAnimationTask();				return this;	}	public TextList addImage(Image image, String altarnateText, int blockTextIndex)	{		return addAniImage(new Image[] {image}, null, altarnateText, blockTextIndex);	}	public TextList insertAniImage(Image[] image, byte[] imgNumsAndTimes, String altarnateText, int blockTextIndex, int textLineIndex)	{		if (lines.isEmpty())		{			lines.addElement(new TextLine());			textLineIndex = 0;		}		else		{			lines.insertElementAt(new TextLine(), textLineIndex);		}		TextLine textLine = (TextLine) lines.elementAt(textLineIndex);		textLine.bigTextIndex = blockTextIndex;				if ((textLine.getWidth(getFontSize()) + image[0].getWidth()) > getTextAreaWidth())		{			doCRLF(blockTextIndex);			textLine = (TextLine) lines.lastElement();		}		TextItem newItem = new TextItem();		newItem.image = image;		newItem.imgNumsAndTimes = imgNumsAndTimes;		newItem.text = altarnateText;		textLine.add(newItem);				boolean lastAnimated = animated; 		animated |= (image.length > 1);		if (lastAnimated != animated) startAnimationTask();				return this;	}	public TextList insertImage(Image image, String altarnateText, int blockTextIndex, int textLineIndex)	{		return insertAniImage(new Image[] {image}, null, altarnateText, blockTextIndex, textLineIndex);	}	private int getTextAreaWidth()	{		return getWidthInternal() - scrollerWidth - borderWidth*2;	}	private static String replace(String text, String from, String to)	{		int fromSize = from.length();		int pos;		for (;;)		{			pos = text.indexOf(from);			if (pos == -1) break;			text = text.substring(0, pos) + to + text.substring(pos + fromSize, text.length());		}		return text;	}	private void addBigTextInternal(String text, int color, int fontStyle, int textIndex, int trueWidth)	{		Font font;		int textLen, curPos, lastWordEnd, startPos, width, testStringWidth = 0;		char curChar;		boolean lineBreak, wordEnd, textEnd, divideLineToWords;		String testString = null;				if (text == null)			return;				if (color == -1) color = getTextColor();		else if ((color&0xFF000000) != 0)		{			Integer indexedColor = (Integer)indexedColors.get(new Integer(color));			if (indexedColor != null) color = (0xFF000000&color)|indexedColor.intValue(); 		}				// Replace '\r\n' charasters with '\n'		text = replace(text, "\r\n", "\n");		// Replace '\r' charasters with '\n'		text = replace(text, "\r", "\n");		font = getQuickFont(fontStyle);		// Width of free space in last line 		width = lines.isEmpty() ? trueWidth : trueWidth - ((TextLine) lines.lastElement()).getWidth(getFontSize());		// Start pos of new line		startPos = 0;		// Pos of last word end		lastWordEnd = -1;		textLen = text.length();		String insString;		for (curPos = 0; curPos < textLen;)		{			curChar = text.charAt(curPos);			wordEnd = (curChar == ' ');			lineBreak = (curChar == '\n');			textEnd = (curPos == (textLen - 1));			divideLineToWords = false;			if (textEnd && (!lineBreak)) curPos++;			if (lineBreak || textEnd || wordEnd)			{				testString = text.substring(startPos, curPos);				testStringWidth = font.stringWidth(testString);			}			// simply add line			if ((lineBreak || textEnd) && (testStringWidth <= width))			{				internAdd(testString, color, -1, fontStyle, textIndex, lineBreak, lineBreak ? '\n' : ' ');				width = trueWidth;				curPos++;				startPos = curPos;				lastWordEnd = -1;				continue;			}			if ((lineBreak || textEnd || wordEnd) && (testStringWidth > width))			{				if ((testStringWidth < trueWidth) && (lastWordEnd != -1))				{					divideLineToWords = true;				}				// Insert new line and try again				else if ((trueWidth != width) && (lastWordEnd == -1))				{					doCRLF(textIndex);					curPos = startPos;					width = trueWidth;					lastWordEnd = -1;					continue;				}			}			if ((lineBreak || textEnd || wordEnd) && (testStringWidth > trueWidth) && (!divideLineToWords))			{				// divide big word to several lines				if (lastWordEnd == -1)				{					for (; curPos >= 1; curPos--)					{						testString = text.substring(startPos, curPos);						if (font.stringWidth(testString) <= width) break;					}					internAdd(testString, color, -1, fontStyle, textIndex, true, '\0');					width = trueWidth;					startPos = curPos;					lastWordEnd = -1;					continue;				}				// several words in line				else				{					divideLineToWords = true;				}			}			if (divideLineToWords)			{				insString = text.substring(startPos, lastWordEnd);				internAdd(insString, color, -1, fontStyle, textIndex, true, ' ');				curPos = lastWordEnd + 1;				startPos = curPos;				width = trueWidth;				lastWordEnd = -1;				continue;			}			if (wordEnd) lastWordEnd = curPos;			curPos++;		}	}	//! Add big multiline text. 	/*! Text visial width can be larger then screen width.	 Method addBigText automatically divides text to short lines 	 and adds lines to text list */	public TextList addBigText(String text, //!< Text to add		int color, //!< Text color		int fontStyle, //!< Text font style. See MID profile for details		int textIndex //!< Whole text index	)	{		addBigTextInternal(text, color, fontStyle, textIndex, getTextAreaWidth());		invalidate();		return this;	}		public boolean replaceImages(int textIndex, Image from, Image to)	{		boolean replaced = false;		TextLine textLine;		for (int i = getSize()-1; i >= 0; i--)		{			textLine = (TextLine) lines.elementAt(i);			if (textLine.bigTextIndex != textIndex) continue;			replaced |= textLine.replaceImages(from, to);		}		textLine = null;		return replaced;	}	// TODO: full rewrite code below!	static public int getLineNumbers(String s, int width, int fontSize, int fontStyle, int textColor)	{		TextList paintList = new TextList(null);		paintList.setFontSize(fontSize);		paintList.addBigTextInternal(s, textColor, fontStyle, -1, width);		return (paintList.getSize());	}	static public void showText(Graphics g, String s, int x, int y, int width, int height, int fontSize, int fontStyle, int textColor)	{		TextList paintList = new TextList(null);		paintList.setFontSize(fontSize);		paintList.addBigTextInternal(s, textColor, fontStyle, -1, width);		int line, textHeight = 0;		int linesCount = paintList.getSize();		for (line = 0; line < linesCount; line++)			textHeight += paintList.getLine(line).getHeight(fontSize);		int top = y + (height - textHeight) / 2;		for (line = 0; line < linesCount; line++)		{			paintList.getLine(line).paint(x, top, g, fontSize, paintList, false);			top += paintList.getLine(line).getHeight(fontSize);		}	}		protected void onShow() 	{		if (animated)		{			startAnimationTask();		}		else if (!animated && (aniTimerTask != null))		{			aniTimerTask.cancel();			aniTimerTask = null;		}	}		public void run()	{		int menuBarHeight;//#sijapp cond.if target="RIM" | target="DEFAULT"#		menuBarHeight = 0;//#sijapp cond.else#				menuBarHeight = getMenuBarHeight();//#sijapp cond.end#				drawItems(null, getCapHeight(), menuBarHeight, DMS_CUSTOM, -1, -1, -1, -1);	}		protected void onHide() 	{		resetAnimationTask();	}		private void startAnimationTask()	{		if (aniTimerTask != null) aniTimerTask.cancel();				aniTimerTask = new TimerTask() 		{			public void run()			{				getDisplay().callSerially(TextList.this);			}		};				aniTimer.schedule(aniTimerTask, 100, 100);				//System.out.println("startAnimationTask");	}		private void resetAnimationTask()	{		if (aniTimerTask != null)		{			aniTimerTask.cancel();			aniTimerTask = null;			//System.out.println("resetAnimationTask");		}	}		public void addTextItem(String string, Image image, int index, int fontStyle)	{		if (fontStyle == -1) fontStyle = Font.STYLE_PLAIN;		if (image != null)		{			addImage(image, null, index);			addBigText(" ", getTextColor(), fontStyle, index);		}		addBigText(string, getTextColor(), fontStyle, index);		doCRLF(index);	}		public int getLastTextIndex()	{		int size = getSize();		if (size == 0) return -1;		return getLine(size-1).bigTextIndex; 	}		public void setIndexedColor(int color, int value)	{		Integer colorInt = new Integer(color);		Integer lastValueInt = (Integer)indexedColors.get(colorInt);		int lastValue = (lastValueInt == null) ? -1 : lastValueInt.intValue();		if (value != lastValue)		{			for (int i = getSize()-1; i >= 0; i--) getLine(i).setIndexedColor(color, value);			indexedColors.put(colorInt, new Integer(value));		}	}	}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品影视在线观看| 欧美精品一区二区三区久久久| 欧美一区欧美二区| 亚洲综合在线五月| 免费成人av资源网| 91亚洲精品久久久蜜桃| 国产三级欧美三级| 九一久久久久久| 91精品国产综合久久久久久| 亚洲摸摸操操av| 加勒比av一区二区| 日韩免费看的电影| 激情五月播播久久久精品| 欧美一级日韩免费不卡| 亚洲1区2区3区视频| 欧美日韩亚洲高清一区二区| 亚洲精品成人少妇| 欧美午夜免费电影| 日韩高清不卡一区二区三区| 欧美日韩国产一区| 日韩高清一区在线| 26uuu成人网一区二区三区| 国产精品一区二区三区乱码| 欧美美女激情18p| 久久激情综合网| 国产色一区二区| 色八戒一区二区三区| 亚洲精品国产精品乱码不99| 在线亚洲+欧美+日本专区| 亚洲一区二区精品3399| 精品视频在线视频| 国产在线麻豆精品观看| 国产视频一区在线观看| 国产高清久久久| 亚洲一区中文日韩| 精品久久久久久亚洲综合网| 97久久精品人人做人人爽50路| 一区二区在线观看不卡| 欧美三级电影一区| 国产一区二区免费看| 亚洲一区二区三区四区在线观看 | 亚洲美女偷拍久久| 一本一道综合狠狠老| 久久不见久久见免费视频1 | 国产成人亚洲综合a∨婷婷图片| 中文字幕av一区二区三区| 欧美日本一区二区| 99视频精品在线| 国产美女精品人人做人人爽| 亚洲va中文字幕| 亚洲久草在线视频| 2022国产精品视频| 日韩一区二区三区av| 日本高清成人免费播放| 国产精品996| 国产一区三区三区| 免费人成精品欧美精品| 蜜桃视频一区二区| 精品亚洲porn| 岛国一区二区三区| 色综合天天天天做夜夜夜夜做| 99riav久久精品riav| av不卡一区二区三区| 波多野结衣中文字幕一区二区三区| 国产在线不卡一区| proumb性欧美在线观看| 欧美怡红院视频| 日韩一区二区三区四区| 欧美日本国产视频| 亚洲欧美影音先锋| 国产精品一品视频| 中国色在线观看另类| 久久久久高清精品| 五月婷婷欧美视频| 处破女av一区二区| 91精品国产综合久久久久| 国产视频911| 日本不卡视频一二三区| 成人av集中营| 精品va天堂亚洲国产| 怡红院av一区二区三区| 国产精品一区二区三区99| 色丁香久综合在线久综合在线观看| 日韩精品专区在线影院重磅| 亚洲色图视频网站| 国内精品视频666| 91 com成人网| 亚洲成av人片| 欧美日韩亚洲综合在线| 国产精品国产a级| 国产精品中文有码| 日韩欧美在线影院| 午夜电影一区二区三区| 成人动漫一区二区三区| 久久众筹精品私拍模特| 另类综合日韩欧美亚洲| 91蜜桃在线观看| 一区二区三区欧美日| www.亚洲免费av| 专区另类欧美日韩| 成人毛片视频在线观看| 国产精品国模大尺度视频| 国产成人在线视频免费播放| www亚洲一区| 久久疯狂做爰流白浆xx| 欧美成人aa大片| 久久er精品视频| 久久精品日产第一区二区三区高清版 | 亚洲色大成网站www久久九九| 国产大陆精品国产| 国产精品女主播av| 色88888久久久久久影院按摩| 成人免费小视频| 欧美日韩高清影院| 蜜臀久久99精品久久久久宅男| 精品国产青草久久久久福利| 狠狠色狠狠色综合日日91app| 久久亚洲影视婷婷| 在线一区二区三区四区| 亚洲成人中文在线| 国产欧美一区二区精品婷婷| caoporen国产精品视频| 亚洲国产人成综合网站| 欧美一区二区三区影视| 成人综合在线网站| 亚洲成人自拍偷拍| 国产网站一区二区三区| 欧美最猛黑人xxxxx猛交| 免费的国产精品| 一区二区在线观看视频| 久久人人爽人人爽| 欧美一区二区三区公司| 99re免费视频精品全部| 蜜臀av一区二区| 亚洲国产一区视频| 国产日产欧美一区二区视频| 91福利资源站| 成人免费观看男女羞羞视频| 毛片av一区二区三区| 国产精品高清亚洲| 国产欧美日韩视频一区二区| 91精品综合久久久久久| 91久久国产综合久久| 91网址在线看| 成人av资源在线| 国产福利精品一区| 国产suv精品一区二区6| 日韩高清一级片| 天堂久久一区二区三区| 亚洲综合在线电影| 亚洲午夜私人影院| 三级久久三级久久| 午夜av区久久| 美女视频网站久久| 久久机这里只有精品| 久久精品国产亚洲高清剧情介绍| 午夜精品在线视频一区| 蜜臀精品久久久久久蜜臀| 偷拍亚洲欧洲综合| 美脚の诱脚舐め脚责91 | 91在线视频播放| 97精品国产露脸对白| 9色porny自拍视频一区二区| 国产69精品一区二区亚洲孕妇| 精品一区二区三区在线观看国产| 九色|91porny| 国产精品资源在线看| 精品在线观看视频| 国产精品2024| 色美美综合视频| 欧美一区二区网站| 亚洲精品一区二区三区福利 | 日韩色在线观看| 欧美国产日韩a欧美在线观看| 亚洲免费观看高清完整版在线观看熊| 一区二区三区日韩欧美| 九色综合狠狠综合久久| 日本黄色一区二区| 欧美色精品在线视频| 8x福利精品第一导航| 久久亚洲一区二区三区明星换脸| 欧美日韩精品综合在线| 日韩欧美高清在线| 中文字幕第一页久久| 亚洲一二三专区| 国产成人免费9x9x人网站视频| 在线观看成人免费视频| 国产免费观看久久| 久草中文综合在线| 欧美日韩视频一区二区| 国产精品久久福利| 成人听书哪个软件好| 久久精品一二三| 精品在线一区二区| 欧美一级欧美一级在线播放| 一级中文字幕一区二区| youjizz久久| 中文字幕在线一区免费| 国产不卡视频在线观看| 精品入口麻豆88视频|