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

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

?? font.java

?? 源碼為Eclipse開(kāi)源開(kāi)發(fā)平臺(tái)桌面開(kāi)發(fā)工具SWT的源代碼,
?? JAVA
字號(hào):
/******************************************************************************* * 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.graphics;import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;/** * Instances of this class manage operating system resources that * define how text looks when it is displayed. Fonts may be constructed * by providing a device and either name, size and style information * or a <code>FontData</code> object which encapsulates this data. * <p> * Application code must explicitly invoke the <code>Font.dispose()</code>  * method to release the operating system resources managed by each instance * when those instances are no longer required. * </p> * * @see FontData */public final class Font {		/**	 * the handle to the OS font resource	 * (Warning: This field is platform dependent)	 */	public int handle;		/**	 * the device where this font was created	 */	Device device;	/** * Prevents uninitialized instances from being created outside the package. */Font() {}/**	  * Constructs a new font given a device and font data * which describes the desired font's appearance. * <p> * You must dispose the font when it is no longer required.  * </p> * * @param device the device to create the font on * @param fd the FontData that describes the desired font (must not be null) *  * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> *    <li>ERROR_NULL_ARGUMENT - if the fd argument is null</li> * </ul> * @exception SWTError <ul> *    <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li> * </ul> */public Font(Device device, FontData fd) {	if (device == null) device = Device.getDevice();	if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	init(device, fd);	if (device.tracking) device.new_Object(this);	}/**	  * Constructs a new font given a device and an array * of font data which describes the desired font's * appearance. * <p> * You must dispose the font when it is no longer required.  * </p> * * @param device the device to create the font on * @param fds the array of FontData that describes the desired font (must not be null) *  * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> *    <li>ERROR_NULL_ARGUMENT - if the fds argument is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the length of fds is zero</li> *    <li>ERROR_NULL_ARGUMENT - if any fd in the array is null</li> * </ul> * @exception SWTError <ul> *    <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li> * </ul> *  * @since 2.1 */public Font(Device device, FontData[] fds) {	if (device == null) device = Device.getDevice();	if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	if (fds == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	if (fds.length == 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT);	init(device, fds[0]);	if (device.tracking) device.new_Object(this);	}/**	  * Constructs a new font given a device, a font name, * the height of the desired font in points, and a font * style. * <p> * You must dispose the font when it is no longer required.  * </p> * * @param device the device to create the font on * @param name the name of the font (must not be null) * @param height the font height in points * @param style a bit or combination of NORMAL, BOLD, ITALIC *  * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> *    <li>ERROR_NULL_ARGUMENT - if the name argument is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the height is negative</li> * </ul> * @exception SWTError <ul> *    <li>ERROR_NO_HANDLES - if a font could not be created from the given arguments</li> * </ul> */public Font(Device device, String name, int height, int style) {	if (device == null) device = Device.getDevice();	if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	if (name == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	init(device, new FontData (name, height, style));	if (device.tracking) device.new_Object(this);	}/** * Disposes of the operating system resources associated with * the font. Applications must dispose of all fonts which * they allocate. */public void dispose() {	if (handle == 0) return;	if (device.isDisposed()) return;	OS.DeleteObject(handle);	handle = 0;	if (device.tracking) device.dispose_Object(this);	device = null;}/** * Compares the argument to the receiver, and returns true * if they represent the <em>same</em> object using a class * specific comparison. * * @param object the object to compare with this object * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise * * @see #hashCode */public boolean equals(Object object) {	if (object == this) return true;	if (!(object instanceof Font)) return false;	Font font = (Font) object;	return device == font.device && handle == font.handle;}/** * Returns an array of <code>FontData</code>s representing the receiver. * On Windows, only one FontData will be returned per font. On X however,  * a <code>Font</code> object <em>may</em> be composed of multiple X  * fonts. To support this case, we return an array of font data objects. * * @return an array of font data objects describing the receiver * * @exception SWTException <ul> *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */public FontData[] getFontData() {	if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	LOGFONT logFont = OS.IsUnicode ? (LOGFONT)new LOGFONTW() : new LOGFONTA();	OS.GetObject(handle, LOGFONT.sizeof, logFont);	return new FontData[] {FontData.win32_new(logFont, device.computePoints(logFont))};}/** * Returns an integer hash code for the receiver. Any two  * objects which return <code>true</code> when passed to  * <code>equals</code> must return the same value for this * method. * * @return the receiver's hash * * @see #equals */public int hashCode () {	return handle;}void init (Device device, FontData fd) {	if (fd == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	this.device = device;	LOGFONT logFont = fd.data;	int lfHeight = logFont.lfHeight;	logFont.lfHeight = device.computePixels(fd.height);	handle = OS.CreateFontIndirect(logFont);	logFont.lfHeight = lfHeight;	if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);}/** * Returns <code>true</code> if the font has been disposed, * and <code>false</code> otherwise. * <p> * This method gets the dispose state for the font. * When a font has been disposed, it is an error to * invoke any other method using the font. * * @return <code>true</code> when the font is disposed and <code>false</code> otherwise */public boolean isDisposed() {	return handle == 0;}/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the receiver */public String toString () {	if (isDisposed()) return "Font {*DISPOSED*}";	return "Font {" + handle + "}";}/**	  * Invokes platform specific functionality to allocate a new font. * <p> * <b>IMPORTANT:</b> This method is <em>not</em> part of the public * API for <code>Font</code>. It is marked public only so that it * can be shared within the packages provided by SWT. It is not * available on all platforms, and should never be called from * application code. * </p> * * @param device the device on which to allocate the color * @param handle the handle for the font * @return a new font object containing the specified device and handle */public static Font win32_new(Device device, int handle) {	if (device == null) device = Device.getDevice();	Font font = new Font();	font.handle = handle;	font.device = device;	return font;}}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜亚洲精品羞羞网站| 亚洲欧洲成人精品av97| 国产成人av一区二区三区在线| 国产精品国产三级国产普通话99| 欧美性淫爽ww久久久久无| 韩国成人精品a∨在线观看| 亚洲一区在线播放| 中文在线一区二区| 91精品在线免费| 99久久久久久| 国内精品国产成人国产三级粉色| 亚洲国产精品一区二区久久恐怖片| 亚洲精品在线电影| 欧美精品乱码久久久久久按摩| 高清国产一区二区| 韩国精品主播一区二区在线观看 | 成人免费福利片| 看电影不卡的网站| 亚洲成人自拍一区| 一区二区三区免费网站| 国产精品第五页| 久久久精品中文字幕麻豆发布| 777午夜精品免费视频| 一本到不卡精品视频在线观看| 国产suv精品一区二区三区| 青娱乐精品视频在线| 亚洲电影一级片| 亚洲综合另类小说| 综合久久综合久久| 中文字幕在线不卡国产视频| 久久品道一品道久久精品| 欧美一级夜夜爽| 欧美美女直播网站| 欧美日韩国产影片| 欧美日韩一区二区三区高清 | 久久精品一区蜜桃臀影院| 日韩精品中文字幕一区| 91精品在线一区二区| 欧美日韩精品一二三区| 欧美日韩国产综合久久| 欧美日韩国产一区二区三区地区| 91久久久免费一区二区| 91福利资源站| 欧美性猛片aaaaaaa做受| 欧美视频日韩视频| 7777精品伊人久久久大香线蕉 | 免费在线观看成人| 日韩avvvv在线播放| 日韩av网站免费在线| 老司机免费视频一区二区三区| 欧美aⅴ一区二区三区视频| 日本va欧美va瓶| 久久疯狂做爰流白浆xx| 激情亚洲综合在线| 国产福利91精品一区| 成人av集中营| 色婷婷综合在线| 精品视频在线视频| 91精品国产麻豆国产自产在线| 欧美一级高清片在线观看| 精品电影一区二区三区| 国产精品午夜春色av| 亚洲免费高清视频在线| 天天影视涩香欲综合网| 国产一区在线观看麻豆| 成人av在线网| 欧美日韩免费不卡视频一区二区三区| 欧美丰满高潮xxxx喷水动漫| 日韩欧美专区在线| 国产喷白浆一区二区三区| 亚洲欧美国产高清| 日本不卡一二三区黄网| 国产在线观看一区二区| 99久久免费国产| 欧美日韩国产一区二区三区地区| 91精品国产aⅴ一区二区| 国产亚洲精品超碰| 亚洲国产一区视频| 国产一区不卡在线| 在线日韩国产精品| 久久先锋影音av鲁色资源网| 亚洲人成网站影音先锋播放| 日韩专区一卡二卡| 成人中文字幕合集| 欧美日本视频在线| 日本一区二区三区免费乱视频| 亚洲一区国产视频| 国产精品77777竹菊影视小说| 在线一区二区视频| 久久久久国色av免费看影院| 一区二区三区av电影| 国内久久婷婷综合| 欧美性xxxxxxxx| 中文幕一区二区三区久久蜜桃| 亚洲va在线va天堂| 白白色 亚洲乱淫| 91麻豆精品国产91久久久久 | 亚洲日本在线看| 免费观看成人av| 色哟哟欧美精品| 久久久久久久久久久久久久久99| 亚洲va在线va天堂| 色综合久久综合中文综合网| 日本一区二区三区四区| 免费在线观看视频一区| 欧美视频一区二区三区四区| 国产精品成人一区二区三区夜夜夜| 免费在线观看一区二区三区| 在线观看视频一区| 国产精品国产三级国产专播品爱网| 蜜桃视频一区二区| 欧美三级电影在线观看| 日韩一区在线播放| 国产91精品一区二区麻豆亚洲| 精品免费日韩av| 天天色天天爱天天射综合| 色悠悠久久综合| 亚洲丝袜美腿综合| 成年人国产精品| 国产日韩欧美综合一区| 国产一区在线精品| 欧美大片国产精品| 日韩国产欧美在线视频| 91极品视觉盛宴| 亚洲另类色综合网站| 91麻豆福利精品推荐| 国产精品久久久久久久久动漫 | 国产91丝袜在线观看| 26uuu国产一区二区三区| 免费观看日韩电影| 日韩写真欧美这视频| 欧美aaa在线| 日韩一级免费一区| 蜜臀久久久久久久| 欧美xxxxx牲另类人与| 蜜桃av噜噜一区| 日韩精品一区二| 国产一区在线观看视频| 久久综合色鬼综合色| 欧美三级电影在线看| 视频在线观看91| 欧美一区二区三区影视| 久久精品99国产精品| 337p日本欧洲亚洲大胆色噜噜| 国内精品国产成人国产三级粉色| 久久色.com| 97国产一区二区| 亚洲欧美日韩在线不卡| 欧美私模裸体表演在线观看| 三级一区在线视频先锋| 欧美不卡在线视频| 国产成人免费视频精品含羞草妖精 | 中文字幕视频一区二区三区久| 不卡视频一二三| 亚洲精品日韩一| 欧美精品 国产精品| 蜜桃传媒麻豆第一区在线观看| 亚洲精品在线观看网站| av中文一区二区三区| 亚洲午夜av在线| 精品久久久久99| 大胆欧美人体老妇| 亚洲一区在线观看免费 | 欧美色图激情小说| 日韩国产精品91| 国产亚洲视频系列| 91麻豆免费观看| 欧美a级理论片| 国产精品一二三区在线| 国产精品你懂的在线| 欧美伦理影视网| 风流少妇一区二区| 亚洲国产欧美在线| 26uuu精品一区二区三区四区在线| 99久久亚洲一区二区三区青草| 亚洲国产成人av| 久久久99精品免费观看| 在线观看中文字幕不卡| 精品无码三级在线观看视频| 亚洲天堂久久久久久久| 日韩欧美区一区二| 91污在线观看| 久久www免费人成看片高清| 国产精品成人一区二区三区夜夜夜| 欧美日本不卡视频| 99久久国产综合精品麻豆 | 99精品国产一区二区三区不卡| 午夜欧美视频在线观看| 欧美韩日一区二区三区四区| 制服.丝袜.亚洲.中文.综合| 成人99免费视频| 久久66热偷产精品| 亚洲一区在线观看视频| 国产精品妹子av| 日韩欧美黄色影院| 欧美丝袜第三区| 成人动漫av在线| 久久97超碰国产精品超碰| 亚洲成年人网站在线观看| 国产精品动漫网站|