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

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

?? scrolledcomposite.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
		if (!expandHorizontal && contentRect.width > hostRect.width) return true;	if (expandHorizontal && minWidth > hostRect.width) return true;	return false;}private boolean needVScroll(Rectangle contentRect, boolean hVisible) {	ScrollBar vBar = getVerticalBar();	if (vBar == null) return false;		Rectangle hostRect = getBounds();	int border = getBorderWidth();	hostRect.height -= 2*border;	ScrollBar hBar = getHorizontalBar();	if (hVisible && hBar != null) hostRect.height -= hBar.getSize().y;		if (!expandHorizontal && contentRect.height > hostRect.height) return true;	if (expandHorizontal && minHeight > hostRect.height) return true;	return false;}void resize() {	if (inResize) return;	inResize = true;	layout();	inResize = false;}/** * Return the point in the content that currenly appears in the top left  * corner of the scrolled composite. *  * @return the point in the content that currenly appears in the top left  * corner of the scrolled composite.  If no content has been set, this returns * (0, 0). *  * @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 2.0 */public Point getOrigin() {	checkWidget();	if (content == null) return new Point(0, 0);	Point location = content.getLocation();	return new Point(-location.x, -location.y);}/** * Scrolls the content so that the specified point in the content is in the top  * left corner.  If no content has been set, nothing will occur.   *  * Negative values will be ignored.  Values greater than the maximum scroll  * distance will result in scrolling to the end of the scrollbar. * * @param origin the point on the content to appear in the top left corner  *  * @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> *    <li>ERROR_INVALID_ARGUMENT - value of origin is outside of content * </ul> * @since 2.0 */public void setOrigin(Point origin) {	setOrigin(origin.x, origin.y);}/** * Scrolls the content so that the specified point in the content is in the top  * left corner.  If no content has been set, nothing will occur.   *  * Negative values will be ignored.  Values greater than the maximum scroll  * distance will result in scrolling to the end of the scrollbar. * * @param x the x coordinate of the content to appear in the top left corner  *  * @param y the y coordinate of the content to appear in the top left corner  *  * @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 2.0 */public void setOrigin(int x, int y) {	checkWidget();	if (content == null) return;	ScrollBar hBar = getHorizontalBar ();	if (hBar != null) {		hBar.setSelection(x);		x = -hBar.getSelection ();	} else {		x = 0;	}	ScrollBar vBar = getVerticalBar ();	if (vBar != null) {		vBar.setSelection(y);		y = -vBar.getSelection ();	} else {		y = 0;	}	content.setLocation(x, y);}/** * Set the Always Show Scrollbars flag.  True if the scrollbars are  * always shown even if they are not required.  False if the scrollbars are only  * visible when some part of the composite needs to be scrolled to be seen. * The H_SCROLL and V_SCROLL style bits are also required to enable scrollbars in the  * horizontal and vertical directions. *  * @param show true to show the scrollbars even when not required, false to show scrollbars only when required *  * @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 setAlwaysShowScrollBars(boolean show) {	checkWidget();	if (show == alwaysShowScroll) return;	alwaysShowScroll = show;	ScrollBar hBar = getHorizontalBar ();	if (hBar != null && alwaysShowScroll) hBar.setVisible(true);	ScrollBar vBar = getVerticalBar ();	if (vBar != null && alwaysShowScroll) vBar.setVisible(true);	layout();}/** * Set the content that will be scrolled. *  * @param content the control to be displayed in the content area *  * @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 setContent(Control content) {	checkWidget();	if (this.content != null && !this.content.isDisposed()) {		this.content.removeListener(SWT.Resize, contentListener);		this.content.setBounds(new Rectangle(-200, -200, 0, 0));		}		this.content = content;	ScrollBar vBar = getVerticalBar ();	ScrollBar hBar = getHorizontalBar ();	if (this.content != null) {		if (vBar != null) {			vBar.setMaximum (0);			vBar.setThumb (0);			vBar.setSelection(0);		}		if (hBar != null) {			hBar.setMaximum (0);			hBar.setThumb (0);			hBar.setSelection(0);		}		content.setLocation(0, 0);		layout();		this.content.addListener(SWT.Resize, contentListener);	} else {		if (hBar != null) hBar.setVisible(alwaysShowScroll);		if (vBar != null) vBar.setVisible(alwaysShowScroll);	}}/** * Configure the ScrolledComposite to resize the content object to be as wide as the  * ScrolledComposite when the width of the ScrolledComposite is greater than the * minimum width specified in setMinWidth.  If the ScrolledComposite is less than the * minimum width, the content will not resized and instead the horizontal scroll bar will be * used to view the entire width. * If expand is false, this behaviour is turned off.  By default, this behaviour is turned off. *  * @param expand true to expand the content control to fill available horizontal space *  * @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 setExpandHorizontal(boolean expand) {	checkWidget();	if (expand == expandHorizontal) return;	expandHorizontal = expand;	layout();}/** * Configure the ScrolledComposite to resize the content object to be as tall as the  * ScrolledComposite when the height of the ScrolledComposite is greater than the * minimum height specified in setMinHeight.  If the ScrolledComposite is less than the * minimum height, the content will not resized and instead the vertical scroll bar will be * used to view the entire height. * If expand is false, this behaviour is turned off.  By default, this behaviour is turned off. *  * @param expand true to expand the content control to fill available vertical space *  * @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 setExpandVertical(boolean expand) {	checkWidget();	if (expand == expandVertical) return;	expandVertical = expand;	layout();}public void setLayout (Layout layout) {	// do not allow a layout to be set on this class because layout is being handled by the resize listener	checkWidget();	return;}/** * Specify the minimum height at which the ScrolledComposite will begin scrolling the * content with the vertical scroll bar.  This value is only relevant if   * setExpandVertical(true) has been set. *  * @param height the minimum height or 0 for default height *  * @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 setMinHeight(int height) {	setMinSize(minWidth, height);}/** * Specify the minimum width and height at which the ScrolledComposite will begin scrolling the * content with the horizontal scroll bar.  This value is only relevant if   * setExpandHorizontal(true) and setExpandVertical(true) have been set. *  * @param size the minimum size or null for the default size *  * @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 setMinSize(Point size) {	if (size == null) {		setMinSize(0, 0);	} else {		setMinSize(size.x, size.y);	}}/** * Specify the minimum width and height at which the ScrolledComposite will begin scrolling the * content with the horizontal scroll bar.  This value is only relevant if   * setExpandHorizontal(true) and setExpandVertical(true) have been set. *  * @param width the minimum width or 0 for default width * @param height the minimum height or 0 for default height *  * @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 setMinSize(int width, int height) {	checkWidget();	if (width == minWidth && height == minHeight) return;	minWidth = Math.max(0, width);	minHeight = Math.max(0, height);	layout();}/** * Specify the minimum width at which the ScrolledComposite will begin scrolling the * content with the horizontal scroll bar.  This value is only relevant if   * setExpandHorizontal(true) has been set. *  * @param width the minimum width or 0 for default width *  * @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 setMinWidth(int width) {	setMinSize(width, minHeight);}void vScroll() {	if (content == null) return;	Point location = content.getLocation ();	ScrollBar vBar = getVerticalBar ();	int vSelection = vBar.getSelection ();	content.setLocation (location.x, -vSelection);}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美极品aⅴ影院| 亚洲欧洲成人av每日更新| 日韩电影免费在线看| 久久综合九色综合欧美就去吻| 粉嫩13p一区二区三区| 国产精品美女久久久久aⅴ| 欧美夫妻性生活| 免费视频一区二区| 4438亚洲最大| 成人永久免费视频| 午夜天堂影视香蕉久久| 欧美va日韩va| 欧美日韩国产a| 99精品国产91久久久久久| 蜜桃久久av一区| 亚洲影视在线观看| 国产精品国产三级国产普通话蜜臀 | 精品久久久影院| 国产精品亚洲专一区二区三区| 亚洲午夜在线视频| 日韩欧美亚洲一区二区| 欧美日韩精品专区| 色偷偷一区二区三区| 国产黄色精品视频| 激情欧美日韩一区二区| 中文字幕人成不卡一区| 欧美激情综合网| 欧美精品一区二区三区一线天视频 | 午夜av一区二区三区| 中文字幕一区二区在线播放| 精品人伦一区二区色婷婷| 欧美日本在线观看| 欧美日韩精品二区第二页| 99精品国产热久久91蜜凸| av激情成人网| 成a人片国产精品| 成人性生交大片免费看视频在线 | 成人精品国产福利| 国产99精品在线观看| 国产成人av影院| 成人激情av网| 国产精品亚洲人在线观看| 国产一区二区美女诱惑| 精品一区二区在线视频| 久久99国产精品成人| 中文字幕精品—区二区四季| 久久综合色播五月| 久久综合久久综合九色| 国产农村妇女毛片精品久久麻豆| 久久麻豆一区二区| 亚洲天天做日日做天天谢日日欢| 亚洲人吸女人奶水| 精品国产一区二区三区久久久蜜月| 日韩欧美区一区二| 久久久午夜电影| 中文字幕视频一区| 亚洲国产精品自拍| 韩国成人在线视频| 成人av在线资源网站| 欧美挠脚心视频网站| 欧美电影免费观看高清完整版在线 | 色婷婷国产精品| 成人三级在线视频| 国产精品一二三四区| 免费在线欧美视频| 国产成人在线看| 欧美日韩免费观看一区二区三区| 亚洲日本丝袜连裤袜办公室| 亚洲美女淫视频| 欧美国产日产图区| 在线观看日产精品| 欧美大片日本大片免费观看| 中文在线资源观看网站视频免费不卡| 玉足女爽爽91| 久久99精品久久久久久动态图| 日本韩国欧美一区二区三区| 国产欧美日韩综合精品一区二区| 免费人成网站在线观看欧美高清| 91免费国产视频网站| 国产日韩欧美精品综合| 麻豆久久久久久久| 本田岬高潮一区二区三区| 欧美mv日韩mv| 香蕉久久一区二区不卡无毒影院| 91免费国产在线观看| 国产精品狼人久久影院观看方式| 精品综合久久久久久8888| 91麻豆精品国产91久久久更新时间| 中文字幕人成不卡一区| 国产999精品久久| 日本一区二区免费在线| 精品制服美女久久| 欧美三级蜜桃2在线观看| 亚洲私人影院在线观看| 成人激情综合网站| 国产精品美女久久久久久久网站| 国产一区二区三区美女| 91精品国产欧美一区二区| 视频一区二区三区中文字幕| 色88888久久久久久影院按摩| 中文字幕视频一区二区三区久| 懂色中文一区二区在线播放| 日韩免费高清av| 99久久综合国产精品| 国产精品国产自产拍高清av| 91蝌蚪porny| 一区二区成人在线观看| 在线国产电影不卡| 蜜臀av一级做a爰片久久| 久久久一区二区三区| av中文字幕在线不卡| 爽好久久久欧美精品| 日韩欧美国产wwwww| 国产一区二区精品久久99| 亚洲素人一区二区| 欧美老肥妇做.爰bbww| 五月天网站亚洲| 日韩你懂的电影在线观看| 国产麻豆精品95视频| 1000精品久久久久久久久| 在线精品视频免费播放| 日本午夜一区二区| 亚洲一区中文在线| 精品福利在线导航| 91日韩精品一区| 美女国产一区二区| 欧美激情艳妇裸体舞| 欧美日韩精品欧美日韩精品| 国产精品主播直播| 亚洲美女视频在线| 中文字幕一区二区视频| 麻豆91免费观看| 亚洲国产精品视频| 9l国产精品久久久久麻豆| 欧美精品日日鲁夜夜添| 日韩美女视频一区| 国产成人精品亚洲777人妖| 欧美三级三级三级爽爽爽| 国产精品视频免费| 97精品视频在线观看自产线路二| 欧亚洲嫩模精品一区三区| 亚洲一级不卡视频| 国产精品一二二区| 26uuu成人网一区二区三区| 激情欧美日韩一区二区| 精品电影一区二区| 国内一区二区在线| 中文在线一区二区| 精品成a人在线观看| 国产精品国产馆在线真实露脸 | 国产日韩亚洲欧美综合| 极品少妇xxxx精品少妇| 91麻豆精品国产91久久久久| 亚洲六月丁香色婷婷综合久久| 北条麻妃一区二区三区| 亚洲精品菠萝久久久久久久| 欧美群妇大交群的观看方式| 国产综合色产在线精品| 欧美另类z0zxhd电影| 中文字幕欧美激情| 国内成人自拍视频| 91麻豆免费视频| 国产精品第13页| 欧美日韩激情一区二区三区| 91精品国产aⅴ一区二区| 亚洲电影在线免费观看| ww久久中文字幕| 欧美日韩一本到| 色综合久久88色综合天天免费| 久久久久青草大香线综合精品| 99精品视频一区| 国产精品77777| 免费精品视频在线| 一区二区三区在线观看动漫| 亚洲国产成人自拍| 蜜芽一区二区三区| 国产欧美日韩麻豆91| 2024国产精品| 国产校园另类小说区| 久久久另类综合| 国产精品不卡视频| 中文字幕亚洲电影| 国产精品久久一级| 日韩主播视频在线| 奇米影视在线99精品| 国产综合久久久久久鬼色 | 99riav久久精品riav| 色综合久久99| 色噜噜夜夜夜综合网| 91亚洲永久精品| 欧美色图在线观看| 日韩精品在线一区| 国产精品色哟哟| 亚洲一卡二卡三卡四卡| 日韩在线一区二区三区| 国产精品99精品久久免费| 成人性色生活片| 国产成人综合亚洲91猫咪| 成人av网站在线| 91麻豆精品国产91久久久更新时间|