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

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

?? viewform.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.custom;import org.eclipse.swt.graphics.*;import org.eclipse.swt.widgets.*;import org.eclipse.swt.*;/** * Instances of this class implement a Composite that lays out three * children horizontally and allows programmatic control of layout and * border parameters. ViewForm is used in the workbench to implement a * view's label/menu/toolbar local bar. * <p> * Note that although this class is a subclass of <code>Composite</code>, * it does not make sense to set a layout on it. * </p><p> * <dl> * <dt><b>Styles:</b></dt> * <dd>BORDER, FLAT</dd> * <dt><b>Events:</b></dt> * <dd>(None)</dd> * </dl> * <p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> */public class ViewForm extends Composite {	/**	 * marginWidth specifies the number of pixels of horizontal margin	 * that will be placed along the left and right edges of the form.	 *	 * The default value is 0.	 */ 	public int marginWidth = 0;	/**	 * marginHeight specifies the number of pixels of vertical margin	 * that will be placed along the top and bottom edges of the form.	 *	 * The default value is 0.	 */ 	public int marginHeight = 0; 	/**	 * horizontalSpacing specifies the number of pixels between the right	 * edge of one cell and the left edge of its neighbouring cell to	 * the right.	 *	 * The default value is 1.	 */ 	public int horizontalSpacing = 1;	/**	 * verticalSpacing specifies the number of pixels between the bottom	 * edge of one cell and the top edge of its neighbouring cell underneath.	 *	 * The default value is 1.	 */ 	public int verticalSpacing = 1;		/**	 * Color of innermost line of drop shadow border.	 * 	 * NOTE This field is badly named and can not be fixed for backwards compatability.	 * It should be capitalized.	 * 	 * @deprecated	 */	public static RGB borderInsideRGB  = new RGB (132, 130, 132);	/**	 * Color of middle line of drop shadow border.	 * 	 * NOTE This field is badly named and can not be fixed for backwards compatability.	 * It should be capitalized.	 * 	 * @deprecated	 */	public static RGB borderMiddleRGB  = new RGB (143, 141, 138);	/**	 * Color of outermost line of drop shadow border.	 * 	 * NOTE This field is badly named and can not be fixed for backwards compatability.	 * It should be capitalized.	 * 	 * @deprecated	 */	public static RGB borderOutsideRGB = new RGB (171, 168, 165);		// SWT widgets	private Control topLeft;	private Control topCenter;	private Control topRight;	private Control content;		// Configuration and state info	private boolean separateTopCenter = false;	private boolean showBorder = false;		private int separator = -1;	private int borderTop = 0;	private int borderBottom = 0;	private int borderLeft = 0;	private int borderRight = 0;	private int highlight = 0;	private Rectangle oldArea;		private Color selectionBackground;		static final int OFFSCREEN = -200;	static final int BORDER1_COLOR = SWT.COLOR_WIDGET_NORMAL_SHADOW;	static final int SELECTION_BACKGROUND = SWT.COLOR_LIST_BACKGROUND;/** * Constructs a new instance of this class given its parent * and a style value describing its behavior and appearance. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together  * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * </p> * * @param parent a widget which will be the parent of the new instance (cannot be null) * @param style the style of widget to construct * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> * </ul> * * @see SWT#BORDER * @see SWT#FLAT * @see #getStyle() */		public ViewForm(Composite parent, int style) {	super(parent, checkStyle(style));		setBorderVisible((style & SWT.BORDER) != 0);		Listener listener = new Listener() {		public void handleEvent(Event e) {			switch (e.type) {				case SWT.Dispose: onDispose(); break;				case SWT.Paint: onPaint(e.gc); break;				case SWT.Resize: onResize(); break;			}		}	};		int[] events = new int[] {SWT.Dispose, SWT.Paint, SWT.Resize};		for (int i = 0; i < events.length; i++) {		addListener(events[i], listener);	}}static int checkStyle (int style) {	int mask = SWT.FLAT | SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT;	return style & mask | SWT.NO_REDRAW_RESIZE;}//protected void checkSubclass () {//	String name = getClass().getName ();//	String validName = ViewForm.class.getName();//	if (!validName.equals(name)) {//		SWT.error (SWT.ERROR_INVALID_SUBCLASS);//	}//}public Point computeSize(int wHint, int hHint, boolean changed) {	checkWidget();	// size of title bar area	Point leftSize = new Point(0, 0);	if (topLeft != null) {		leftSize = topLeft.computeSize(SWT.DEFAULT, SWT.DEFAULT);	}	Point centerSize = new Point(0, 0);	if (topCenter != null) {		 centerSize = topCenter.computeSize(SWT.DEFAULT, SWT.DEFAULT);	}	Point rightSize = new Point(0, 0);	if (topRight != null) {		 rightSize = topRight.computeSize(SWT.DEFAULT, SWT.DEFAULT);	}	Point size = new Point(0, 0);	// calculate width of title bar	if (separateTopCenter ||	    (wHint != SWT.DEFAULT &&  leftSize.x + centerSize.x + rightSize.x > wHint)) {		size.x = leftSize.x + rightSize.x;		if (leftSize.x > 0 && rightSize.x > 0) size.x += horizontalSpacing;		size.x = Math.max(centerSize.x, size.x);		size.y = Math.max(leftSize.y, rightSize.y);		if (topCenter != null){			size.y += centerSize.y;			if (topLeft != null ||topRight != null)size.y += verticalSpacing;		}		} else {		size.x = leftSize.x + centerSize.x + rightSize.x;		int count = -1;		if (leftSize.x > 0) count++;		if (centerSize.x > 0) count++;		if (rightSize.x > 0) count++;		if (count > 0) size.x += count * horizontalSpacing;		size.y = Math.max(leftSize.y, Math.max(centerSize.y, rightSize.y));	}		if (content != null) {		if (topLeft != null || topRight != null || topCenter != null) size.y += 1; // allow space for a vertical separator		Point contentSize = new Point(0, 0);		contentSize = content.computeSize(SWT.DEFAULT, SWT.DEFAULT); 		size.x = Math.max (size.x, contentSize.x);		size.y += contentSize.y;		if (size.y > contentSize.y) size.y += verticalSpacing;	}		size.x += 2*marginWidth;	size.y += 2*marginHeight;		if (wHint != SWT.DEFAULT) size.x  = wHint;	if (hHint != SWT.DEFAULT) size.y = hHint;		Rectangle trim = computeTrim(0, 0, size.x, size.y);	return new Point (trim.width, trim.height);}public Rectangle computeTrim (int x, int y, int width, int height) {	checkWidget ();	int trimX = x - borderLeft - highlight;	int trimY = y - borderTop - highlight;	int trimWidth = width + borderLeft + borderRight + 2*highlight;	int trimHeight = height + borderTop + borderBottom + 2*highlight;	return new Rectangle(trimX, trimY, trimWidth, trimHeight);}public Rectangle getClientArea() {	checkWidget();	Rectangle clientArea = super.getClientArea();	clientArea.x += borderLeft;	clientArea.y += borderTop;	clientArea.width -= borderLeft + borderRight;	clientArea.height -= borderTop + borderBottom;	return clientArea;}/*** Returns the content area.* * @return the control in the content area of the pane or null*/public Control getContent() {	//checkWidget();	return content;}/*** Returns Control that appears in the top center of the pane.* Typically this is a toolbar.* * @return the control in the top center of the pane or null*/public Control getTopCenter() {	//checkWidget();	return topCenter;}/*** Returns the Control that appears in the top left corner of the pane.* Typically this is a label such as CLabel.* * @return the control in the top left corner of the pane or null*/public Control getTopLeft() {	//checkWidget();	return topLeft;}/*** Returns the control in the top right corner of the pane.* Typically this is a Close button or a composite with a Menu and Close button.* * @return the control in the top right corner of the pane or null*/public Control getTopRight() {	//checkWidget();	return topRight;}public void layout (boolean changed) {	checkWidget();	Rectangle rect = getClientArea();		Point leftSize = new Point(0, 0);	if (topLeft != null && !topLeft.isDisposed()) {		leftSize = topLeft.computeSize(SWT.DEFAULT, SWT.DEFAULT);	}	Point centerSize = new Point(0, 0);	if (topCenter != null && !topCenter.isDisposed()) {		 centerSize = topCenter.computeSize(SWT.DEFAULT, SWT.DEFAULT);	}	Point rightSize = new Point(0, 0);	if (topRight != null && !topRight.isDisposed()) {		 rightSize = topRight.computeSize(SWT.DEFAULT, SWT.DEFAULT);	}	

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区三区一线天视频 | 久久精品欧美一区二区三区不卡| 国产欧美视频一区二区三区| 亚洲国产日韩精品| 懂色av一区二区三区蜜臀| 欧美日韩免费观看一区二区三区| 国产欧美一区二区在线| 激情综合网天天干| 欧美日本在线播放| 亚洲激情综合网| 成人福利视频在线| 国产视频在线观看一区二区三区| 日韩电影免费在线| aaa亚洲精品一二三区| 久久精品人人做人人综合| 免费一级片91| 欧美本精品男人aⅴ天堂| 亚洲国产三级在线| 欧美日韩精品久久久| 樱桃视频在线观看一区| 91香蕉视频黄| 亚洲欧美视频一区| 91国偷自产一区二区开放时间| 欧美极品aⅴ影院| 国产91高潮流白浆在线麻豆 | 一本一道久久a久久精品 | 日本午夜精品一区二区三区电影 | 亚洲成人www| 欧美日韩国产在线观看| 一区二区三区在线免费播放| 色婷婷综合久久久中文字幕| 国产精品福利一区二区三区| 91在线视频网址| 亚洲乱码国产乱码精品精的特点 | 日日摸夜夜添夜夜添国产精品| 精品视频1区2区3区| 婷婷六月综合网| 欧美一区二区三区免费大片| 男女男精品视频| 久久综合九色综合欧美98| 国产伦精品一区二区三区视频青涩| 精品电影一区二区三区| 国产999精品久久久久久| 国产精品久久午夜| 色婷婷香蕉在线一区二区| 午夜亚洲福利老司机| 日韩亚洲欧美一区二区三区| 国产综合色视频| 亚洲欧美日韩人成在线播放| 欧美三级电影精品| 激情亚洲综合在线| 国产精品嫩草99a| 欧美日本一区二区| 国产一区二区精品在线观看| 最新欧美精品一区二区三区| 欧美日韩夫妻久久| 国产自产2019最新不卡| 亚洲天堂精品在线观看| 欧美特级限制片免费在线观看| 久久精品国产一区二区三 | 不卡在线视频中文字幕| 亚洲黄色免费电影| 欧美一区二区人人喊爽| 国产99久久精品| 丝袜美腿亚洲色图| 欧美经典一区二区| 欧美性xxxxx极品少妇| 国产一区二区在线观看免费| 亚洲欧美一区二区三区国产精品 | 欧美一区二区在线免费播放| 国产成人高清在线| 亚洲sss视频在线视频| 久久久久高清精品| 欧美午夜免费电影| 国产福利一区二区| 奇米777欧美一区二区| 136国产福利精品导航| 日韩欧美一级在线播放| 91麻豆自制传媒国产之光| 免费在线欧美视频| 亚洲九九爱视频| 欧美videossexotv100| 91麻豆蜜桃一区二区三区| 国内精品伊人久久久久av影院| 一区二区在线观看不卡| 国产色一区二区| 91精品国产麻豆国产自产在线| 99久久婷婷国产精品综合| 精品一区二区三区视频| 五月天一区二区三区| 亚洲日本中文字幕区| 久久久久久亚洲综合| 日韩一区二区免费高清| 在线播放91灌醉迷j高跟美女 | 欧美一区二区高清| 在线免费观看日本欧美| 成人app网站| 成人午夜在线免费| 国内偷窥港台综合视频在线播放| 日韩高清在线观看| 五月综合激情网| 亚洲国产aⅴ天堂久久| 一区二区理论电影在线观看| 亚洲天堂精品视频| 最新国产精品久久精品| 中文字幕在线不卡视频| 国产欧美一区二区三区网站| 国产欧美日韩在线观看| 精品欧美久久久| 精品国产一区二区三区久久影院 | 中文字幕亚洲一区二区va在线| 久久久久久97三级| 国产情人综合久久777777| 国产亚洲一区二区三区四区 | 亚洲精品综合在线| 一区二区三区精品视频| 一区二区免费视频| 日日夜夜免费精品视频| 青青草国产成人99久久| 久久成人av少妇免费| 国产一区二区三区观看| 国产福利视频一区二区三区| 国产91在线观看| 91蜜桃视频在线| 精品视频一区 二区 三区| 91精品国产综合久久久久久| 日韩一级黄色片| 国产欧美日韩在线看| 亚洲精品日韩专区silk| 亚洲成人免费av| 国产中文字幕一区| 波多野结衣91| 欧美午夜免费电影| 欧美成人伊人久久综合网| 久久精品亚洲国产奇米99| 最近日韩中文字幕| 日韩国产精品91| 成人午夜免费av| 欧美在线观看禁18| 久久综合国产精品| 日韩码欧中文字| 男男gaygay亚洲| 成人sese在线| 正在播放亚洲一区| 国产精品色一区二区三区| 性久久久久久久| 国产91精品精华液一区二区三区| 欧美在线视频不卡| 国产亚洲欧美激情| 伊人色综合久久天天人手人婷| 免费成人av在线| 成人国产亚洲欧美成人综合网 | 日韩国产欧美在线播放| 国产一区二区不卡在线| 欧美午夜宅男影院| 欧美极品xxx| 免费国产亚洲视频| 色综合色综合色综合| 精品成人在线观看| 亚洲欧美国产77777| 国产一区在线观看视频| 欧美体内she精高潮| 国产精品福利电影一区二区三区四区| 三级在线观看一区二区| 91美女视频网站| 久久一区二区视频| 五月综合激情日本mⅴ| 91丨porny丨中文| 久久精品亚洲乱码伦伦中文 | 日韩一区二区三区视频在线| 亚洲婷婷国产精品电影人久久| 激情综合网av| 777色狠狠一区二区三区| 一区二区三区在线视频免费| 国产91高潮流白浆在线麻豆| 日韩一区二区在线看| 亚洲成a人v欧美综合天堂| 91麻豆视频网站| 国产精品乱人伦中文| 国产一区91精品张津瑜| 日韩情涩欧美日韩视频| 天天综合网天天综合色| 欧美唯美清纯偷拍| 国产精品电影院| caoporn国产一区二区| 国产精品丝袜在线| 国产成人av一区二区| 欧美变态凌虐bdsm| 久久国产尿小便嘘嘘尿| 欧美一个色资源| 日韩va亚洲va欧美va久久| 欧美一区二区三区小说| 奇米精品一区二区三区在线观看一| 欧美午夜一区二区三区免费大片| 一区二区三区在线观看动漫| 欧美在线观看视频一区二区| 亚洲国产三级在线| 欧美一级二级三级蜜桃| 狠狠v欧美v日韩v亚洲ⅴ| 国产亚洲欧美日韩日本|