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

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

?? ctabitem.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
		gc.drawText(shortenedText, xDraw, textY, FLAGS);		gc.setFont(gcFont);				// draw a Focus rectangle		if (parent.isFocusControl()) {			Display display = getDisplay();			if (parent.simple || parent.single) {				gc.setBackground(display.getSystemColor(SWT.COLOR_BLACK));				gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE));				gc.drawFocus(xDraw-1, textY-1, extent.x+2, extent.y+2);			} else {				gc.setForeground(display.getSystemColor(CTabFolder.BUTTON_BORDER));				gc.drawLine(xDraw, textY+extent.y+1, xDraw+extent.x+1, textY+extent.y+1);			}		}	}	if (parent.showClose || showClose) drawClose(gc);}void drawUnselected(GC gc) {	// Do not draw partial items	if (!isShowing()) return;		Rectangle clipping = gc.getClipping();	Rectangle bounds = getBounds();	if (!clipping.intersects(bounds)) return;		// draw border	if (parent.indexOf(this) != parent.selectedIndex - 1) {		gc.setForeground(CTabFolder.borderColor);		gc.drawLine(x + width - 1, y, x + width - 1, y + height);	}	// draw Image	int xDraw = x + LEFT_MARGIN;	Image image = getImage();	if (image != null && parent.showUnselectedImage) {		Rectangle imageBounds = image.getBounds();		// only draw image if it won't overlap with close button		int maxImageWidth = x + width - xDraw - RIGHT_MARGIN;		if (parent.showUnselectedClose && (parent.showClose || showClose)) {			maxImageWidth -= closeRect.width + INTERNAL_SPACING;		}		if (imageBounds.width < maxImageWidth) {					int imageX = xDraw;			int imageHeight = imageBounds.height;			int imageY = y + (height - imageHeight) / 2;			imageY += parent.onBottom ? -1 : 1;			int imageWidth = imageBounds.width * imageHeight / imageBounds.height;			gc.drawImage(image, 				         imageBounds.x, imageBounds.y, imageBounds.width, imageBounds.height,				         imageX, imageY, imageWidth, imageHeight);			xDraw += imageWidth + INTERNAL_SPACING;		}	}	// draw Text	int textWidth = x + width - xDraw - RIGHT_MARGIN;	if (parent.showUnselectedClose && (parent.showClose || showClose)) {		textWidth -= closeRect.width + INTERNAL_SPACING;	}	if (textWidth > 0) {		Font gcFont = gc.getFont();		gc.setFont(font == null ? parent.getFont() : font);		if (shortenedText == null || shortenedTextWidth != textWidth) {			shortenedText = shortenText(gc, getText(), textWidth);			shortenedTextWidth = textWidth;		}			Point extent = gc.textExtent(shortenedText, FLAGS);		int textY = y + (height - extent.y) / 2;		textY += parent.onBottom ? -1 : 1;		gc.setForeground(parent.getForeground());		gc.drawText(shortenedText, xDraw, textY, FLAGS);		gc.setFont(gcFont);	}	// draw close	if (parent.showUnselectedClose && (parent.showClose || showClose)) drawClose(gc);}/** * Returns a rectangle describing the receiver's size and location * relative to its parent. * * @return the receiver's bounding column rectangle * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public Rectangle getBounds () {	//checkWidget();	int w = width;	if (!parent.simple && !parent.single && parent.indexOf(this) == parent.selectedIndex) w += parent.curveWidth - parent.curveIndent;	return new Rectangle(x, y, w, height);}/*** Gets the control that is displayed in the content are of the tab item.** @return the control** @exception SWTException <ul>*    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>*    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>* </ul>*/public Control getControl () {	checkWidget();	return control;}/** * Get the image displayed in the tab if the tab is disabled. *  * @return the disabled image or null *  * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> *  * @deprecated the disabled image is not used */public Image getDisabledImage(){	checkWidget();	return disabledImage;}/** * Returns the font that the receiver will use to paint textual information. * * @return the receiver's font * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> *  *  @since 3.0 */public Font getFont() {	checkWidget();	if (font != null) return font;	return parent.getFont();}/** * Returns the receiver's parent, which must be a <code>CTabFolder</code>. * * @return the receiver's parent *  * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public CTabFolder getParent () {	//checkWidget();	return parent;}/** * Returns the receiver's tool tip text, or null if it has * not been set. * * @return the receiver's tool tip text * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public String getToolTipText () {	checkWidget();	if (toolTipText == null && shortenedText != null) {		String text = getText();		if (!shortenedText.equals(text)) return text;	}	return toolTipText;}/*** Returns <code>true</code> if the item will be rendered in the visible area of the CTabFolder. Returns false otherwise.* *  @return <code>true</code> if the item will be rendered in the visible area of the CTabFolder. Returns false otherwise.* *  @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @since 3.0*/public boolean isShowing () {	checkWidget();	int index = parent.indexOf(this);	int rightEdge = parent.getRightItemEdge();	if (parent.single) {		if (index == parent.selectedIndex) {			return x <= rightEdge;		}		return false;	}	if (index < parent.firstIndex) return false;	if (parent.firstIndex == index) {		return x <= rightEdge;	}	int extra = parent.simple || index != parent.selectedIndex ? 0 : parent.curveWidth - 2*parent.curveIndent;	return x + width + extra <= rightEdge;}void onPaint(GC gc, boolean isSelected) {	if (width == 0 || height == 0) return;	if (isSelected) {		drawSelected(gc);	} else {		drawUnselected(gc);	}}int preferredHeight(GC gc) {	Image image = getImage();	int h = (image == null) ? 0 : image.getBounds().height;	String text = getText();	if (font == null) {		h = Math.max(h, gc.textExtent(text, FLAGS).y);	} else {		Font gcFont = gc.getFont();		gc.setFont(font);		h = Math.max(h, gc.textExtent(text, FLAGS).y);		gc.setFont(gcFont);	}	return h + TOP_MARGIN + BOTTOM_MARGIN;}int preferredWidth(GC gc, boolean isSelected, boolean minimum) {	// NOTE: preferred width does not include the "dead space" caused	// by the curve.	if (isDisposed()) return 0;	int w = 0;	Image image = getImage();	if (image != null && (isSelected || parent.showUnselectedImage)) {		w += image.getBounds().width;	}	String text = null;	if (minimum) {		int minChars = parent.minChars;		text = minChars == 0 ? null : getText();		if (text != null && text.length() > minChars) {			int end = minChars < ELLIPSIS.length() + 1 ? minChars : minChars - ELLIPSIS.length();			text = text.substring(0, end);			if (minChars > ELLIPSIS.length() + 1) text += ELLIPSIS;		}	} else {		text = getText();	}	if (text != null) {		if (w > 0) w += INTERNAL_SPACING;		if (font == null) {			w += gc.textExtent(text, FLAGS).x;		} else {			Font gcFont = gc.getFont();			gc.setFont(font);			w += gc.textExtent(text, FLAGS).x;			gc.setFont(gcFont);		}	}	if (parent.showClose || showClose) {		if (isSelected || parent.showUnselectedClose) {			if (w > 0) w += INTERNAL_SPACING;			w += CTabFolder.BUTTON_SIZE;		}	}	return w + LEFT_MARGIN + RIGHT_MARGIN;}/** * Sets the control that is used to fill the client area of * the tab folder when the user selects the tab item. * * @param control the new control (or null) * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the control has been disposed</li>  *    <li>ERROR_INVALID_PARENT - if the control is not in the same widget tree</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setControl (Control control) {	checkWidget();	if (control != null) {		if (control.isDisposed()) SWT.error (SWT.ERROR_INVALID_ARGUMENT);		if (control.getParent() != parent) SWT.error (SWT.ERROR_INVALID_PARENT);	}	if (this.control != null && !this.control.isDisposed()) {		this.control.setVisible(false);	}	this.control = control;	if (this.control != null) {		int index = parent.indexOf (this);		if (index == parent.getSelectionIndex ()){			this.control.setBounds(parent.getClientArea ());			this.control.setVisible(true);		} else {			this.control.setVisible(false);		}	}}/** * Sets the image that is displayed if the tab item is disabled. * Null will clear the image. *  * @param image the image to be displayed when the item is disabled or null * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> *  * @deprecated This image is not used */public void setDisabledImage (Image image) {	checkWidget();	if (image != null && image.isDisposed ()) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}	this.disabledImage = image;}/** * Sets the font that the receiver will use to paint textual information * for this item to the font specified by the argument, or to the default font * for that kind of control if the argument is null. * * @param font the new font (or null) * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the argument has been disposed</li>  * </ul> * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> *  * @since 3.0 */public void setFont (Font font){	checkWidget();	if (font != null && font.isDisposed ()) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}	if (font == null && this.font == null) return;	if (font != null && font.equals(this.font)) return;	this.font = font;	if (!parent.updateTabHeight(false)) {		parent.updateItems();		parent.redraw();	}}public void setImage (Image image) {	checkWidget();	if (image != null && image.isDisposed ()) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}	Image oldImage = getImage();	if (image == null && oldImage == null) return;	if (image != null && image.equals(oldImage)) return;	super.setImage(image);	if (!parent.updateTabHeight(false)) {		parent.updateItems();	}	parent.redraw();}public void setText (String string) {	checkWidget();	if (string == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);	if (string.equals(getText())) return;	super.setText(string);	shortenedText = null;	shortenedTextWidth = 0;	parent.updateItems();	parent.redraw();}/** * Sets the receiver's tool tip text to the argument, which * may be null indicating that no tool tip text should be shown. * * @param string the new tool tip text (or null) * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setToolTipText (String string) {	checkWidget();	toolTipText = string;}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本精品一区二区三区高清| 国产精品一区在线观看乱码| 麻豆免费精品视频| 丁香啪啪综合成人亚洲小说| 欧美日韩国产精选| 中文字幕+乱码+中文字幕一区| 亚洲国产成人高清精品| 成人免费毛片嘿嘿连载视频| 91精品午夜视频| 一区二区三区日韩在线观看| 国产乱理伦片在线观看夜一区| 欧美日韩高清影院| 国产精品久久一卡二卡| 国产资源精品在线观看| 欧美日韩色综合| 日韩一区有码在线| 国产成人在线电影| 日韩欧美国产午夜精品| 亚洲福利国产精品| 色菇凉天天综合网| 国产精品久久久久三级| 韩国精品一区二区| 日韩欧美卡一卡二| 日韩成人精品在线观看| 色噜噜狠狠色综合欧洲selulu| 中文字幕精品三区| 国产成人av一区二区三区在线| 日韩午夜激情av| 日韩av高清在线观看| 欧美性欧美巨大黑白大战| 亚洲精品国产a| 91国偷自产一区二区三区观看| 国产精品电影院| 成人av网站大全| 中国av一区二区三区| 国产成人在线视频网站| 久久久激情视频| 精品国产免费一区二区三区香蕉 | 91高清视频在线| 婷婷久久综合九色综合伊人色| 国产精品麻豆视频| 国产精品福利影院| 亚洲欧洲韩国日本视频| 亚洲国产精品ⅴa在线观看| 欧美大胆一级视频| 欧美激情综合五月色丁香| 制服丝袜亚洲色图| 国产精品夫妻自拍| 色综合婷婷久久| 亚洲电影一级黄| 日韩欧美国产一区二区在线播放| 久久99精品国产.久久久久久| 久久综合九色综合97婷婷女人 | 婷婷开心久久网| 欧美精品三级在线观看| 国内精品第一页| 亚洲特黄一级片| 欧美日产在线观看| 韩国成人福利片在线播放| 亚洲国产精品99久久久久久久久 | 自拍偷拍国产精品| 91国偷自产一区二区开放时间 | 成a人片国产精品| 一片黄亚洲嫩模| 日韩欧美一区在线| 成人听书哪个软件好| 一个色在线综合| 精品捆绑美女sm三区| 成人黄色在线网站| 亚洲国产aⅴ成人精品无吗| 日韩欧美国产三级电影视频| 成人丝袜视频网| 首页国产欧美日韩丝袜| 久久久精品影视| 欧美日韩一级黄| 国产成人在线网站| 天堂午夜影视日韩欧美一区二区| 久久老女人爱爱| 欧美系列一区二区| 福利一区二区在线观看| 亚洲成va人在线观看| 国产女主播一区| 精品视频123区在线观看| 粉嫩在线一区二区三区视频| 日韩电影在线一区二区| 亚洲色图欧美偷拍| 国产日韩欧美一区二区三区综合| 欧美日韩国产首页| 91视视频在线直接观看在线看网页在线看 | 香蕉久久夜色精品国产使用方法 | 亚洲精品国产精华液| 2023国产精品视频| 69堂亚洲精品首页| 91麻豆精东视频| 岛国av在线一区| 国产精品资源在线观看| 日韩av一区二区三区四区| 亚洲精品视频自拍| 国产精品久久久久久久久果冻传媒| 精品久久久久久久一区二区蜜臀| 欧美色爱综合网| 一本色道久久综合亚洲aⅴ蜜桃 | 日本不卡免费在线视频| 夜夜嗨av一区二区三区网页| 国产精品久久三区| 国产日韩精品一区二区浪潮av| 欧美一区中文字幕| 欧美老年两性高潮| 在线免费不卡视频| 色综合色综合色综合色综合色综合 | 欧美精品在线视频| 色久优优欧美色久优优| 91小视频免费看| 99精品视频一区二区| 成人做爰69片免费看网站| 国产一区二区三区av电影 | 欧美国产一区视频在线观看| 精品国产一区二区三区忘忧草| 91精品国产入口| 5858s免费视频成人| 欧美日韩中字一区| 欧美老女人在线| 欧美一区二区日韩| 26uuu亚洲综合色欧美| 精品日韩在线观看| 久久精品一区四区| 国产精品嫩草影院com| 中文字幕亚洲不卡| 亚洲一区二区视频在线观看| 五月天国产精品| 蜜臀av一区二区在线免费观看 | 丝瓜av网站精品一区二区| 视频一区视频二区中文| 久久99精品一区二区三区| 国产一区二区看久久| 成人久久视频在线观看| 91亚洲永久精品| 欧美日韩午夜在线| 精品国产露脸精彩对白| 欧美激情资源网| 亚洲午夜日本在线观看| 麻豆精品在线视频| 9久草视频在线视频精品| 在线观看欧美精品| 精品国产一区二区三区四区四| 中文字幕精品一区二区三区精品| 亚洲综合清纯丝袜自拍| 韩国毛片一区二区三区| 色哟哟一区二区在线观看| 正在播放一区二区| 国产精品对白交换视频| 日韩av在线发布| 成人a级免费电影| 欧美日韩综合在线| 欧美—级在线免费片| 婷婷夜色潮精品综合在线| 国产高清视频一区| 欧美日韩mp4| 欧美激情一区不卡| 午夜视黄欧洲亚洲| 国产91丝袜在线18| 在线不卡欧美精品一区二区三区| 国产日本一区二区| 亚洲高清免费视频| 成人av片在线观看| 日韩一区二区三区在线观看| 日韩美女久久久| 精品一区二区三区蜜桃| 日本高清成人免费播放| 国产亚洲一区二区三区在线观看| 亚洲综合区在线| 成人久久18免费网站麻豆| 日韩欧美久久久| 亚洲超碰精品一区二区| 亚洲免费成人av| 欧美一区二区视频在线观看2020 | 色综合激情五月| 欧美一级生活片| 一区二区三区自拍| 风间由美一区二区三区在线观看| 6080午夜不卡| 一区二区三区 在线观看视频| 国产曰批免费观看久久久| 欧美日韩国产美| 一区二区三区欧美亚洲| 99久久免费视频.com| 久久色在线观看| 秋霞av亚洲一区二区三| 欧美日本免费一区二区三区| 亚洲精品日日夜夜| 成人app在线| 亚洲国产经典视频| 国产成人精品免费看| 欧美精品一区男女天堂| 国产91高潮流白浆在线麻豆| 欧美一区二区三区白人| 亚洲精品免费在线播放| 色综合色综合色综合色综合色综合 | 亚洲精品高清视频在线观看| 不卡av电影在线播放|