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

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

?? basictextui.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
	 *  position is a boundary of two views. 	 * @param a the allocated region to render into	 * @return the bounding box of the given position is returned	 * @exception BadLocationException  if the given position does	 *   not represent a valid location in the associated document	 * @exception IllegalArgumentException for an invalid bias argument	 * @see View#viewToModel	 */	public Shape modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) throws BadLocationException {	    if (view != null) {		return view.modelToView(p0, b0, p1, b1, a);	    }	    return null;	}        /**         * Provides a mapping from the view coordinate space to the logical         * coordinate space of the model.         *         * @param x x coordinate of the view location to convert         * @param y y coordinate of the view location to convert         * @param a the allocated region to render into         * @return the location within the model that best represents the         *    given point in the view         */        public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) {            if (view != null) {                int retValue = view.viewToModel(x, y, a, bias);		return retValue;            }            return -1;        }        /**         * 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(int pos, Position.Bias b, Shape a,                                              int direction,                                             Position.Bias[] biasRet)             throws BadLocationException {            if( view != null ) {                int nextPos = view.getNextVisualPositionFrom(pos, b, a,						     direction, biasRet);		if(nextPos != -1) {		    pos = nextPos;		}		else {		    biasRet[0] = b;		}            }             return pos;        }        /**         * Gives notification that something was inserted into the document         * in a location that this view is responsible for.         *         * @param e the change information from the associated document         * @param a the current allocation of the view         * @param f the factory to use to rebuild if the view has children         */        public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) {            if (view != null) {                view.insertUpdate(e, a, f);            }        }                /**         * Gives notification that something was removed from the document         * in a location that this view is responsible for.         *         * @param e the change information from the associated document         * @param a the current allocation of the view         * @param f the factory to use to rebuild if the view has children         */        public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) {            if (view != null) {                view.removeUpdate(e, a, f);            }        }        /**         * Gives notification from the document that attributes were changed         * in a location that this view is responsible for.         *         * @param e the change information from the associated document         * @param a the current allocation of the view         * @param f the factory to use to rebuild if the view has children         */        public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) {            if (view != null) {                view.changedUpdate(e, a, f);            }        }        /**         * Returns the document model underlying the view.         *         * @return the model         */        public Document getDocument() {            return editor.getDocument();        }                /**         * Returns the starting offset into the model for this view.         *         * @return the starting offset         */        public int getStartOffset() {            if (view != null) {                return view.getStartOffset();            }            return getElement().getStartOffset();        }        /**         * Returns the ending offset into the model for this view.         *         * @return the ending offset         */        public int getEndOffset() {            if (view != null) {                return view.getEndOffset();            }            return getElement().getEndOffset();        }        /**         * Gets the element that this view is mapped to.         *         * @return the view         */        public Element getElement() {            if (view != null) {                return view.getElement();            }            return editor.getDocument().getDefaultRootElement();        }        /**         * Breaks this view on the given axis at the given length.         *         * @param axis may be either X_AXIS or Y_AXIS         * @param len specifies where a break is desired in the span         * @param the current allocation of the view         * @return the fragment of the view that represents the given span         *   if the view can be broken, otherwise null         */        public View breakView(int axis, float len, Shape a) {            throw new Error("Can't break root view");        }        /**         * Determines the resizability of the view along the         * given axis.  A value of 0 or less is not resizable.         *         * @param axis may be either X_AXIS or Y_AXIS         * @return the weight         */        public int getResizeWeight(int axis) {            if (view != null) {                return view.getResizeWeight(axis);            }            return 0;        }        /**         * Sets the view size.         *         * @param width the width         * @param height the height         */        public void setSize(float width, float height) {            if (view != null) {                view.setSize(width, height);            }        }        /**         * Fetches the container hosting the view.  This is useful for         * things like scheduling a repaint, finding out the host          * components font, etc.  The default implementation         * of this is to forward the query to the parent view.         *         * @return the container         */        public Container getContainer() {            return editor;        }                /**         * Fetches the factory to be used for building the         * various view fragments that make up the view that         * represents the model.  This is what determines         * how the model will be represented.  This is implemented         * to fetch the factory provided by the associated         * EditorKit unless that is null, in which case this         * simply returns the BasicTextUI itself which allows         * subclasses to implement a simple factory directly without         * creating extra objects.           *         * @return the factory         */        public ViewFactory getViewFactory() {            EditorKit kit = getEditorKit(editor);            ViewFactory f = kit.getViewFactory();            if (f != null) {                return f;            }            return BasicTextUI.this;        }        private View view;    }    /**     * Handles updates from various places.  If the model is changed,     * this class unregisters as a listener to the old model and      * registers with the new model.  If the document model changes,     * the change is forwarded to the root view.  If the focus     * accelerator changes, a new keystroke is registered to request     * focus.     */    class UpdateHandler implements PropertyChangeListener, DocumentListener, LayoutManager2, UIResource {        // --- PropertyChangeListener methods -----------------------        /**         * This method gets called when a bound property is changed.         * We are looking for document changes on the editor.         */        public final void propertyChange(PropertyChangeEvent evt) {            Object oldValue = evt.getOldValue();            Object newValue = evt.getNewValue();	    String propertyName = evt.getPropertyName();            if ((oldValue instanceof Document) || (newValue instanceof Document)) {                if (oldValue != null) {                    ((Document)oldValue).removeDocumentListener(this);		    i18nView = false;                }                if (newValue != null) {                    ((Document)newValue).addDocumentListener(this);                    if ("document" == propertyName) {                        setView(null);                        BasicTextUI.this.propertyChange(evt);                        modelChanged();                        return;                    }                }                modelChanged();            }	    if ("focusAccelerator" == propertyName) {		updateFocusAcceleratorBinding(true);            } else if ("componentOrientation" == propertyName) {                // Changes in ComponentOrientation require the views to be                // rebuilt.                modelChanged();            } else if ("font" == propertyName) {                modelChanged();            } else if ("dropLocation" == propertyName) {                dropIndexChanged();	    } else if ("editable" == propertyName) {                updateCursor();                modelChanged();	    }            BasicTextUI.this.propertyChange(evt);        }        private void dropIndexChanged() {            if (editor.getDropMode() == DropMode.USE_SELECTION) {                return;            }            JTextComponent.DropLocation dropLocation = editor.getDropLocation();            if (dropLocation == null) {                if (dropCaret != null) {                    dropCaret.deinstall(editor);                    editor.repaint(dropCaret);                    dropCaret = null;                }            } else {                if (dropCaret == null) {                    dropCaret = new BasicCaret();                    dropCaret.install(editor);                    dropCaret.setVisible(true);                }                dropCaret.setDot(dropLocation.getIndex(),                                 dropLocation.getBias());            }        }        // --- DocumentListener methods -----------------------        /**         * The insert notification.  Gets sent to the root of the view structure         * that represents the portion of the model being represented by the         * editor.  The factory is added as an argument to the update so that         * the views can update themselves in a dynamic (not hardcoded) way.         *         * @param e  The change notification from the currently associated         *  document.         * @see DocumentListener#insertUpdate         */        public final void insertUpdate(DocumentEvent e) {	    Document doc = e.getDocument();	    Object o = doc.getProperty("i18n");	    if (o instanceof Boolean) {		Boolean i18nFlag = (Boolean) o;		if (i18nFlag.booleanValue() != i18nView) {		    // i18n flag changed, rebuild the view		    i18nView = i18nFlag.booleanValue();		    modelChanged();		    return;		}	    }	    // normal insert update            Rectangle alloc = (painted) ? getVisibleEditorRect() : null;            rootView.insertUpdate(e, alloc, rootView.getViewFactory());        }        /**         * The remove notification.  Gets sent to the root of the view structure         * that represents the portion of the model being represented by the         * editor.  The factory is added as an argument to the update so that         * the views can update themselves in a dynamic (not hardcoded) way.         *         * @param e  The change notification from the currently associated         *  document.         * @see DocumentListener#removeUpdate         */        public final void removeUpdate(DocumentEvent e) {            Rectangle alloc = (painted) ? getVisibleEditorRect() : null;            rootView.removeUpdate(e, alloc, rootView.getViewFactory());	}        /**         * The change notification.  Gets sent to the root of the view structure         * that represents the portion of the model being represented by the         * editor.  The factory is added as an argument to the update so that         * the views can update themselves in a dynamic (not hardcoded) way.         *         * @param e  The change notification from the currently associated         *  document.         * @see DocumentListener#changeUpdate         */        public final void changedUpdate(DocumentEvent e) {            Rectangle alloc = (painted) ? getVisibleEditorRect() : null;            rootView.changedUpdate(e, alloc, rootView.getViewFactory());        }	// --- LayoutManager2 methods --------------------------------	/**	 * Adds the specified component with the specified name to	 * the layout.	 * @param name the component name	 * @param comp the component to be added	 */	public void addLayoutComponent(String name,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本国产一区| 国产精品二区一区二区aⅴ污介绍| 丁香激情综合五月| 精品一区二区日韩| 精品一区二区三区久久久| 亚洲一二三区在线观看| 国产精品久久久久久亚洲毛片| 久久久精品免费观看| 久久久久久久久久久久久久久99 | 欧美日韩中文一区| 色狠狠综合天天综合综合| 成人精品国产福利| www.日韩大片| 成人永久看片免费视频天堂| 成人激情文学综合网| 99久久婷婷国产综合精品电影| 95精品视频在线| 色综合天天综合给合国产| 粉嫩aⅴ一区二区三区四区五区| 国产白丝网站精品污在线入口| 成人丝袜18视频在线观看| 色一情一乱一乱一91av| 欧美唯美清纯偷拍| 久久综合色8888| 国产无一区二区| 亚洲欧美日韩国产中文在线| 亚州成人在线电影| 韩国精品主播一区二区在线观看 | 成人18精品视频| 欧美挠脚心视频网站| 欧美xingq一区二区| 国产亚洲综合av| 一区二区高清视频在线观看| 五月天欧美精品| 国产福利一区二区三区视频在线 | 日韩一区二区在线观看视频播放| 3751色影院一区二区三区| 精品欧美一区二区三区精品久久| 国产人久久人人人人爽| 亚洲激情自拍偷拍| 美女脱光内衣内裤视频久久影院| 不卡影院免费观看| 欧美大片一区二区三区| 亚洲情趣在线观看| 国产尤物一区二区在线| 欧美性xxxxx极品少妇| 国产蜜臀av在线一区二区三区| 亚洲黄色小视频| 精品亚洲成a人| 91麻豆高清视频| 日韩欧美亚洲国产另类| 综合欧美一区二区三区| 国产综合色视频| 色综合久久久网| 国产欧美精品一区aⅴ影院 | 极品少妇xxxx精品少妇| 欧美日韩亚洲综合| 国产精品久久久久久久浪潮网站| 美女久久久精品| 欧美日韩精品一区二区三区 | 亚洲精品在线观| 日韩专区欧美专区| 色婷婷香蕉在线一区二区| 国产精品美日韩| 国产高清亚洲一区| 精品久久久久香蕉网| 青青草视频一区| 欧美放荡的少妇| 亚洲6080在线| 欧美日韩午夜在线视频| 亚洲综合图片区| 欧美视频一区二区三区在线观看 | 欧美裸体一区二区三区| 亚洲女子a中天字幕| www.av亚洲| 亚洲少妇屁股交4| 色琪琪一区二区三区亚洲区| 中文字幕色av一区二区三区| 99久久精品国产麻豆演员表| 国产精品久久久久影视| 成人av在线电影| 亚洲女人****多毛耸耸8| www.爱久久.com| 亚洲免费伊人电影| 欧美日韩在线播放三区| 性久久久久久久| 日韩欧美一级在线播放| 韩国欧美一区二区| 国产精品久久久久aaaa| 91香蕉视频在线| 亚洲一区二区三区影院| 欧美丝袜丝交足nylons图片| 免费成人你懂的| 久久久精品国产免费观看同学| 懂色av一区二区三区蜜臀| 一区视频在线播放| 欧美日韩午夜精品| 国产一区高清在线| 中文字幕五月欧美| 欧美午夜精品久久久久久孕妇| 天堂一区二区在线免费观看| 欧美成人精品福利| 成人av网站在线| 亚洲成人黄色影院| 国产无人区一区二区三区| 色综合久久88色综合天天6| 亚洲成人先锋电影| 精品成人私密视频| 色婷婷国产精品| 精品一区二区国语对白| 亚洲天堂精品在线观看| 欧美老年两性高潮| 成人精品国产一区二区4080 | 日韩午夜激情电影| 不卡av免费在线观看| 丝袜亚洲精品中文字幕一区| 久久美女艺术照精彩视频福利播放| 色综合天天天天做夜夜夜夜做| 性感美女久久精品| 国产精品久久免费看| 884aa四虎影成人精品一区| 成人一级黄色片| 激情图片小说一区| 亚洲午夜私人影院| 中文字幕乱码一区二区免费| 这里只有精品视频在线观看| 99久久婷婷国产综合精品电影 | 成人免费视频视频在线观看免费 | 国产在线日韩欧美| 亚洲网友自拍偷拍| 国产精品视频麻豆| 欧美精品一区二区三区高清aⅴ | 久久色.com| 欧美麻豆精品久久久久久| 91在线精品秘密一区二区| 韩国女主播一区| 日韩不卡一区二区三区| 亚洲伊人色欲综合网| 国产精品久久久一本精品| 久久综合资源网| 日韩女优电影在线观看| 欧美色老头old∨ideo| 色综合色综合色综合色综合色综合| 激情六月婷婷久久| 免费亚洲电影在线| 午夜一区二区三区视频| 亚洲黄色在线视频| 一区二区在线观看免费视频播放| 国产精品美女久久久久久久久久久| 欧美精品一区二区三区在线播放| 欧美肥妇free| 欧美日韩国产综合一区二区| 欧美在线一二三| 91九色最新地址| 日本福利一区二区| 在线亚洲高清视频| 在线日韩国产精品| 欧美日韩免费观看一区二区三区| 欧洲一区在线电影| 欧美系列日韩一区| 欧美揉bbbbb揉bbbbb| 欧美日韩国产影片| 欧美一级日韩一级| 欧美一二区视频| 久久先锋影音av鲁色资源| 2023国产一二三区日本精品2022| 精品国产亚洲一区二区三区在线观看| 日韩欧美电影一区| 国产欧美日韩在线视频| 中文字幕在线不卡视频| 亚洲精品视频一区| 午夜av电影一区| 精品无人区卡一卡二卡三乱码免费卡| 久久成人麻豆午夜电影| 粉嫩在线一区二区三区视频| av中文字幕亚洲| 精品视频全国免费看| 欧美一级黄色大片| 中文字幕免费不卡在线| 亚洲国产裸拍裸体视频在线观看乱了| 日韩激情视频在线观看| 国产在线视频不卡二| 成人美女视频在线观看| 在线观看亚洲一区| 日韩一区二区不卡| 中文字幕国产精品一区二区| 亚洲一区二区四区蜜桃| 六月丁香婷婷色狠狠久久| 成人理论电影网| 欧美日韩成人综合在线一区二区| 精品福利av导航| 亚洲精品一二三| 久久99最新地址| 色网站国产精品| 久久久午夜精品| 亚洲国产日韩在线一区模特| 国产一区二区不卡| 欧美日韩国产一二三| 2023国产精品自拍| 天堂成人国产精品一区|