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

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

?? filllayout.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
字號:
/******************************************************************************* * 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.layout;import org.eclipse.swt.*;import org.eclipse.swt.graphics.*;import org.eclipse.swt.widgets.*;/** * <code>FillLayout</code> is the simplest layout class. It lays out  * controls in a single row or column, forcing them to be the same size.  * <p> * Initially, the controls will all be as tall as the tallest control,  * and as wide as the widest. <code>FillLayout</code> does not wrap,  * but you can specify margins and spacing. You might use it to  * lay out buttons in a task bar or tool bar, or to stack checkboxes  * in a <code>Group</code>. <code>FillLayout</code> can also be used  * when a <code>Composite</code> only has one child. For example,  * if a <code>Shell</code> has a single <code>Group</code> child,  * <code>FillLayout</code> will cause the <code>Group</code> to  * completely fill the <code>Shell</code> (if margins are 0). * </p> * <p> * Example code: first a <code>FillLayout</code> is created and * its type field is set, and then the layout is set into the  * <code>Composite</code>. Note that in a <code>FillLayout</code>, * children are always the same size, and they fill all available space. * <pre> * 		FillLayout fillLayout = new FillLayout(); * 		fillLayout.type = SWT.VERTICAL; * 		shell.setLayout(fillLayout); * </pre> * </p> */public final class FillLayout extends Layout {	/**	 * type specifies how controls will be positioned 	 * within the layout.	 *	 * The default value is HORIZONTAL.	 *	 * Possible values are:	 *	 * HORIZONTAL: Position the controls horizontally from left to right	 * VERTICAL: Position the controls vertically from top to bottom	 */	public int type = SWT.HORIZONTAL;		/**	 * marginWidth specifies the number of pixels of horizontal margin	 * that will be placed along the left and right edges of the layout.	 *	 * The default value is 0.	 * 	 * @since 3.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 layout.	 *	 * The default value is 0.	 * 	 * @since 3.0	 */ 	public int marginHeight = 0; 	 	/**	 * spacing specifies the number of pixels between the edge of one cell	 * and the edge of its neighbouring cell.	 *	 * The default value is 0.	 * 	 * @since 3.0	 */	public int spacing = 0;	/** * Constructs a new instance of this class. */public FillLayout () {}/** * Constructs a new instance of this class given the type. * * @param type the type of fill layout *  * @since 2.0 */public FillLayout (int type) {	this.type = type;}protected Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache) {	Control [] children = composite.getChildren ();	int count = children.length;	int maxWidth = 0, maxHeight = 0;	for (int i=0; i<count; i++) {		Control child = children [i];		Point size = child.computeSize (SWT.DEFAULT, SWT.DEFAULT, flushCache);		maxWidth = Math.max (maxWidth, size.x);		maxHeight = Math.max (maxHeight, size.y);	}	int width = 0, height = 0;	if (type == SWT.HORIZONTAL) {		width = count * maxWidth;		if (count != 0) width += (count - 1) * spacing;		height = maxHeight;	} else {		width = maxWidth;		height = count * maxHeight;		if (count != 0) height += (count - 1) * spacing;	}	width += marginWidth * 2;	height += marginHeight * 2;	return new Point (width, height);}protected void layout (Composite composite, boolean flushCache) {	Rectangle rect = composite.getClientArea ();	Control [] children = composite.getChildren ();	int count = children.length;	if (count == 0) return;	int width = rect.width - marginWidth * 2;	int height = rect.height - marginHeight * 2;	if (type == SWT.HORIZONTAL) {		width -= (count - 1) * spacing;		int x = rect.x + marginWidth, extra = width % count;		int y = rect.y + marginHeight, cellWidth = width / count;		for (int i=0; i<count; i++) {			Control child = children [i];			int childWidth = cellWidth;			if (i == 0) {				childWidth += extra / 2;			} else {				if (i == count - 1) childWidth += (extra + 1) / 2;			}			child.setBounds (x, y, childWidth, height);			x += childWidth + spacing;		}	} else {		height -= (count - 1) * spacing;		int x = rect.x + marginWidth, cellHeight = height / count;		int y = rect.y + marginHeight, extra = height % count;		for (int i=0; i<count; i++) {			Control child = children [i];			int childHeight = cellHeight;			if (i == 0) {				childHeight += extra / 2;			} else {				if (i == count - 1) childHeight += (extra + 1) / 2;			}			child.setBounds (x, y, width, childHeight);			y += childHeight + spacing;		}	}}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美麻豆精品久久久久久| 91蜜桃免费观看视频| 亚洲一区二区欧美日韩| 综合久久国产九一剧情麻豆| 国产日韩三级在线| 欧美国产日韩在线观看| 国产嫩草影院久久久久| 中文字幕一区二区三区精华液| 久久精品人人做| 国产精品水嫩水嫩| 亚洲天堂av老司机| 国产精品高潮呻吟| 亚洲综合成人在线| 亚洲bt欧美bt精品| 青青草国产成人99久久| 另类小说欧美激情| 国产麻豆精品视频| 99久久国产免费看| 欧美日韩国产一级片| 欧美xxxx老人做受| 国产精品情趣视频| 亚洲综合一二区| 青娱乐精品视频| 国产凹凸在线观看一区二区| www.亚洲国产| 欧美精品在线一区二区| 久久综合资源网| 亚洲图片另类小说| 日本成人超碰在线观看| 国产精品888| 91久久香蕉国产日韩欧美9色| 欧美日韩的一区二区| 日韩精品一区二区三区中文不卡| 欧美国产在线观看| 午夜精品福利视频网站| 国产不卡一区视频| 欧美精品视频www在线观看| 337p日本欧洲亚洲大胆色噜噜| 中文字幕av资源一区| 亚洲风情在线资源站| 经典三级一区二区| 欧美色网站导航| 国产午夜精品久久久久久免费视 | 久久亚洲精华国产精华液 | 91久久线看在观草草青青| 日韩欧美国产成人一区二区| 亚洲美女免费视频| 麻豆国产精品官网| 欧美色综合网站| 国产精品理论在线观看| 国模无码大尺度一区二区三区| 欧美又粗又大又爽| 国产欧美一区二区三区在线看蜜臀 | 日韩免费看的电影| 日本亚洲最大的色成网站www| 成人亚洲精品久久久久软件| 欧美精品一卡两卡| 一区二区欧美在线观看| 99视频在线精品| 久久日韩粉嫩一区二区三区| 日精品一区二区| 欧美伊人久久久久久久久影院 | 老司机精品视频在线| 欧美日韩一区在线| 亚洲激情在线激情| 99久久精品国产毛片| 国产日韩欧美精品综合| 久久99精品久久久久久国产越南| 欧美日韩三级视频| 亚洲成精国产精品女| 在线观看亚洲专区| 亚洲靠逼com| 日本丰满少妇一区二区三区| 中文字幕在线一区| 成人99免费视频| 国产精品视频一二三| 风流少妇一区二区| 国产精品久久久久久久久搜平片| 国产精品一区二区视频| 久久久精品一品道一区| 国产精品1区二区.| 中文字幕高清一区| 99久久精品费精品国产一区二区| 欧美国产精品一区| 99久久精品国产毛片| 亚洲免费看黄网站| 欧美日韩精品一区视频| 日韩精品亚洲专区| 亚洲精品一区二区三区在线观看| 精品一区二区免费在线观看| 精品国产免费人成在线观看| 国产精品一区三区| 日韩美女视频19| 欧美日韩精品一区二区三区蜜桃| 日本亚洲天堂网| 国产欧美一区二区精品秋霞影院 | 一区二区三区免费看视频| 欧美性猛片xxxx免费看久爱| 日本免费在线视频不卡一不卡二| 欧美一区二区三区人| 国产激情91久久精品导航 | 6080亚洲精品一区二区| 久久国产三级精品| 国产精品免费人成网站| 在线精品视频免费播放| 蜜臀久久99精品久久久久久9| 久久精品一区八戒影视| 日本韩国精品在线| 美日韩黄色大片| 国产精品久久久久久久午夜片| 在线观看国产91| 国模套图日韩精品一区二区 | 久久精品国产第一区二区三区| 久久精品一区八戒影视| 在线观看av一区| 国产一二精品视频| 丝袜美腿成人在线| 综合久久国产九一剧情麻豆| 欧美r级电影在线观看| 欧美探花视频资源| 成人app在线| 老汉av免费一区二区三区| 亚洲日韩欧美一区二区在线| 337p日本欧洲亚洲大胆色噜噜| 欧美亚洲自拍偷拍| 99久久伊人精品| 国内精品在线播放| 丝袜美腿一区二区三区| 一区二区三区中文字幕| 国产精品欧美综合在线| 精品人在线二区三区| 欧美片网站yy| 91福利在线导航| 色呦呦日韩精品| 国产一区二区视频在线播放| 一区二区三区在线视频免费| 久久久久国色av免费看影院| 欧美网站一区二区| 风间由美性色一区二区三区| 久久国产精品99久久久久久老狼| 成人欧美一区二区三区小说| 欧美电影免费观看完整版| 91日韩一区二区三区| 看电视剧不卡顿的网站| 亚洲国产精品人人做人人爽| 欧美激情在线观看视频免费| 欧美一级免费观看| 欧美日韩一区久久| 99re8在线精品视频免费播放| 美女网站色91| 日韩av电影免费观看高清完整版在线观看 | av午夜精品一区二区三区| 国产精品羞羞答答xxdd| 久久精品免费观看| 日韩影院精彩在线| 亚洲一级二级三级在线免费观看| 亚洲欧美色一区| 1区2区3区欧美| 国产精品免费久久| 亚洲国产精品成人综合色在线婷婷 | 日韩网站在线看片你懂的| 91精品国产福利在线观看| 欧美午夜免费电影| 欧美在线你懂得| 色偷偷一区二区三区| 成人av动漫网站| 成人免费高清视频| 丁香天五香天堂综合| 成人激情免费网站| 国产一区二区三区黄视频| 风间由美一区二区三区在线观看 | 在线成人高清不卡| 欧美日韩国产美女| 日本久久精品电影| 欧美一区二区三区小说| 欧美蜜桃一区二区三区| 正在播放一区二区| 日韩一二三区不卡| 中文字幕一区二区三区在线观看| 国产精品女人毛片| 亚洲久草在线视频| 天堂成人国产精品一区| 国产一区二区精品在线观看| 懂色av一区二区在线播放| 99久久久久免费精品国产| 91免费版在线| 久久一区二区三区国产精品| 欧美—级在线免费片| 中文字幕中文在线不卡住| 国产精品天美传媒| 奇米影视在线99精品| 激情都市一区二区| av爱爱亚洲一区| 国产福利精品导航| 91精品国产综合久久久久久| 精品久久久久久最新网址| 国产精品国产精品国产专区不片| 亚洲手机成人高清视频| 久久99精品久久久| 91天堂素人约啪|