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

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

?? toolkit.java

?? 《移動Agent技術》一書的所有章節源代碼。
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * @(#)Toolkit.java	1.72 97/06/23
 * 
 * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Sun
 * Microsystems, Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sun.
 * 
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 * 
 * CopyrightVersion 1.1_beta
 * 
 */

package java.awt;

import java.util.Properties;
import java.awt.peer.*;
import java.awt.image.ImageObserver;
import java.awt.image.ImageProducer;
import java.awt.image.ColorModel;
import java.awt.datatransfer.Clipboard;
import java.net.URL;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;

/**
 * This class is the abstract superclass of all actual
 * implementations of the Abstract Window Toolkit. Subclasses of 
 * <code>Toolkit</code> are used to bind the various components 
 * to particular native toolkit implementations.
 * <p>
 * Most applications should not call any of the methods in this
 * class directly. The methods defined by <code>Toolkit</code> are 
 * the "glue" that joins the platform-independent classes in the 
 * <code>java.awt</code> package with their counterparts in 
 * <code>java.awt.peer</code>. Some methods defined by 
 * <code>Toolkit</code> query the native operating system directly.
 *
 * @version 	1.72, 06/23/97
 * @author	Sami Shaio
 * @author	Arthur van Hoff
 * @since       JDK1.0
 */
public abstract class  Toolkit {

    /**
     * Creates this toolkit's implementation of <code>Button</code> using 
     * the specified peer interface.
     * @param     target the button to be implemented.
     * @return    this toolkit's implementation of <code>Button</code>.
     * @see       java.awt.Button
     * @see       java.awt.peer.ButtonPeer
     * @since     JDK1.0
     */
    protected abstract ButtonPeer 	createButton(Button target);

    /**
     * Creates this toolkit's implementation of <code>TextField</code> using 
     * the specified peer interface.
     * @param     target the text field to be implemented.
     * @return    this toolkit's implementation of <code>TextField</code>.
     * @see       java.awt.TextField
     * @see       java.awt.peer.TextFieldPeer
     * @since     JDK1.0
     */
    protected abstract TextFieldPeer 	createTextField(TextField target);

    /**
     * Creates this toolkit's implementation of <code>Label</code> using 
     * the specified peer interface.
     * @param     target the label to be implemented.
     * @return    this toolkit's implementation of <code>Label</code>.
     * @see       java.awt.Label
     * @see       java.awt.peer.LabelPeer
     * @since     JDK1.0
     */
    protected abstract LabelPeer 	createLabel(Label target);

    /**
     * Creates this toolkit's implementation of <code>List</code> using 
     * the specified peer interface.
     * @param     target the list to be implemented.
     * @return    this toolkit's implementation of <code>List</code>.
     * @see       java.awt.List
     * @see       java.awt.peer.ListPeer
     * @since     JDK1.0
     */
    protected abstract ListPeer 	createList(List target);

    /**
     * Creates this toolkit's implementation of <code>Checkbox</code> using 
     * the specified peer interface.
     * @param     target the check box to be implemented.
     * @return    this toolkit's implementation of <code>Checkbox</code>.
     * @see       java.awt.Checkbox
     * @see       java.awt.peer.CheckboxPeer
     * @since     JDK1.0
     */
    protected abstract CheckboxPeer 	createCheckbox(Checkbox target);

    /**
     * Creates this toolkit's implementation of <code>Scrollbar</code> using 
     * the specified peer interface.
     * @param     target the scroll bar to be implemented.
     * @return    this toolkit's implementation of <code>Scrollbar</code>.
     * @see       java.awt.Scrollbar
     * @see       java.awt.peer.ScrollbarPeer
     * @since     JDK1.0
     */
    protected abstract ScrollbarPeer 	createScrollbar(Scrollbar target);

    /**
     * Creates this toolkit's implementation of <code>ScrollPane</code> using 
     * the specified peer interface.
     * @param     target the scroll pane to be implemented.
     * @return    this toolkit's implementation of <code>ScrollPane</code>.
     * @see       java.awt.ScrollPane
     * @see       java.awt.peer.ScrollPanePeer
     * @since     JDK1.1
     */
    protected abstract ScrollPanePeer     createScrollPane(ScrollPane target);

    /**
     * Creates this toolkit's implementation of <code>TextArea</code> using 
     * the specified peer interface.
     * @param     target the text area to be implemented.
     * @return    this toolkit's implementation of <code>TextArea</code>.
     * @see       java.awt.TextArea
     * @see       java.awt.peer.TextAreaPeer
     * @since     JDK1.0
     */
    protected abstract TextAreaPeer  	createTextArea(TextArea target);

    /**
     * Creates this toolkit's implementation of <code>Choice</code> using 
     * the specified peer interface.
     * @param     target the choice to be implemented.
     * @return    this toolkit's implementation of <code>Choice</code>.
     * @see       java.awt.Choice
     * @see       java.awt.peer.ChoicePeer
     * @since     JDK1.0
     */
    protected abstract ChoicePeer	createChoice(Choice target);

    /**
     * Creates this toolkit's implementation of <code>Frame</code> using 
     * the specified peer interface.
     * @param     target the frame to be implemented.
     * @return    this toolkit's implementation of <code>Frame</code>.
     * @see       java.awt.Frame
     * @see       java.awt.peer.FramePeer
     * @since     JDK1.0
     */
    protected abstract FramePeer  	createFrame(Frame target);

    /**
     * Creates this toolkit's implementation of <code>Canvas</code> using 
     * the specified peer interface.
     * @param     target the canvas to be implemented.
     * @return    this toolkit's implementation of <code>Canvas</code>.
     * @see       java.awt.Canvas
     * @see       java.awt.peer.CanvasPeer
     * @since     JDK1.0
     */
    protected abstract CanvasPeer 	createCanvas(Canvas target);

    /**
     * Creates this toolkit's implementation of <code>Panel</code> using 
     * the specified peer interface.
     * @param     target the panel to be implemented.
     * @return    this toolkit's implementation of <code>Panel</code>.
     * @see       java.awt.Panel
     * @see       java.awt.peer.PanelPeer
     * @since     JDK1.0
     */
    protected abstract PanelPeer  	createPanel(Panel target);

    /**
     * Creates this toolkit's implementation of <code>Window</code> using 
     * the specified peer interface.
     * @param     target the window to be implemented.
     * @return    this toolkit's implementation of <code>Window</code>.
     * @see       java.awt.Window
     * @see       java.awt.peer.WindowPeer
     * @since     JDK1.0
     */
    protected abstract WindowPeer  	createWindow(Window target);

    /**
     * Creates this toolkit's implementation of <code>Dialog</code> using 
     * the specified peer interface.
     * @param     target the dialog to be implemented.
     * @return    this toolkit's implementation of <code>Dialog</code>.
     * @see       java.awt.Dialog
     * @see       java.awt.peer.DialogPeer
     * @since     JDK1.0
     */
    protected abstract DialogPeer  	createDialog(Dialog target);

    /**
     * Creates this toolkit's implementation of <code>MenuBar</code> using 
     * the specified peer interface.
     * @param     target the menu bar to be implemented.
     * @return    this toolkit's implementation of <code>MenuBar</code>.
     * @see       java.awt.MenuBar
     * @see       java.awt.peer.MenuBarPeer
     * @since     JDK1.0
     */
    protected abstract MenuBarPeer  	createMenuBar(MenuBar target);

    /**
     * Creates this toolkit's implementation of <code>Menu</code> using 
     * the specified peer interface.
     * @param     target the menu to be implemented.
     * @return    this toolkit's implementation of <code>Menu</code>.
     * @see       java.awt.Menu
     * @see       java.awt.peer.MenuPeer
     * @since     JDK1.0
     */
    protected abstract MenuPeer  	createMenu(Menu target);

    /**
     * Creates this toolkit's implementation of <code>PopupMenu</code> using 
     * the specified peer interface.
     * @param     target the popup menu to be implemented.
     * @return    this toolkit's implementation of <code>PopupMenu</code>.
     * @see       java.awt.PopupMenu
     * @see       java.awt.peer.PopupMenuPeer
     * @since     JDK1.1
     */
    protected abstract PopupMenuPeer	createPopupMenu(PopupMenu target);

    /**
     * Creates this toolkit's implementation of <code>MenuItem</code> using 
     * the specified peer interface.
     * @param     target the menu item to be implemented.
     * @return    this toolkit's implementation of <code>MenuItem</code>.
     * @see       java.awt.MenuItem
     * @see       java.awt.peer.MenuItemPeer
     * @since     JDK1.0
     */
    protected abstract MenuItemPeer  	createMenuItem(MenuItem target);

    /**
     * Creates this toolkit's implementation of <code>FileDialog</code> using 
     * the specified peer interface.
     * @param     target the file dialog to be implemented.
     * @return    this toolkit's implementation of <code>FileDialog</code>.
     * @see       java.awt.FileDialog
     * @see       java.awt.peer.FileDialogPeer
     * @since     JDK1.0
     */
    protected abstract FileDialogPeer	createFileDialog(FileDialog target);

    /**
     * Creates this toolkit's implementation of <code>CheckboxMenuItem</code> using 
     * the specified peer interface.
     * @param     target the checkbox menu item to be implemented.
     * @return    this toolkit's implementation of <code>CheckboxMenuItem</code>.
     * @see       java.awt.CheckboxMenuItem
     * @see       java.awt.peer.CheckboxMenuItemPeer
     * @since     JDK1.0
     */
    protected abstract CheckboxMenuItemPeer	createCheckboxMenuItem(CheckboxMenuItem target);

    /**
     * Creates a peer for a component or container.  This peer is windowless
     * and allows the Component and Container classes to be extended directly
     * to create windowless components that are defined entirely in java.
     *
     * @param target The Component to be created.
     */
    protected java.awt.peer.LightweightPeer createComponent(Component target) {
	return new java.awt.LightweightPeer(target);
    }

    /**
     * Creates this toolkit's implementation of <code>Font</code> using 
     * the specified peer interface.
     * @param     target the font to be implemented.
     * @return    this toolkit's implementation of <code>Font</code>.
     * @see       java.awt.Font
     * @see       java.awt.peer.FontPeer
     * @since     JDK1.0
     */
    protected abstract FontPeer getFontPeer(String name, int style);

    /**
     * Fills in the integer array that is supplied as an argument 
     * with the current system color values.
     * <p>
     * This method is called by the method <code>updateSystemColors</code>
     * in the <code>SystemColor</code> class.
     * @param     an integer array.
     * @see       java.awt.SystemColor#updateSystemColors
     * @since     JDK1.1
     */
    protected void loadSystemColors(int[] systemColors) {
    }

    /**
     * Gets the size of the screen.
     * @return    the size of this toolkit's screen, in pixels.
     * @since     JDK1.0
     */
    public abstract Dimension getScreenSize();

    /**
     * Returns the screen resolution in dots-per-inch.
     * @return    this toolkit's screen resolution, in dots-per-inch.
     * @since     JDK1.0
     */
    public abstract int getScreenResolution();

    /**
     * Determines the color model of this toolkit's screen. 
     * <p>
     * <code>ColorModel</code> is an abstract class that 
     * encapsulates the ability to translate between the 
     * pixel values of an image and its red, green, blue, 
     * and alpha components. 
     * <p>
     * This toolkit method is called by the 
     * <code>getColorModel</code> method 
     * of the <code>Component</code> class. 
     * @return    the color model of this toolkit's screen.
     * @see       java.awt.image.ColorModel
     * @see       java.awt.Component#getColorModel
     * @since     JDK1.0
     */
    public abstract ColorModel getColorModel();

    /**
     * Returns the names of the available fonts in this toolkit.<p>
     * For 1.1, the following font names are deprecated (the replacement
     * name follows):
     * <ul>
     * <li>TimesRoman (use Serif)
     * <li>Helvetica (use SansSerif)
     * <li>Courier (use Monospaced)
     * </ul><p>
     * The ZapfDingbats font is also deprecated in 1.1, but only as a
     * separate fontname.  Unicode defines the ZapfDingbat characters
     * starting at \u2700, and as of 1.1 Java supports those characters.
     * @return    the names of the available fonts in this toolkit.
     * @since     JDK1.0
     */
    public abstract String[] getFontList();

    /**
     * Gets the screen metrics of the font.
     * @param     font   a font.
     * @return    the screen metrics of the specified font in this toolkit.
     * @since     JDK1.0
     */
    public abstract FontMetrics getFontMetrics(Font font);

    /**
     * Synchronizes this toolkit's graphics state. Some window systems 
     * may do buffering of graphics events. 
     * <p>
     * This method ensures that the display is up-to-date. It is useful
     * for animation.
     * @since     JDK1.0
     */
    public abstract void sync();

    /**
     * The default toolkit.
     */
    private static Toolkit toolkit;

    /**
     * Gets the default toolkit. 
     * <p>
     * If there is a system property named <code>"awt.toolkit"</code>, 
     * that property is treated as the name of a class that is a subclass 
     * of <code>Toolkit</code>. 
     * <p>
     * If the system property does not exist, then the default toolkit 
     * used is the class named <code>"sun.awt.motif.MToolkit"</code>, 
     * which is a motif implementation of the Abstract Window Toolkit. 
     * @return    the default toolkit.
     * @exception  AWTError  if a toolkit could not be found, or 
     *                 if one could not be accessed or instantiated.
     * @since     JDK1.0
     */
    public static synchronized Toolkit getDefaultToolkit() {
	if (toolkit == null) {
	    String nm = System.getProperty("awt.toolkit", "sun.awt.motif.MToolkit");
	    try {
		toolkit = (Toolkit)Class.forName(nm).newInstance();
	    } catch (ClassNotFoundException e) {
		throw new AWTError("Toolkit not found: " + nm);
	    } catch (InstantiationException e) {
		throw new AWTError("Could not instantiate Toolkit: " + nm);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜精品一区二区三区| 国内成+人亚洲+欧美+综合在线| 成人天堂资源www在线| 26uuu精品一区二区| 国产一区二区按摩在线观看| 国产亚洲欧美日韩日本| 大白屁股一区二区视频| 中文字幕一区二区5566日韩| 日本道色综合久久| 丝袜亚洲另类欧美综合| 欧美成人a∨高清免费观看| 国产乱子伦视频一区二区三区| 国产亚洲精品资源在线26u| 成人综合婷婷国产精品久久免费| **网站欧美大片在线观看| 欧美图区在线视频| 久久国产尿小便嘘嘘| 欧美国产成人在线| 欧美日韩视频不卡| 韩国精品主播一区二区在线观看| 最新欧美精品一区二区三区| 欧美日韩你懂得| 国产精品系列在线观看| 一级做a爱片久久| 欧美成人乱码一区二区三区| av电影在线观看一区| 日韩影视精彩在线| 国产亚洲欧洲997久久综合| 欧美三级在线看| 国产很黄免费观看久久| 亚洲一区二区三区在线看| 精品久久人人做人人爰| 99精品视频在线免费观看| 免费观看久久久4p| 亚洲欧美激情视频在线观看一区二区三区| 欧美人妖巨大在线| a4yy欧美一区二区三区| 狠狠网亚洲精品| 亚洲成人免费视频| 亚洲欧洲日产国产综合网| 日韩一区二区三区四区| 色噜噜狠狠一区二区三区果冻| 激情综合网av| 午夜精品成人在线视频| 中文字幕欧美一区| 久久久久久久电影| 欧美丰满嫩嫩电影| 在线观看国产日韩| av在线播放一区二区三区| 国产一区视频在线看| 日韩成人午夜电影| 亚洲曰韩产成在线| 亚洲男女毛片无遮挡| 久久久亚洲欧洲日产国码αv| 欧美另类一区二区三区| 91免费国产视频网站| 成人免费毛片aaaaa**| 久久丁香综合五月国产三级网站| 亚洲成人av一区二区| 亚洲欧美偷拍另类a∨色屁股| 国产网红主播福利一区二区| 精品日本一线二线三线不卡| 这里是久久伊人| 欧美精品1区2区3区| 欧美亚洲日本一区| 91蝌蚪porny| 不卡一卡二卡三乱码免费网站| 国产精品一区二区在线播放| 久久er精品视频| 久久er99热精品一区二区| 久久精品噜噜噜成人av农村| 日韩av电影一区| 日本va欧美va欧美va精品| 日韩av中文字幕一区二区| 无码av免费一区二区三区试看| 亚洲一级二级三级在线免费观看| 一区二区三区在线免费观看| 亚洲狼人国产精品| 艳妇臀荡乳欲伦亚洲一区| 亚洲美女少妇撒尿| 亚洲一区二区三区在线播放| 夜色激情一区二区| 日韩精品一二三| 老司机免费视频一区二区三区| 久久精品国产亚洲a| 国内精品国产成人| 国产a区久久久| 色嗨嗨av一区二区三区| 欧美日韩精品综合在线| 欧美一级欧美一级在线播放| 欧美tk—视频vk| 国产欧美一区二区三区网站| 国产精品福利在线播放| 亚洲人成伊人成综合网小说| 亚洲国产aⅴ天堂久久| 美女精品一区二区| 国产精品资源在线看| 99精品视频在线免费观看| 欧美性猛片aaaaaaa做受| 日韩欧美电影一区| 国产精品免费av| 一区二区三区高清在线| 麻豆精品国产91久久久久久| 国产激情91久久精品导航| 91免费在线播放| 欧美成人猛片aaaaaaa| 国产精品美女一区二区三区| 亚洲精品视频一区二区| 强制捆绑调教一区二区| 成人开心网精品视频| 在线观看亚洲精品视频| 成人高清在线视频| 欧美成人bangbros| 亚洲欧洲一区二区三区| 首页亚洲欧美制服丝腿| 粉嫩绯色av一区二区在线观看 | 91精品国产综合久久久蜜臀图片| 日韩无一区二区| 亚洲欧美中日韩| 热久久一区二区| 91视频www| 久久综合给合久久狠狠狠97色69| 日韩美女视频一区二区| 麻豆精品一二三| 日本久久一区二区| 精品福利视频一区二区三区| 亚洲精品高清视频在线观看| 久久电影网站中文字幕| 欧美性猛交xxxx乱大交退制版| 亚洲精品在线电影| 日欧美一区二区| 一本久道久久综合中文字幕| 久久综合狠狠综合久久激情 | 国产精品久久久久久久久搜平片| 午夜精品成人在线视频| 色综合网站在线| 久久久国产午夜精品| 日韩电影一区二区三区| 色吧成人激情小说| 国产欧美一区二区精品性| 日韩精品一区第一页| 91久久精品国产91性色tv| 久久久五月婷婷| 免费一级欧美片在线观看| 欧美视频日韩视频| 一区二区三区日韩欧美| 播五月开心婷婷综合| 久久免费的精品国产v∧| 日韩成人伦理电影在线观看| 日本电影欧美片| 最新国产精品久久精品| 成人免费电影视频| 国产区在线观看成人精品| 美女精品一区二区| 欧美一区二区日韩一区二区| 亚洲一区精品在线| 在线看日韩精品电影| 亚洲精品成人天堂一二三| 97久久超碰国产精品| 亚洲欧美一区二区三区久本道91 | 美女久久久精品| 91精品国产免费| 午夜av一区二区三区| 欧美日韩国产综合一区二区三区| 一区二区三区小说| 色婷婷久久久亚洲一区二区三区| 亚洲欧美日韩国产手机在线| 97久久人人超碰| 日韩理论片一区二区| 99久久国产综合精品色伊| 亚洲欧美日韩系列| 欧洲一区二区三区免费视频| 亚洲成人资源网| 日韩欧美色电影| 精品在线播放免费| 久久香蕉国产线看观看99| 国产高清成人在线| 中文字幕日韩精品一区| 欧美午夜精品理论片a级按摩| 五月激情丁香一区二区三区| 欧美一区二区三区在线观看| 美国一区二区三区在线播放| 精品精品国产高清a毛片牛牛| 久久99国产精品免费网站| 国产女人aaa级久久久级| 9i看片成人免费高清| 亚洲影视资源网| 欧美一二三四在线| 国产高清亚洲一区| 亚洲欧美激情一区二区| 欧美卡1卡2卡| 激情综合网最新| 综合久久久久久| 欧美一区二区三区喷汁尤物| 国产一区二区美女| 一区二区三区色| 精品国产乱码久久久久久蜜臀 | 久久精品在线免费观看| 成人精品小蝌蚪| 天天综合色天天|