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

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

?? basictextui.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     */    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();            if (alloc != null) {                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 (alloc != null) {            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;    }    // --- ViewFactory methods ------------------------------    /**     * Creates a view for an element.     * If a subclass wishes to directly implement the factory     * producing the view(s), it should reimplement this      * method.  By default it simply returns null indicating     * it is unable to represent the element.     *     * @param elem the element     * @return the view     */    public View create(Element elem) {        return null;    }    /**     * Creates a view for an element.     * If a subclass wishes to directly implement the factory     * producing the view(s), it should reimplement this      * method.  By default it simply returns null indicating     * it is unable to represent the part of the element.     *     * @param elem the element     * @param p0 the starting offset >= 0     * @param p1 the ending offset >= p0     * @return the view     */    public View create(Element elem, int p0, int p1) {        return null;    }    public static class BasicCaret extends DefaultCaret implements UIResource {}    public static class BasicHighlighter extends DefaultHighlighter implements UIResource {}    static class BasicCursor extends Cursor implements UIResource {    	BasicCursor(int type) {    	    super(type);    	}       	BasicCursor(String name) {    	    super(name);    	}    }    private static BasicCursor textCursor = new BasicCursor(Cursor.TEXT_CURSOR);    // ----- member variables ---------------------------------------    private static final EditorKit defaultKit = new DefaultEditorKit();    transient JTextComponent editor;    transient boolean painted;    transient RootView rootView = new RootView();    transient UpdateHandler updateHandler = new UpdateHandler();    private static final TransferHandler defaultTransferHandler = new TextTransferHandler();    private final DragListener dragListener = getDragListener();    private static final Position.Bias[] discardBias = new Position.Bias[1];    private DefaultCaret dropCaret;    /**     * Root view that acts as a gateway between the component     * and the View hierarchy.     */    class RootView extends View {        RootView() {            super(null);        }        void setView(View v) {            View oldView = view;            view = null;            if (oldView != null) {                // get rid of back reference so that the old                // hierarchy can be garbage collected.                oldView.setParent(null);            }            if (v != null) {                v.setParent(this);            }            view = v;        }	/**	 * Fetches the attributes to use when rendering.  At the root	 * level there are no attributes.  If an attribute is resolved	 * up the view hierarchy this is the end of the line.	 */        public AttributeSet getAttributes() {	    return null;	}        /**         * Determines the preferred span for this view along an axis.         *         * @param axis may be either X_AXIS or Y_AXIS         * @return the span the view would like to be rendered into.         *         Typically the view is told to render into the span         *         that is returned, although there is no guarantee.         *         The parent may choose to resize or break the view.         */        public float getPreferredSpan(int axis) {            if (view != null) {                return view.getPreferredSpan(axis);            }            return 10;        }        /**         * Determines the minimum span for this view along an axis.         *         * @param axis may be either X_AXIS or Y_AXIS         * @return the span the view would like to be rendered into.         *         Typically the view is told to render into the span         *         that is returned, although there is no guarantee.         *         The parent may choose to resize or break the view.         */        public float getMinimumSpan(int axis) {            if (view != null) {                return view.getMinimumSpan(axis);            }            return 10;        }        /**         * Determines the maximum span for this view along an axis.         *         * @param axis may be either X_AXIS or Y_AXIS         * @return the span the view would like to be rendered into.         *         Typically the view is told to render into the span         *         that is returned, although there is no guarantee.         *         The parent may choose to resize or break the view.         */        public float getMaximumSpan(int axis) {	    return Integer.MAX_VALUE;        }        /**         * Specifies that a preference has changed.         * Child views can call this on the parent to indicate that         * the preference has changed.  The root view routes this to         * invalidate on the hosting component.         * <p>         * This can be called on a different thread from the         * event dispatching thread and is basically unsafe to         * propagate into the component.  To make this safe,         * the operation is transferred over to the event dispatching          * thread for completion.  It is a design goal that all view         * methods be safe to call without concern for concurrency,         * and this behavior helps make that true.         *         * @param child the child view         * @param width true if the width preference has changed         * @param height true if the height preference has changed         */         public void preferenceChanged(View child, boolean width, boolean height) {            editor.revalidate();        }        /**         * Determines the desired alignment for this view along an axis.         *         * @param axis may be either X_AXIS or Y_AXIS         * @return the desired alignment, where 0.0 indicates the origin         *     and 1.0 the full span away from the origin         */        public float getAlignment(int axis) {            if (view != null) {                return view.getAlignment(axis);            }            return 0;        }        /**         * Renders the view.         *         * @param g the graphics context         * @param allocation the region to render into         */        public void paint(Graphics g, Shape allocation) {            if (view != null) {                Rectangle alloc = (allocation instanceof Rectangle) ?		          (Rectangle)allocation : allocation.getBounds();		setSize(alloc.width, alloc.height);                view.paint(g, allocation);            }        }                /**         * Sets the view parent.         *         * @param parent the parent view         */        public void setParent(View parent) {            throw new Error("Can't set parent on root view");        }        /**          * Returns the number of views in this view.  Since         * this view simply wraps the root of the view hierarchy         * it has exactly one child.         *         * @return the number of views         * @see #getView         */        public int getViewCount() {            return 1;        }        /**          * Gets the n-th view in this container.         *         * @param n the number of the view to get         * @return the view         */        public View getView(int n) {            return view;        }	/**	 * Returns the child view index representing the given position in	 * the model.  This is implemented to return the index of the only	 * child.	 *	 * @param pos the position >= 0	 * @return  index of the view representing the given position, or 	 *   -1 if no view represents that position	 * @since 1.3	 */        public int getViewIndex(int pos, Position.Bias b) {	    return 0;	}            /**         * Fetches the allocation for the given child view.          * This enables finding out where various views         * are located, without assuming the views store         * their location.  This returns the given allocation         * since this view simply acts as a gateway between         * the view hierarchy and the associated component.         *         * @param index the index of the child         * @param a  the allocation to this view.         * @return the allocation to the child         */        public Shape getChildAllocation(int index, Shape a) {            return a;        }        /**         * Provides a mapping from the document model coordinate space         * to the coordinate space of the view mapped to it.         *         * @param pos the position to convert         * @param a the allocated region to render into         * @return the bounding box of the given position         */        public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException {            if (view != null) {                return view.modelToView(pos, a, b);            }            return null;        }	/**	 * Provides a mapping from the document model coordinate space	 * to the coordinate space of the view mapped to it.	 *	 * @param p0 the position to convert >= 0	 * @param b0 the bias toward the previous character or the	 *  next character represented by p0, in case the 	 *  position is a boundary of two views. 	 * @param p1 the position to convert >= 0	 * @param b1 the bias toward the previous character or the	 *  next character represented by p1, in case the 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人黄色片在线观看| 久久99久久久久| 亚洲同性gay激情无套| 久久精品夜色噜噜亚洲aⅴ| 精品动漫一区二区三区在线观看| 在线播放91灌醉迷j高跟美女| 欧美日韩你懂得| 欧美日韩国产一级| 欧美肥胖老妇做爰| 日韩一区二区三区在线视频| 欧美www视频| 国产午夜亚洲精品理论片色戒| 国产亚洲欧美在线| 中文字幕国产精品一区二区| 国产精品国产馆在线真实露脸| 中文字幕一区三区| 亚洲午夜日本在线观看| 香蕉影视欧美成人| 毛片基地黄久久久久久天堂| 精品亚洲成av人在线观看| 国产伦精品一区二区三区在线观看 | 国产日韩欧美综合一区| 欧美激情一区二区三区全黄| 自拍偷在线精品自拍偷无码专区| 亚洲激情网站免费观看| 亚洲成a人v欧美综合天堂| 日韩av不卡一区二区| 精品亚洲欧美一区| av在线播放成人| 欧美三级视频在线观看| 日韩一区二区免费在线观看| 日韩免费高清av| 欧美韩日一区二区三区四区| 亚洲精品乱码久久久久久| 婷婷久久综合九色综合绿巨人 | 欧美在线综合视频| 6080国产精品一区二区| 久久色中文字幕| 日韩美女视频一区二区| 日韩电影在线一区二区| 国产传媒一区在线| 欧美亚洲国产bt| 精品成人私密视频| 亚洲人成7777| 久久国产乱子精品免费女| www.亚洲人| 欧美一区二区三区免费视频| 欧美激情一区二区三区四区| 日韩激情视频网站| 高清免费成人av| 中文字幕日本不卡| 亚洲成人动漫一区| 丁香六月综合激情| 欧美日韩在线观看一区二区 | 91亚洲国产成人精品一区二区三| 欧美军同video69gay| 亚洲国产精品成人久久综合一区| 亚洲国产精品一区二区www | 91亚洲永久精品| 欧美一区二区三区白人| 亚洲三级在线观看| 国产剧情一区二区| 欧美日韩在线播放一区| 国产精品美日韩| 久久国产免费看| 欧美精品在线观看一区二区| 国产精品高潮久久久久无| 日本不卡免费在线视频| 日本韩国欧美三级| 久久久久九九视频| 免费高清在线一区| 色婷婷综合视频在线观看| 久久女同互慰一区二区三区| 日韩福利电影在线| 欧美自拍偷拍午夜视频| 国产精品久久久久久久久免费相片 | 日韩精彩视频在线观看| 一本色道亚洲精品aⅴ| 久久久777精品电影网影网 | 欧美午夜精品一区| 国产精品福利影院| 成人免费毛片片v| 久久亚洲精品小早川怜子| 日韩av电影一区| 色婷婷综合久久久| 国产精品午夜春色av| 国产一区二区三区久久久| 日韩一区二区麻豆国产| 亚洲电影在线播放| 色婷婷亚洲精品| 亚洲视频网在线直播| 成人免费观看av| 国产欧美一区在线| 国产成人免费xxxxxxxx| 精品国产在天天线2019| 免费看欧美美女黄的网站| 欧美日韩国产美| 成人高清在线视频| 久久久久国产精品麻豆ai换脸 | 亚洲丶国产丶欧美一区二区三区| 一本久道久久综合中文字幕| 最新中文字幕一区二区三区 | 欧美精品第1页| 亚洲午夜视频在线| 欧美三级视频在线播放| 午夜在线成人av| 欧美日韩激情在线| 丝袜美腿成人在线| 宅男在线国产精品| 蜜桃av一区二区在线观看| 日韩一区二区中文字幕| 免费人成黄页网站在线一区二区| 日韩欧美一区电影| 精品一区二区在线观看| 久久久国际精品| 高清av一区二区| 国产精品久久三| 91在线无精精品入口| 一区二区三区欧美日韩| 欧美日韩中文字幕一区二区| 日韩电影在线看| 欧美r级在线观看| 国产不卡在线视频| 亚洲欧美在线高清| 欧美午夜视频网站| 日本视频一区二区| 久久你懂得1024| 色偷偷久久一区二区三区| 亚洲福利视频一区二区| 欧美zozo另类异族| 不卡一区在线观看| 亚洲影视在线观看| 精品欧美乱码久久久久久1区2区| 国产精品18久久久久久久网站| 中文字幕一区二区三中文字幕| 在线亚洲免费视频| 美女一区二区久久| 亚洲国产岛国毛片在线| 欧美性生活久久| 久久99国产乱子伦精品免费| 欧美国产日产图区| 欧美日韩日日夜夜| 国产黄色91视频| 亚洲综合在线视频| 精品国产91久久久久久久妲己| 成人黄色免费短视频| 日本在线不卡视频| 亚洲国产成人在线| 欧美一区二区三区免费在线看 | 色综合天天综合狠狠| 日韩高清不卡在线| 国产精品二区一区二区aⅴ污介绍| 欧美日韩视频专区在线播放| 国产伦精一区二区三区| 亚洲一区二区三区小说| 国产午夜亚洲精品理论片色戒| 欧美亚洲国产一区二区三区va | 在线视频欧美区| 久久av老司机精品网站导航| 亚洲视频在线观看三级| 精品动漫一区二区三区在线观看| 色欲综合视频天天天| 国产一区三区三区| 亚洲chinese男男1069| 国产精品乱码一区二区三区软件 | 欧美日韩第一区日日骚| 国产成人综合在线观看| 五月婷婷综合激情| 成人免费在线视频| 久久精品人人做人人爽97| 欧美日韩电影一区| 91麻豆高清视频| 国产丶欧美丶日本不卡视频| 免费在线一区观看| 一级特黄大欧美久久久| 中文字幕欧美国产| 精品久久久影院| 欧美人狂配大交3d怪物一区| 91在线小视频| 国产成都精品91一区二区三| 麻豆视频一区二区| 亚洲一卡二卡三卡四卡无卡久久| 日本一区二区综合亚洲| 精品福利在线导航| 日韩一区二区在线观看| 欧美性色黄大片| 色先锋资源久久综合| 99在线精品视频| 丰满亚洲少妇av| 国产精品一品二品| 久久成人麻豆午夜电影| 日韩av网站免费在线| 午夜日韩在线观看| 亚洲综合久久久| 亚洲精品中文在线| **网站欧美大片在线观看| 国产精品美女久久福利网站 | 狠狠狠色丁香婷婷综合激情| 免费观看日韩电影| 日韩电影在线观看电影|