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

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

?? basicsplitpanedivider.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
            }        }        revalidate();    }    /**     * Creates and return an instance of JButton that can be used to     * collapse the left component in the split pane.     */    protected JButton createLeftOneTouchButton() {        JButton b = new JButton() {            public void setBorder(Border b) {            }            public void paint(Graphics g) {                if (splitPane != null) {                    int[]   xs = new int[3];                    int[]   ys = new int[3];                    int     blockSize;                    // Fill the background first ...                    g.setColor(this.getBackground());                    g.fillRect(0, 0, this.getWidth(),                               this.getHeight());                    // ... then draw the arrow.                    g.setColor(Color.black);                    if (orientation == JSplitPane.VERTICAL_SPLIT) {                        blockSize = Math.min(getHeight(), oneTouchSize);                        xs[0] = blockSize;                        xs[1] = 0;                        xs[2] = blockSize << 1;                        ys[0] = 0;                        ys[1] = ys[2] = blockSize;                        g.drawPolygon(xs, ys, 3); // Little trick to make the                                                  // arrows of equal size                    }                    else {                        blockSize = Math.min(getWidth(), oneTouchSize);                        xs[0] = xs[2] = blockSize;                        xs[1] = 0;                        ys[0] = 0;                        ys[1] = blockSize;                        ys[2] = blockSize << 1;                    }                    g.fillPolygon(xs, ys, 3);                }            }	    // Don't want the button to participate in focus traversable.	    public boolean isFocusTraversable() {		return false;	    }        };        b.setMinimumSize(new Dimension(oneTouchSize, oneTouchSize));	b.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));        b.setFocusPainted(false);        b.setBorderPainted(false);        b.setRequestFocusEnabled(false);        return b;    }    /**     * Creates and return an instance of JButton that can be used to     * collapse the right component in the split pane.     */    protected JButton createRightOneTouchButton() {        JButton b = new JButton() {            public void setBorder(Border border) {            }            public void paint(Graphics g) {                if (splitPane != null) {                    int[]          xs = new int[3];                    int[]          ys = new int[3];                    int            blockSize;                    // Fill the background first ...                    g.setColor(this.getBackground());                    g.fillRect(0, 0, this.getWidth(),                               this.getHeight());                    // ... then draw the arrow.                    if (orientation == JSplitPane.VERTICAL_SPLIT) {                        blockSize = Math.min(getHeight(), oneTouchSize);                        xs[0] = blockSize;                        xs[1] = blockSize << 1;                        xs[2] = 0;                        ys[0] = blockSize;                        ys[1] = ys[2] = 0;                    }                    else {                        blockSize = Math.min(getWidth(), oneTouchSize);                        xs[0] = xs[2] = 0;                        xs[1] = blockSize;                        ys[0] = 0;                        ys[1] = blockSize;                        ys[2] = blockSize << 1;                    }                    g.setColor(Color.black);                    g.fillPolygon(xs, ys, 3);                }            }	    // Don't want the button to participate in focus traversable.	    public boolean isFocusTraversable() {		return false;	    }        };        b.setMinimumSize(new Dimension(oneTouchSize, oneTouchSize));	b.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));        b.setFocusPainted(false);        b.setBorderPainted(false);        b.setRequestFocusEnabled(false);        return b;    }    /**     * Message to prepare for dragging. This messages the BasicSplitPaneUI     * with startDragging.     */    protected void prepareForDragging() {        splitPaneUI.startDragging();    }    /**     * Messages the BasicSplitPaneUI with dragDividerTo that this instance     * is contained in.     */    protected void dragDividerTo(int location) {        splitPaneUI.dragDividerTo(location);    }    /**     * Messages the BasicSplitPaneUI with finishDraggingTo that this instance     * is contained in.     */    protected void finishDraggingTo(int location) {        splitPaneUI.finishDraggingTo(location);    }    /**     * MouseHandler is responsible for converting mouse events     * (released, dragged...) into the appropriate DragController      * methods.     * <p>     */    protected class MouseHandler extends MouseAdapter            implements MouseMotionListener    {        /**         * Starts the dragging session by creating the appropriate instance         * of DragController.         */        public void mousePressed(MouseEvent e) {            if ((e.getSource() == BasicSplitPaneDivider.this ||		 e.getSource() == splitPane) &&		dragger == null &&splitPane.isEnabled()) {                Component            newHiddenDivider = splitPaneUI.                                     getNonContinuousLayoutDivider();                if (hiddenDivider != newHiddenDivider) {                    if (hiddenDivider != null) {                        hiddenDivider.removeMouseListener(this);                        hiddenDivider.removeMouseMotionListener(this);                    }                    hiddenDivider = newHiddenDivider;                    if (hiddenDivider != null) {                        hiddenDivider.addMouseMotionListener(this);                        hiddenDivider.addMouseListener(this);                    }                }                if (splitPane.getLeftComponent() != null &&                    splitPane.getRightComponent() != null) {                    if (orientation == JSplitPane.HORIZONTAL_SPLIT) {                        dragger = new DragController(e);                    }                    else {                        dragger = new VerticalDragController(e);                    }                    if (!dragger.isValid()) {                        dragger = null;                    }                    else {                        prepareForDragging();                        dragger.continueDrag(e);                    }                }                e.consume();            }        }        /**         * If dragger is not null it is messaged with completeDrag.         */        public void mouseReleased(MouseEvent e) {            if (dragger != null) {                if (e.getSource() == splitPane) {                    dragger.completeDrag(e.getX(), e.getY());                }		else if (e.getSource() == BasicSplitPaneDivider.this) {                    Point   ourLoc = getLocation();		    dragger.completeDrag(e.getX() + ourLoc.x,					 e.getY() + ourLoc.y);		}                else if (e.getSource() == hiddenDivider) {                    Point   hDividerLoc = hiddenDivider.getLocation();                    int     ourX = e.getX() + hDividerLoc.x;                    int     ourY = e.getY() + hDividerLoc.y;                                        dragger.completeDrag(ourX, ourY);                }                dragger = null;                e.consume();            }        }        //        // MouseMotionListener        //        /**         * If dragger is not null it is messaged with continueDrag.         */        public void mouseDragged(MouseEvent e) {            if (dragger != null) {                if (e.getSource() == splitPane) {                    dragger.continueDrag(e.getX(), e.getY());                }		else if (e.getSource() == BasicSplitPaneDivider.this) {                    Point   ourLoc = getLocation();                                        dragger.continueDrag(e.getX() + ourLoc.x,					 e.getY() + ourLoc.y);		}                else if (e.getSource() == hiddenDivider) {                    Point   hDividerLoc = hiddenDivider.getLocation();                    int     ourX = e.getX() + hDividerLoc.x;                    int     ourY = e.getY() + hDividerLoc.y;                                        dragger.continueDrag(ourX, ourY);                }                e.consume();            }        }        /**         *  Resets the cursor based on the orientation.         */        public void mouseMoved(MouseEvent e) {        }        /**         * Invoked when the mouse enters a component.         *         * @param e MouseEvent describing the details of the enter event.         * @since 1.5         */        public void mouseEntered(MouseEvent e) {            if (e.getSource() == BasicSplitPaneDivider.this) {                setMouseOver(true);            }        }        /**         * Invoked when the mouse exits a component.         *         * @param e MouseEvent describing the details of the exit event.         * @since 1.5         */        public void mouseExited(MouseEvent e) {            if (e.getSource() == BasicSplitPaneDivider.this) {                setMouseOver(false);            }        }    }    /**     * Handles the events during a dragging session for a     * HORIZONTAL_SPLIT oriented split pane. This continually     * messages <code>dragDividerTo</code> and then when done messages     * <code>finishDraggingTo</code>. When an instance is created it should be     * messaged with <code>isValid</code> to insure that dragging can happen     * (dragging won't be allowed if the two views can not be resized).     * <p>     * <strong>Warning:</strong>     * Serialized objects of this class will not be compatible with     * future Swing releases. The current serialization support is     * appropriate for short term storage or RMI between applications running     * the same version of Swing.  As of 1.4, support for long term storage     * of all JavaBeans<sup><font size="-2">TM</font></sup>     * has been added to the <code>java.beans</code> package.     * Please see {@link java.beans.XMLEncoder}.     */    protected class DragController    {        /**         * Initial location of the divider.         */        int initialX;        /**         * Maximum and minimum positions to drag to.         */        int maxX, minX;        /**         * Initial location the mouse down happened at.         */        int offset;        protected DragController(MouseEvent e) {            JSplitPane  splitPane = splitPaneUI.getSplitPane();            Component   leftC = splitPane.getLeftComponent();	    Component   rightC = splitPane.getRightComponent();            initialX = getLocation().x;	    if (e.getSource() == BasicSplitPaneDivider.this) {		offset = e.getX();	    }	    else { // splitPane		offset = e.getX() - initialX;	    }	    if (leftC == null || rightC == null || offset < -1 ||		offset >= getSize().width) {		// Don't allow dragging.		maxX = -1;	    }	    else {		Insets      insets = splitPane.getInsets();                if (leftC.isVisible()) {                    minX = leftC.getMinimumSize().width;		    if (insets != null) {			minX += insets.left;		    }                }                else {                    minX = 0;                }                if (rightC.isVisible()) {		    int right = (insets != null) ? insets.right : 0;                    maxX = Math.max(0, splitPane.getSize().width -                                    (getSize().width + right) -                                    rightC.getMinimumSize().width);                }                else {		    int right = (insets != null) ? insets.right : 0;                    maxX = Math.max(0, splitPane.getSize().width -                                    (getSize().width + right));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品成人综合| 99re66热这里只有精品3直播 | 日本大香伊一区二区三区| 欧美视频在线一区二区三区| 欧美一区二区三区色| 久久精品亚洲一区二区三区浴池| 国产精品久久久久9999吃药| 亚洲综合激情网| 国产成人日日夜夜| 欧美变态tickle挠乳网站| 色爱区综合激月婷婷| 欧美日韩夫妻久久| 中文字幕不卡在线播放| 欧美日韩国产综合一区二区| 国产真实精品久久二三区| 岛国精品在线播放| 日韩你懂的电影在线观看| 一区二区三区小说| 国产成人亚洲综合a∨猫咪| 日韩午夜激情免费电影| 亚洲一区二区三区激情| 成人高清视频在线| 国产亚洲一二三区| 极品少妇xxxx偷拍精品少妇| 欧美片网站yy| 色婷婷综合久久久久中文一区二区 | 91精品福利在线一区二区三区| 亚洲欧洲日本在线| 国产高清久久久久| 久久久亚洲综合| 成人av电影在线| 久久久精品蜜桃| 国产大陆亚洲精品国产| 国产免费观看久久| 中文字幕第一区二区| 处破女av一区二区| 国产精品麻豆久久久| 一本色道综合亚洲| 亚洲国产综合人成综合网站| 欧美午夜在线观看| 日韩激情视频在线观看| 精品福利一区二区三区| 成人国产精品视频| 亚洲一区二区三区影院| 日韩手机在线导航| 99精品热视频| 蜜桃久久久久久| ㊣最新国产の精品bt伙计久久| 九一九一国产精品| 91精品午夜视频| 欧美中文字幕亚洲一区二区va在线| 亚洲精品成a人| 日韩美一区二区三区| av在线播放一区二区三区| 亚洲国产精品一区二区久久恐怖片 | 国产成人一区在线| 视频一区二区中文字幕| 久久久三级国产网站| 精彩视频一区二区| 91美女蜜桃在线| 精品一区二区免费视频| 洋洋成人永久网站入口| 欧美国产一区二区在线观看| 欧美偷拍一区二区| 97久久精品人人爽人人爽蜜臀 | 欧美三级一区二区| 国产suv精品一区二区三区| 久久精品二区亚洲w码| 亚洲超碰精品一区二区| 一区二区三区中文在线观看| 国产婷婷色一区二区三区四区| 欧美理论电影在线| 欧美网站大全在线观看| 欧美视频中文字幕| 欧美日韩国产高清一区二区三区 | 日韩av中文字幕一区二区| 亚洲日本一区二区三区| 国产农村妇女精品| 日韩伦理av电影| 亚洲激情av在线| 天天色综合成人网| 美女视频黄免费的久久 | 亚洲精品伦理在线| 亚洲午夜久久久久久久久电影院| 亚洲免费观看高清完整版在线观看 | 国产精品久久久久一区二区三区 | 丁香婷婷深情五月亚洲| 成人激情黄色小说| 欧美日韩高清影院| 欧美成人video| 亚洲欧洲www| 日韩av中文在线观看| 丁香婷婷综合激情五月色| 欧洲亚洲精品在线| 久久综合久久99| 一区二区三区中文字幕电影 | 视频在线观看国产精品| 国产一区二区导航在线播放| av在线不卡网| 日韩一区二区在线看| 最新日韩在线视频| 国产成人精品免费| 欧美军同video69gay| 亚洲一区中文日韩| 国产精品白丝av| 欧美一区二区观看视频| 一个色综合网站| 岛国一区二区三区| 久久综合视频网| 日本不卡在线视频| 欧美色中文字幕| 一区二区三区欧美日韩| 不卡的电影网站| 久久久精品中文字幕麻豆发布| 一级日本不卡的影视| 欧美制服丝袜第一页| 国产精品丝袜在线| 成人午夜视频网站| 欧美国产一区视频在线观看| 国产乱一区二区| 2021久久国产精品不只是精品 | 欧美一级欧美一级在线播放| 亚洲第一成人在线| 欧美欧美欧美欧美| 日本美女一区二区三区视频| 91精品国产乱码| 日韩电影免费在线看| 色综合中文字幕国产 | 国产偷v国产偷v亚洲高清| caoporn国产一区二区| 秋霞av亚洲一区二区三| 夜夜精品视频一区二区| 国产精品996| 国产喂奶挤奶一区二区三区| 国产精品夜夜嗨| 国产精品免费丝袜| 成人三级伦理片| 亚洲影视在线观看| 欧洲一区在线观看| 舔着乳尖日韩一区| 久久女同精品一区二区| 国产成人在线视频播放| 中文字幕一区二区视频| 色综合天天在线| 肉色丝袜一区二区| 国产亚洲精品福利| 在线观看日韩精品| 老司机精品视频线观看86| 国产精品拍天天在线| 91成人在线免费观看| 国产一区视频网站| 国产精品久久久久aaaa樱花| 日韩精品一区二区三区在线播放 | 国产91精品一区二区| 亚洲自拍偷拍欧美| 久久久蜜臀国产一区二区| 99久久精品一区二区| 一区二区三区日韩欧美精品| 日韩欧美一级精品久久| 94色蜜桃网一区二区三区| 麻豆成人久久精品二区三区小说| 综合av第一页| 国产亚洲欧美日韩俺去了| 精品视频免费看| 97久久精品人人做人人爽| 国模大尺度一区二区三区| 天天av天天翘天天综合网色鬼国产| 中文字幕成人在线观看| 亚洲精品一线二线三线无人区| 欧美视频完全免费看| 色国产精品一区在线观看| 亚洲国产成人高清精品| 亚洲毛片av在线| 亚洲免费色视频| 亚洲欧美日韩在线播放| 国产精品福利一区| 欧美国产一区在线| 国产精品理论片| 国产精品视频yy9299一区| 久久久久久久久久美女| 国产色91在线| 欧美国产禁国产网站cc| 亚洲国产成人一区二区三区| 26uuu国产在线精品一区二区| 日韩欧美国产小视频| 日韩精品中文字幕一区二区三区 | 欧美一区二区高清| 精品国产髙清在线看国产毛片| 8x福利精品第一导航| 日韩一级二级三级| 97se亚洲国产综合自在线| 欧美视频中文字幕| wwwwxxxxx欧美| 亚洲欧美日韩国产另类专区| 午夜精品一区二区三区三上悠亚| 久久精品国产99久久6| 9久草视频在线视频精品| 欧美人伦禁忌dvd放荡欲情| 91国偷自产一区二区使用方法| 欧美福利视频一区|