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

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

?? basictextui.java

?? java jdk 1.4的源碼
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
	    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;    }    /**     * Provides a way to determine the next visually represented model      * location that one might place a caret.  Some views may not be visible,     * they might not be in the same order found in the model, or they just     * might not allow access to some of the locations in the model.     *     * @param pos the position to convert >= 0     * @param a the allocated region to render into     * @param direction the direction from the current position that can     *  be thought of as the arrow keys typically found on a keyboard.     *  This may be SwingConstants.WEST, SwingConstants.EAST,      *  SwingConstants.NORTH, or SwingConstants.SOUTH.       * @return the location within the model that best represents the next     *  location visual position.     * @exception BadLocationException     * @exception IllegalArgumentException for an invalid direction     */    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();		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     */    public void damageRange(JTextComponent tc, int p0, int p1) {	damageRange(tc, p0, p1, Position.Bias.Forward, Position.Bias.Backward);    }    /**     * Causes the portion of the view responsible for the      * given part of the model to be repainted.     *     * @param p0 the beginning of the range >= 0     * @param p1 the end of the range >= p0     */    public void damageRange(JTextComponent t, int p0, int p1,			    Position.Bias p0Bias, Position.Bias p1Bias) {        if (painted) {            Rectangle alloc = getVisibleEditorRect();	    Document doc = t.getDocument();	    if (doc instanceof AbstractDocument) {		((AbstractDocument)doc).readLock();	    }            try {		rootView.setSize(alloc.width, alloc.height);		Shape toDamage = rootView.modelToView(p0, p0Bias,                                                      p1, p1Bias, alloc);		Rectangle rect = (toDamage instanceof Rectangle) ?		                 (Rectangle)toDamage : toDamage.getBounds();		editor.repaint(rect.x, rect.y, rect.width, rect.height);            } catch (BadLocationException e) {	    } finally {		if (doc instanceof AbstractDocument) {		    ((AbstractDocument)doc).readUnlock();		}	    }        }    }    /**     * Fetches the EditorKit for the UI.     *     * @param tc the text component for which this UI is installed     * @return the editor capabilities     * @see TextUI#getEditorKit     */    public EditorKit getEditorKit(JTextComponent tc) {        return defaultKit;    }    /**     * Fetches a View with the allocation of the associated      * text component (i.e. the root of the hierarchy) that      * can be traversed to determine how the model is being     * represented spatially.     * <p>     * <font color=red><b>NOTE:</b>The View hierarchy can     * be traversed from the root view, and other things     * can be done as well.  Things done in this way cannot     * be protected like simple method calls through the TextUI.     * Therefore, proper operation in the presence of concurrency     * must be arranged by any logic that calls this method!     * </font>     *     * @param tc the text component for which this UI is installed     * @return the view     * @see TextUI#getRootView     */    public View getRootView(JTextComponent tc) {        return rootView;    }    /**     * Returns the string to be used as the tooltip at the passed in location.     * This forwards the method onto the root View.     *     * @see javax.swing.text.JTextComponent#getToolTipText     * @see javax.swing.text.View#getToolTipText     * @since 1.4     */    public String getToolTipText(JTextComponent t, Point pt) {        if (!painted) {            return null;        }        Document doc = editor.getDocument();        String tt = null;        Rectangle alloc = getVisibleEditorRect();        if (doc instanceof AbstractDocument) {            ((AbstractDocument)doc).readLock();        }        try {            tt = rootView.getToolTipText(pt.x, pt.y, alloc);        } finally {            if (doc instanceof AbstractDocument) {                ((AbstractDocument)doc).readUnlock();            }        }        return tt;    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人丝袜美腿| 99久久精品99国产精品| 国产精品色噜噜| 5566中文字幕一区二区电影| av亚洲产国偷v产偷v自拍| 国产99久久精品| 国产一区二区视频在线| 久久99久国产精品黄毛片色诱| 亚洲一区二区影院| 伊人色综合久久天天人手人婷| 国产精品网站一区| 捆绑调教美女网站视频一区| 久久精品久久综合| 欧美色网站导航| 色婷婷久久一区二区三区麻豆| 国产成人午夜电影网| 日韩免费一区二区三区在线播放| 欧美狂野另类xxxxoooo| 日韩欧美一区二区在线视频| 日韩欧美色综合| 亚洲一区二区欧美| 91毛片在线观看| 91精品欧美一区二区三区综合在 | 日韩一区中文字幕| 亚洲少妇最新在线视频| 夜夜操天天操亚洲| 日本不卡视频在线| 麻豆精品视频在线观看| 国产电影一区在线| 精品sm在线观看| 国产精品色哟哟| 国产成人亚洲综合色影视| 精品伦理精品一区| 一区二区三区波多野结衣在线观看| 国产美女精品一区二区三区| 精品国产露脸精彩对白| 国内精品伊人久久久久av影院| jizz一区二区| 日韩美女视频一区二区| 成人精品鲁一区一区二区| 国产精品一区二区男女羞羞无遮挡| 99re免费视频精品全部| 1024成人网| 欧美日韩精品综合在线| 中文在线一区二区| 日日夜夜精品视频免费| 丁香天五香天堂综合| 中文字幕第一区综合| www..com久久爱| 亚洲图片有声小说| 暴力调教一区二区三区| 亚洲日本va午夜在线影院| 在线免费观看一区| 中文字幕日韩精品一区| 欧美中文字幕久久| 久久99在线观看| 欧美极品aⅴ影院| 欧美无砖砖区免费| 国产九色精品成人porny | 成人性生交大片免费看视频在线| 国产精品国产精品国产专区不蜜| 国产美女娇喘av呻吟久久| 国产精品青草久久| 欧美日韩你懂得| 夜夜嗨av一区二区三区网页| 日韩欧美一级在线播放| caoporn国产一区二区| 亚洲国产wwwccc36天堂| 久久久亚洲午夜电影| 无码av免费一区二区三区试看| av成人动漫在线观看| 亚洲成av人片| 制服丝袜一区二区三区| 国产成人在线观看| 日产国产高清一区二区三区| 91精品国产品国语在线不卡| 亚洲18女电影在线观看| 国产精品天天看| 欧美丰满少妇xxxxx高潮对白| 国产·精品毛片| 久久丁香综合五月国产三级网站| 亚洲欧美偷拍另类a∨色屁股| 99久久久无码国产精品| 蜜臀91精品一区二区三区| 国产精品国产精品国产专区不片| 日韩亚洲欧美在线| 日本精品视频一区二区| 午夜视频久久久久久| 国产欧美精品一区二区三区四区 | 日本欧美久久久久免费播放网| 日本一区二区三级电影在线观看| 欧美日本在线播放| 91丨九色丨国产丨porny| 国产一区二三区| 日韩精品每日更新| 亚洲成a人片综合在线| 中文字幕日韩一区| 中文字幕乱码一区二区免费| 日韩欧美国产精品一区| 欧美精品日韩一区| 欧美视频一区二区三区四区| 91免费观看视频在线| 99热99精品| 成人深夜在线观看| 国产不卡免费视频| 国产精品1区2区3区在线观看| 免费不卡在线视频| 青青草一区二区三区| 日本美女视频一区二区| 日韩主播视频在线| 午夜视黄欧洲亚洲| 丝袜美腿亚洲色图| 日韩高清在线电影| 麻豆精品视频在线| 狠狠色丁香九九婷婷综合五月 | 日韩专区中文字幕一区二区| 午夜伊人狠狠久久| 日韩二区在线观看| 久久99国产精品久久| 国产精品综合二区| 国产99精品在线观看| 不卡一卡二卡三乱码免费网站| 成人激情午夜影院| 91亚洲精品久久久蜜桃| 91九色最新地址| 欧美日韩国产一级片| 欧美成人官网二区| 国产亚洲欧美日韩在线一区| 欧美日韩成人激情| 欧美不卡一区二区| 久久午夜老司机| 欧美在线不卡视频| 欧美日韩一区 二区 三区 久久精品| 欧美三级一区二区| 精品国一区二区三区| 国产欧美精品一区| 一区二区三区在线视频观看58| 亚洲国产欧美在线人成| 老汉av免费一区二区三区| 国产成人欧美日韩在线电影| 91视频在线看| 欧美一级在线视频| 玉米视频成人免费看| 丝袜国产日韩另类美女| 国产精品91xxx| 欧美在线短视频| 国产亚洲综合性久久久影院| 亚洲日穴在线视频| 免费在线观看精品| 99国产精品视频免费观看| 欧美人牲a欧美精品| 国产无遮挡一区二区三区毛片日本| **欧美大码日韩| 麻豆免费看一区二区三区| 97久久精品人人爽人人爽蜜臀| 88在线观看91蜜桃国自产| 国产校园另类小说区| 午夜av电影一区| 91在线视频播放地址| 亚洲精品在线观看网站| 亚洲国产视频直播| 国产不卡在线一区| 日韩欧美一区在线| 亚洲一区二区三区四区五区中文| 国产综合色在线视频区| 欧美精品久久天天躁| 亚洲欧美日韩小说| 国产成人av自拍| 欧美一个色资源| 亚洲一区二区在线观看视频 | 精品一区二区久久久| 色诱亚洲精品久久久久久| 久久久久久久久岛国免费| 五月天婷婷综合| 色av综合在线| 亚洲色图一区二区| 国产成人激情av| 精品国产区一区| 丝袜美腿亚洲色图| 欧美在线免费观看亚洲| 日韩美女久久久| av亚洲精华国产精华| 国产午夜亚洲精品羞羞网站| 久久国产精品99久久久久久老狼| 欧美性猛交xxxxxx富婆| 亚洲欧美怡红院| 成人国产精品免费观看视频| 久久久无码精品亚洲日韩按摩| 日本欧美一区二区三区| 欧美二区三区91| 性感美女极品91精品| 欧美日韩精品免费观看视频 | 一区二区三区在线视频免费观看| 成人sese在线| 国产精品国模大尺度视频| 懂色av一区二区三区免费看| 国产视频一区在线播放| 九一九一国产精品| 久久精品夜色噜噜亚洲a∨| 国产一区不卡视频|