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

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

?? basictextui.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     * @param c the editor component     * @see ComponentUI#installUI     */    public void installUI(JComponent c) {        if (c instanceof JTextComponent) {            editor = (JTextComponent) c;            // install defaults            installDefaults();            installDefaults2();            // This is a workaround as these should not override what synth has            // set them to            if (!(this instanceof sun.swing.plaf.synth.SynthUI)){                // common case is background painted... this can                // easily be changed by subclasses or from outside                // of the component.                LookAndFeel.installProperty(editor, "opaque", Boolean.TRUE);                LookAndFeel.installProperty(editor, "autoscrolls", Boolean.TRUE);            }            // attach to the model and editor            editor.addPropertyChangeListener(updateHandler);            Document doc = editor.getDocument();            if (doc == null) {                // no model, create a default one.  This will                // fire a notification to the updateHandler                 // which takes care of the rest.                 editor.setDocument(getEditorKit(editor).createDefaultDocument());            } else {                doc.addDocumentListener(updateHandler);                modelChanged();            }            // install keymap            installListeners();            installKeyboardActions();	    LayoutManager oldLayout = editor.getLayout();	    if ((oldLayout == null) || (oldLayout instanceof UIResource)) {		// by default, use default LayoutManger implementation that		// will position the components associated with a View object.		editor.setLayout(updateHandler);	    }            updateBackground(editor);        } else {            throw new Error("TextUI needs JTextComponent");        }    }    /**     * Deinstalls the UI for a component.  This removes the listeners,     * uninstalls the highlighter, removes views, and nulls out the keymap.     *     * @param c the editor component     * @see ComponentUI#uninstallUI     */    public void uninstallUI(JComponent c) {        // detach from the model        editor.removePropertyChangeListener(updateHandler);        editor.getDocument().removeDocumentListener(updateHandler);        // view part        painted = false;        uninstallDefaults();        rootView.setView(null);        c.removeAll();	LayoutManager lm = c.getLayout();	if (lm instanceof UIResource) {	    c.setLayout(null);	}        // controller part        uninstallKeyboardActions();        uninstallListeners();        editor = null;    }    /**     * Superclass paints background in an uncontrollable way     * (i.e. one might want an image tiled into the background).     * To prevent this from happening twice, this method is     * reimplemented to simply paint.     * <p>     * <em>NOTE:</em> Superclass is also not thread-safe in      * it's rendering of the background, although that's not     * an issue with the default rendering.     */    public void update(Graphics g, JComponent c) {	paint(g, c);    }    /**     * Paints the interface.  This is routed to the     * paintSafely method under the guarantee that     * the model won't change from the view of this thread     * while it's rendering (if the associated model is     * derived from AbstractDocument).  This enables the      * model to potentially be updated asynchronously.     *     * @param g the graphics context     * @param c the editor component     */    public final void paint(Graphics g, JComponent c) {	if ((rootView.getViewCount() > 0) && (rootView.getView(0) != null)) {	    Document doc = editor.getDocument();	    if (doc instanceof AbstractDocument) {		((AbstractDocument)doc).readLock();	    }	    try {		paintSafely(g);	    } finally {		if (doc instanceof AbstractDocument) {		    ((AbstractDocument)doc).readUnlock();		}	    }	}    }    /**     * Gets the preferred size for the editor component.  If the component     * has been given a size prior to receiving this request, it will     * set the size of the view hierarchy to reflect the size of the component     * before requesting the preferred size of the view hierarchy.  This     * allows formatted views to format to the current component size before     * answering the request.  Other views don't care about currently formatted     * size and give the same answer either way.     *     * @param c the editor component     * @return the size     */    public Dimension getPreferredSize(JComponent c) {	Document doc = editor.getDocument();	Insets i = c.getInsets();	Dimension d = c.getSize();	if (doc instanceof AbstractDocument) {	    ((AbstractDocument)doc).readLock();	}	try {	    if ((d.width > (i.left + i.right)) && (d.height > (i.top + i.bottom))) {		rootView.setSize(d.width - i.left - i.right, d.height - i.top - i.bottom);	    }            else if (d.width == 0 && d.height == 0) {                // Probably haven't been layed out yet, force some sort of                // initial sizing.                rootView.setSize(Integer.MAX_VALUE, Integer.MAX_VALUE);            }	    d.width = (int) Math.min((long) rootView.getPreferredSpan(View.X_AXIS) +				     (long) i.left + (long) i.right, Integer.MAX_VALUE);	    d.height = (int) Math.min((long) rootView.getPreferredSpan(View.Y_AXIS) +				      (long) i.top + (long) i.bottom, Integer.MAX_VALUE);	} finally {	    if (doc instanceof AbstractDocument) {		((AbstractDocument)doc).readUnlock();	    }	}	return d;    }    /**     * Gets the minimum size for the editor component.     *     * @param c the editor component     * @return the size     */    public Dimension getMinimumSize(JComponent c) {	Document doc = editor.getDocument();        Insets i = c.getInsets();	Dimension d = new Dimension();	if (doc instanceof AbstractDocument) {	    ((AbstractDocument)doc).readLock();	}	try {	    d.width = (int) rootView.getMinimumSpan(View.X_AXIS) + i.left + i.right;	    d.height = (int)  rootView.getMinimumSpan(View.Y_AXIS) + i.top + i.bottom;	} finally {	    if (doc instanceof AbstractDocument) {		((AbstractDocument)doc).readUnlock();	    }	}        return d;    }    /**     * Gets the maximum size for the editor component.     *     * @param c the editor component     * @return the size     */    public Dimension getMaximumSize(JComponent c) {	Document doc = editor.getDocument();        Insets i = c.getInsets();	Dimension d = new Dimension();	if (doc instanceof AbstractDocument) {	    ((AbstractDocument)doc).readLock();	}	try {	    d.width = (int) Math.min((long) rootView.getMaximumSpan(View.X_AXIS) + 				     (long) i.left + (long) i.right, Integer.MAX_VALUE);	    d.height = (int) Math.min((long) rootView.getMaximumSpan(View.Y_AXIS) + 				      (long) i.top + (long) i.bottom, Integer.MAX_VALUE);	} finally {	    if (doc instanceof AbstractDocument) {		((AbstractDocument)doc).readUnlock();	    }	}        return d;    }    // ---- TextUI methods -------------------------------------------    /**     * Gets the allocation to give the root View.  Due     * to an unfortunate set of historical events this      * method is inappropriately named.  The Rectangle     * returned has nothing to do with visibility.       * The component must have a non-zero positive size for      * this translation to be computed.     *     * @return the bounding box for the root view     */    protected Rectangle getVisibleEditorRect() {	Rectangle alloc = editor.getBounds();	if ((alloc.width > 0) && (alloc.height > 0)) {	    alloc.x = alloc.y = 0;	    Insets insets = editor.getInsets();	    alloc.x += insets.left;	    alloc.y += insets.top;	    alloc.width -= insets.left + insets.right;	    alloc.height -= insets.top + insets.bottom;	    return alloc;	}	return null;    }    /**     * Converts the given location in the model to a place in     * the view coordinate system.     * The component must have a non-zero positive size for      * this translation to be computed.     *     * @param tc the text component for which this UI is installed     * @param pos the local location in the model to translate >= 0     * @return the coordinates as a rectangle, null if the model is not painted     * @exception BadLocationException  if the given position does not     *   represent a valid location in the associated document     * @see TextUI#modelToView     */    public Rectangle modelToView(JTextComponent tc, int pos) throws BadLocationException {	return modelToView(tc, pos, Position.Bias.Forward);    }    /**     * Converts the given location in the model to a place in     * the view coordinate system.     * The component must have a non-zero positive size for      * this translation to be computed.     *     * @param tc the text component for which this UI is installed     * @param pos the local location in the model to translate >= 0     * @return the coordinates as a rectangle, null if the model is not painted     * @exception BadLocationException  if the given position does not     *   represent a valid location in the associated document     * @see TextUI#modelToView     */    public Rectangle modelToView(JTextComponent tc, int pos, Position.Bias bias) throws BadLocationException {	Document doc = editor.getDocument();	if (doc instanceof AbstractDocument) {	    ((AbstractDocument)doc).readLock();	}	try {	    Rectangle alloc = getVisibleEditorRect();	    if (alloc != null) {		rootView.setSize(alloc.width, alloc.height);		Shape s = rootView.modelToView(pos, alloc, bias);		if (s != null) {		  return s.getBounds();		}	    }	} finally {	    if (doc instanceof AbstractDocument) {		((AbstractDocument)doc).readUnlock();	    }	}	return null;    }    /**     * Converts the given place in the view coordinate system     * to the nearest representative location in the model.     * The component must have a non-zero positive size for      * this translation to be computed.     *     * @param tc the text component for which this UI is installed     * @param pt the location in the view to translate.  This     *  should be in the same coordinate system as the mouse events.     * @return the offset from the start of the document >= 0,     *   -1 if not painted     * @see TextUI#viewToModel     */    public int viewToModel(JTextComponent tc, Point pt) {	return viewToModel(tc, pt, discardBias);    }    /**     * Converts the given place in the view coordinate system     * to the nearest representative location in the model.     * The component must have a non-zero positive size for      * this translation to be computed.     *     * @param tc the text component for which this UI is installed     * @param pt the location in the view to translate.  This     *  should be in the same coordinate system as the mouse events.     * @return the offset from the start of the document >= 0,     *   -1 if the component doesn't yet have a positive size.     * @see TextUI#viewToModel     */    public int viewToModel(JTextComponent tc, Point pt,			   Position.Bias[] biasReturn) {	int offs = -1;	Document doc = editor.getDocument();	if (doc instanceof AbstractDocument) {	    ((AbstractDocument)doc).readLock();	}	try {	    Rectangle alloc = getVisibleEditorRect();	    if (alloc != null) {		rootView.setSize(alloc.width, alloc.height);		offs = rootView.viewToModel(pt.x, pt.y, alloc, biasReturn);	    }	} finally {	    if (doc instanceof AbstractDocument) {		((AbstractDocument)doc).readUnlock();	    }	}        return offs;    }    /**     * {@inheritDoc}     */    public int getNextVisualPositionFrom(JTextComponent t, int pos,		    Position.Bias b, int direction, Position.Bias[] biasRet)	            throws BadLocationException{	Document doc = editor.getDocument();	if (doc instanceof AbstractDocument) {	    ((AbstractDocument)doc).readLock();	}	try {	    if (painted) {		Rectangle alloc = getVisibleEditorRect();                if (alloc != null) {                    rootView.setSize(alloc.width, alloc.height);                }		return rootView.getNextVisualPositionFrom(pos, b, alloc, direction,							  biasRet);	    }	} finally {	    if (doc instanceof AbstractDocument) {		((AbstractDocument)doc).readUnlock();	    }	}	return -1;    }    /**     * Causes the portion of the view responsible for the     * given part of the model to be repainted.  Does nothing if     * the view is not currently painted.     *     * @param tc the text component for which this UI is installed     * @param p0 the beginning of the range >= 0     * @param p1 the end of the range >= p0     * @see TextUI#damageRange

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色网综合在线观看| 日韩av在线免费观看不卡| 国产成人av一区二区三区在线| 欧美成人bangbros| 狠狠色丁香婷婷综合久久片| 精品国产99国产精品| 国内不卡的二区三区中文字幕| 久久综合色8888| 国产精品18久久久久久vr| 国产视频在线观看一区二区三区 | 一区二区高清免费观看影视大全| 91黄色小视频| 丝瓜av网站精品一区二区| 日韩欧美中文字幕公布| 国产成人自拍网| 亚洲精品乱码久久久久| 91精品黄色片免费大全| 国产精品一区二区不卡| 国产精品二三区| 欧美三级日韩三级国产三级| 美美哒免费高清在线观看视频一区二区 | 555夜色666亚洲国产免| 韩国女主播一区| 136国产福利精品导航| 欧美少妇xxx| 国产伦精品一区二区三区免费| 中文字幕一区二区三区在线不卡| 欧美性大战久久久| 精品一区二区三区蜜桃| 亚洲人成小说网站色在线| 在线综合视频播放| 成人午夜免费视频| 婷婷中文字幕综合| 中文字幕欧美激情一区| 欧美日韩激情一区二区| 国产成人超碰人人澡人人澡| 亚洲午夜精品一区二区三区他趣| 久久久久久久久岛国免费| 色天天综合久久久久综合片| 国产最新精品精品你懂的| 亚洲人精品午夜| 精品国内片67194| 欧美日韩午夜影院| 99久久精品一区二区| 美腿丝袜一区二区三区| 伊人性伊人情综合网| 久久精品亚洲国产奇米99| 欧美日韩激情一区二区| eeuss鲁片一区二区三区在线看| 免费在线观看精品| 亚洲高清免费观看高清完整版在线观看| 久久综合国产精品| 欧美精品国产精品| 一本到不卡免费一区二区| 久久精品免费看| 午夜亚洲国产au精品一区二区| 国产精品国产成人国产三级| 精品欧美一区二区在线观看| 欧美另类z0zxhd电影| 色综合久久久久综合体| 久久精品国产77777蜜臀| 亚洲午夜免费视频| 亚洲情趣在线观看| 国产精品美女久久久久久久网站| 欧美草草影院在线视频| 91麻豆精品91久久久久同性| 欧美性受xxxx| 色菇凉天天综合网| 91网站最新网址| 成人国产免费视频| 国产福利91精品一区二区三区| 久久精品国产久精国产爱| 天天综合日日夜夜精品| 亚洲电影一区二区三区| 一区二区成人在线视频 | 亚洲成人一二三| 午夜欧美电影在线观看| 亚洲一区二区五区| 亚洲精品午夜久久久| **欧美大码日韩| 亚洲免费观看高清| 亚洲男同1069视频| 亚洲裸体在线观看| 一区二区在线观看不卡| 亚洲午夜av在线| 五月婷婷色综合| 日本伊人午夜精品| 久久99久久久欧美国产| 久久草av在线| 国产精品亚洲午夜一区二区三区 | 亚洲国产精品自拍| 亚洲综合久久久久| 午夜精品久久久久久久99水蜜桃| 亚洲伊人伊色伊影伊综合网| 性做久久久久久| 老色鬼精品视频在线观看播放| 国模冰冰炮一区二区| 99久久99精品久久久久久| 91福利国产成人精品照片| 欧美精品久久99久久在免费线| 日韩一区二区三区四区| 久久久久久久久久美女| 中文字幕免费不卡在线| 亚洲女人****多毛耸耸8| 日日摸夜夜添夜夜添国产精品| 精品一区二区免费| 成人精品视频.| 欧美性猛交xxxx黑人交| 欧美成人精品福利| 国产精品水嫩水嫩| 亚洲一区在线观看网站| 激情成人午夜视频| 91亚洲精品乱码久久久久久蜜桃| 欧美日韩在线播放一区| 精品成人私密视频| 亚洲免费观看高清在线观看| 美女mm1313爽爽久久久蜜臀| 不卡的电影网站| 91.麻豆视频| 国产精品国产三级国产aⅴ入口| 亚洲成av人影院在线观看网| 国产一区视频网站| 在线日韩av片| 久久久亚洲精品一区二区三区 | 午夜亚洲国产au精品一区二区| 国产老女人精品毛片久久| aaa欧美色吧激情视频| 欧美一区二区免费| 中文字幕一区在线观看| 精品一区二区三区香蕉蜜桃| 欧美亚洲尤物久久| 久久久综合视频| 日本成人在线一区| 91性感美女视频| 久久亚洲捆绑美女| 亚洲bdsm女犯bdsm网站| 国产精品伊人色| 欧美顶级少妇做爰| 亚洲欧美日韩一区二区| 国产伦精品一区二区三区视频青涩 | 一区二区三区在线观看网站| 国产一区二区伦理片| 欧美人伦禁忌dvd放荡欲情| 中文字幕的久久| 精品一区二区三区免费视频| 欧美日韩国产综合久久| 亚洲视频网在线直播| 国产精品一区二区在线观看不卡| 欧美疯狂性受xxxxx喷水图片| 亚洲手机成人高清视频| 国产精品12区| 久久久噜噜噜久久人人看| 日本中文一区二区三区| 欧美日韩精品高清| 亚洲精品视频一区二区| 成人av影院在线| 国产欧美一区二区精品忘忧草| 免费在线视频一区| 日韩一卡二卡三卡| 天使萌一区二区三区免费观看| 91麻豆产精品久久久久久| 国产精品毛片a∨一区二区三区| 国产最新精品免费| 久久综合精品国产一区二区三区 | 成人性生交大片免费看中文| 2024国产精品| 国产美女一区二区三区| 久久综合色8888| 国产精品2024| 日本一区二区动态图| 懂色av一区二区三区免费看| 久久久午夜电影| 国产成人精品免费一区二区| 欧美国产成人在线| 丁香婷婷综合五月| 国产精品蜜臀在线观看| av在线不卡观看免费观看| |精品福利一区二区三区| 91久久奴性调教| 亚洲午夜日本在线观看| 欧美一区二区三区在线视频| 视频在线观看国产精品| 日韩欧美国产成人一区二区| 黄色精品一二区| 国产精品国产三级国产三级人妇| 91在线丨porny丨国产| 亚洲综合无码一区二区| 欧美人妇做爰xxxⅹ性高电影| 玖玖九九国产精品| 中文字幕乱码久久午夜不卡| 色综合久久久久| 亚洲高清一区二区三区| 欧美va亚洲va香蕉在线| 国产成人小视频| 亚洲黄色片在线观看| 337p亚洲精品色噜噜| 国产精品一二一区| 亚洲伊人伊色伊影伊综合网| 日韩一级黄色片| 不卡电影一区二区三区|