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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? basicsplitpanedivider.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
                }                if (maxX < minX) minX = maxX = 0;            }        }        /**         * Returns true if the dragging session is valid.         */        protected boolean isValid() {            return (maxX > 0);        }        /**         * Returns the new position to put the divider at based on         * the passed in MouseEvent.         */        protected int positionForMouseEvent(MouseEvent e) {	    int newX = (e.getSource() == BasicSplitPaneDivider.this) ?		        (e.getX() + getLocation().x) : e.getX();            newX = Math.min(maxX, Math.max(minX, newX - offset));            return newX;        }        /**         * Returns the x argument, since this is used for horizontal         * splits.         */        protected int getNeededLocation(int x, int y) {            int newX;            newX = Math.min(maxX, Math.max(minX, x - offset));            return newX;        }        protected void continueDrag(int newX, int newY) {            dragDividerTo(getNeededLocation(newX, newY));        }        /**         * Messages dragDividerTo with the new location for the mouse         * event.         */        protected void continueDrag(MouseEvent e) {            dragDividerTo(positionForMouseEvent(e));        }        protected void completeDrag(int x, int y) {            finishDraggingTo(getNeededLocation(x, y));        }        /**         * Messages finishDraggingTo with the new location for the mouse         * event.         */        protected void completeDrag(MouseEvent e) {            finishDraggingTo(positionForMouseEvent(e));        }    } // End of BasicSplitPaneDivider.DragController    /**     * Handles the events during a dragging session for a     * VERTICAL_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).     */    protected class VerticalDragController extends DragController    {        /* DragControllers ivars are now in terms of y, not x. */        protected VerticalDragController(MouseEvent e) {            super(e);            JSplitPane splitPane = splitPaneUI.getSplitPane();            Component  leftC = splitPane.getLeftComponent();	    Component  rightC = splitPane.getRightComponent();            initialX = getLocation().y;	    if (e.getSource() == BasicSplitPaneDivider.this) {		offset = e.getY();	    }	    else {		offset = e.getY() - initialX;	    }	    if (leftC == null || rightC == null || offset < -1 ||		offset > getSize().height) {		// Don't allow dragging.		maxX = -1;	    }	    else {		Insets     insets = splitPane.getInsets();                if (leftC.isVisible()) {                    minX = leftC.getMinimumSize().height;		    if (insets != null) {			minX += insets.top;		    }                }                else {                    minX = 0;                }                if (rightC.isVisible()) {		    int    bottom = (insets != null) ? insets.bottom : 0;                    maxX = Math.max(0, splitPane.getSize().height -                                    (getSize().height + bottom) -                                    rightC.getMinimumSize().height);                }                else {		    int    bottom = (insets != null) ? insets.bottom : 0;                    maxX = Math.max(0, splitPane.getSize().height -                                    (getSize().height + bottom));                }                if (maxX < minX) minX = maxX = 0;            }        }        /**         * Returns the y argument, since this is used for vertical         * splits.         */        protected int getNeededLocation(int x, int y) {            int newY;            newY = Math.min(maxX, Math.max(minX, y - offset));            return newY;        }        /**         * Returns the new position to put the divider at based on         * the passed in MouseEvent.         */        protected int positionForMouseEvent(MouseEvent e) {	    int newY = (e.getSource() == BasicSplitPaneDivider.this) ?		        (e.getY() + getLocation().y) : e.getY();            newY = Math.min(maxX, Math.max(minX, newY - offset));            return newY;        }    } // End of BasicSplitPaneDividier.VerticalDragController    /**     * Used to layout a <code>BasicSplitPaneDivider</code>.     * Layout for the divider     * involves appropriately moving the left/right buttons around.     * <p>     */    protected class DividerLayout implements LayoutManager    {        public void layoutContainer(Container c) {            if (leftButton != null && rightButton != null &&                c == BasicSplitPaneDivider.this) {                if (splitPane.isOneTouchExpandable()) {		    Insets insets = getInsets();                    if (orientation == JSplitPane.VERTICAL_SPLIT) {			int extraX = (insets != null) ? insets.left : 0;			int blockSize = getHeight();			if (insets != null) {			    blockSize -= (insets.top + insets.bottom);                            blockSize = Math.max(blockSize, 0);			}                        blockSize = Math.min(blockSize, oneTouchSize);                        int y = (c.getSize().height - blockSize) / 2;                        if (!centerOneTouchButtons) {                            y = (insets != null) ? insets.top : 0;                            extraX = 0;                        }                        leftButton.setBounds(extraX + oneTouchOffset, y,                                             blockSize * 2, blockSize);                        rightButton.setBounds(extraX + oneTouchOffset +                                              oneTouchSize * 2, y,                                              blockSize * 2, blockSize);                    }                    else {			int extraY = (insets != null) ? insets.top : 0;			int blockSize = getWidth();			if (insets != null) {			    blockSize -= (insets.left + insets.right);                            blockSize = Math.max(blockSize, 0);			}                        blockSize = Math.min(blockSize, oneTouchSize);                        int x = (c.getSize().width - blockSize) / 2;                        if (!centerOneTouchButtons) {                            x = (insets != null) ? insets.left : 0;                            extraY = 0;                        }                        leftButton.setBounds(x, extraY + oneTouchOffset,                                             blockSize, blockSize * 2);                        rightButton.setBounds(x, extraY + oneTouchOffset +                                              oneTouchSize * 2, blockSize,                                              blockSize * 2);                    }                }                else {                    leftButton.setBounds(-5, -5, 1, 1);                    rightButton.setBounds(-5, -5, 1, 1);                }            }        }        public Dimension minimumLayoutSize(Container c) {            // NOTE: This isn't really used, refer to            // BasicSplitPaneDivider.getPreferredSize for the reason.            // I leave it in hopes of having this used at some point.            if (c != BasicSplitPaneDivider.this || splitPane == null) {                return new Dimension(0,0);            }            Dimension buttonMinSize = null;            if (splitPane.isOneTouchExpandable() && leftButton != null) {                buttonMinSize = leftButton.getMinimumSize();            }            Insets insets = getInsets();            int width = getDividerSize();            int height = width;            if (orientation == JSplitPane.VERTICAL_SPLIT) {                if (buttonMinSize != null) {                    int size = buttonMinSize.height;                    if (insets != null) {                        size += insets.top + insets.bottom;                    }                    height = Math.max(height, size);                }                width = 1;            }            else {                if (buttonMinSize != null) {                    int size = buttonMinSize.width;                    if (insets != null) {                        size += insets.left + insets.right;                    }                    width = Math.max(width, size);                }                height = 1;            }            return new Dimension(width, height);        }        public Dimension preferredLayoutSize(Container c) {            return minimumLayoutSize(c);        }        public void removeLayoutComponent(Component c) {}        public void addLayoutComponent(String string, Component c) {}    } // End of class BasicSplitPaneDivider.DividerLayout    /**     * Listeners installed on the one touch expandable buttons.     */    private class OneTouchActionHandler implements ActionListener {	/** True indicates the resize should go the minimum (top or left)	 * vs false which indicates the resize should go to the maximum.	 */	private boolean toMinimum;	OneTouchActionHandler(boolean toMinimum) {	    this.toMinimum = toMinimum;	}        public void actionPerformed(ActionEvent e) {            Insets  insets = splitPane.getInsets();	    int     lastLoc = splitPane.getLastDividerLocation();            int     currentLoc = splitPaneUI.getDividerLocation(splitPane);	    int     newLoc;	    // We use the location from the UI directly, as the location the	    // JSplitPane itself maintains is not necessarly correct.	    if (toMinimum) {		if (orientation == JSplitPane.VERTICAL_SPLIT) {		    if (currentLoc >= (splitPane.getHeight() -				       insets.bottom - getHeight())) {			int maxLoc = splitPane.getMaximumDividerLocation();			newLoc = Math.min(lastLoc, maxLoc);			splitPaneUI.setKeepHidden(false);                    }		    else {			newLoc = insets.top;			splitPaneUI.setKeepHidden(true);                    }		}		else {		    if (currentLoc >= (splitPane.getWidth() -				       insets.right - getWidth())) {			int maxLoc = splitPane.getMaximumDividerLocation();			newLoc = Math.min(lastLoc, maxLoc);			splitPaneUI.setKeepHidden(false);                    }		    else {			newLoc = insets.left;			splitPaneUI.setKeepHidden(true);                    }		}	    }	    else {		if (orientation == JSplitPane.VERTICAL_SPLIT) {		    if (currentLoc == insets.top) {			int maxLoc = splitPane.getMaximumDividerLocation();			newLoc = Math.min(lastLoc, maxLoc);			splitPaneUI.setKeepHidden(false);                    }		    else {			newLoc = splitPane.getHeight() - getHeight() -			         insets.top;			splitPaneUI.setKeepHidden(true);                    }		}		else {		    if (currentLoc == insets.left) {			int maxLoc = splitPane.getMaximumDividerLocation();			newLoc = Math.min(lastLoc, maxLoc);			splitPaneUI.setKeepHidden(false);                    }		    else {			newLoc = splitPane.getWidth() - getWidth() - 			         insets.left;			splitPaneUI.setKeepHidden(true);		    }		}	    }	    if (currentLoc != newLoc) {		splitPane.setDividerLocation(newLoc);		// We do this in case the dividers notion of the location		// differs from the real location.		splitPane.setLastDividerLocation(currentLoc);	    }        }    } // End of class BasicSplitPaneDivider.LeftActionListener}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱码精品1区2区3区| 午夜精品福利在线| 国产69精品久久久久777| 久久久久9999亚洲精品| 成人性生交大片免费看中文| 国产精品久久久一本精品| 99国内精品久久| 一区二区三区日韩精品视频| 欧美日韩二区三区| 日本成人在线看| 久久久久久久久久久99999| 国产精品18久久久| 亚洲乱码国产乱码精品精小说| 欧美性视频一区二区三区| 日韩精品久久久久久| 精品久久久久久久久久久久包黑料 | 日韩欧美国产一区二区在线播放| 久草热8精品视频在线观看| 欧美经典一区二区| 91久久精品国产91性色tv| av动漫一区二区| 一区二区三区在线观看网站| 91麻豆精品国产91久久久久| 激情成人综合网| 亚洲男人的天堂av| 欧美激情一区二区三区四区| 91亚洲精品久久久蜜桃| 日韩精品福利网| 国产精品三级视频| 欧美性videosxxxxx| 麻豆成人免费电影| 国产精品久久国产精麻豆99网站| 欧美在线播放高清精品| 国内偷窥港台综合视频在线播放| 中文字幕在线不卡一区| 制服丝袜亚洲色图| 91在线视频网址| 麻豆传媒一区二区三区| 一区二区在线观看不卡| 精品国产一区二区三区四区四| thepron国产精品| 喷水一区二区三区| 亚洲美女屁股眼交3| 久久久久久**毛片大全| 欧美日韩成人激情| 99久久婷婷国产综合精品| 久久电影网站中文字幕| 亚洲一区二区三区国产| 日本一区二区三区免费乱视频| 欧美久久久久免费| av电影在线观看不卡| 热久久免费视频| 亚洲一区国产视频| 中文字幕日韩av资源站| 久久久久国产精品人| 欧美mv日韩mv国产网站app| 欧美天堂亚洲电影院在线播放| 成人性生交大合| 国产一区二区精品久久99| 99re这里只有精品首页| 国产一区二区三区视频在线播放| 亚洲123区在线观看| 亚洲免费视频成人| 国产精品久久久久久亚洲毛片| 久久夜色精品一区| 欧美第一区第二区| 欧美大黄免费观看| 日韩免费一区二区三区在线播放| 欧美日韩一区三区四区| 欧美在线啊v一区| 欧美亚洲丝袜传媒另类| 91香蕉视频mp4| 91香蕉国产在线观看软件| 99久久精品国产一区二区三区| 99在线视频精品| 91丨porny丨蝌蚪视频| 97se亚洲国产综合在线| 色老头久久综合| 欧美特级限制片免费在线观看| 在线看不卡av| 欧美日本乱大交xxxxx| 欧美嫩在线观看| 欧美一区二区黄| 日韩欧美国产三级| 欧美本精品男人aⅴ天堂| 日韩三级电影网址| 久久久一区二区| 国产精品无码永久免费888| 国产精品伦理一区二区| 亚洲品质自拍视频网站| 亚洲一本大道在线| 久久国产精品一区二区| 国产精品18久久久久久久久| 不卡一卡二卡三乱码免费网站| av不卡在线播放| 欧美午夜在线一二页| 日韩一区二区在线看片| 久久久久久9999| 亚洲色图欧洲色图婷婷| 亚洲高清在线精品| 久久国产日韩欧美精品| 成人免费看片app下载| 欧洲一区二区三区在线| 在线电影国产精品| 国产香蕉久久精品综合网| 1024亚洲合集| 五月天丁香久久| 国产精品夜夜嗨| 在线观看国产一区二区| 日韩欧美一卡二卡| 国产精品成人免费| 午夜视频在线观看一区二区| 国产一区二区三区日韩| 日本精品视频一区二区三区| 精品久久久久一区| 亚洲精品一二三| 经典三级一区二区| 91老司机福利 在线| 日韩亚洲欧美高清| 亚洲欧美视频一区| 久久99日本精品| 色综合久久久久久久久久久| 欧美一区二区成人6969| 国产精品国产三级国产aⅴ入口 | 蜜桃一区二区三区在线| 国产成人无遮挡在线视频| 日本韩国一区二区三区视频| 久久久久久久久久久久久夜| 亚洲国产成人va在线观看天堂| 国产成人精品免费一区二区| 欧美日韩电影在线| 中文字幕亚洲电影| 国内精品免费在线观看| 欧美日韩精品欧美日韩精品 | 丝袜诱惑亚洲看片| 成人精品国产福利| 欧美成人video| 亚洲国产综合人成综合网站| 成人免费高清视频在线观看| 欧美一区二区三区四区在线观看| 亚洲天堂精品在线观看| 国产精品538一区二区在线| 日韩欧美成人激情| 五月天丁香久久| 欧日韩精品视频| 亚洲天堂网中文字| 成人精品亚洲人成在线| 久久青草欧美一区二区三区| 日本亚洲视频在线| 7777精品伊人久久久大香线蕉完整版 | 欧美丰满一区二区免费视频| 日韩一区欧美一区| 成人午夜电影久久影院| 欧美大尺度电影在线| 免费久久精品视频| 欧美福利电影网| 亚洲国产一区二区三区青草影视| 99久久国产免费看| 国产精品免费aⅴ片在线观看| 韩国v欧美v亚洲v日本v| 精品成人一区二区| 美国毛片一区二区三区| 欧美一区二区三区在线看| 亚洲成人av福利| 欧美日韩国产成人在线免费| 一区二区三区在线免费视频| av不卡在线播放| 一区二区在线观看不卡| 欧美吻胸吃奶大尺度电影 | 日韩精品久久久久久| 欧美久久久久久蜜桃| 日本免费在线视频不卡一不卡二| 欧美日韩国产不卡| 日韩不卡一二三区| 91精品国产麻豆| 精品制服美女丁香| 精品国产91亚洲一区二区三区婷婷 | 一区二区三区在线视频观看58| 2023国产精华国产精品| 国产一区二区三区在线观看免费| 26uuu国产一区二区三区 | 成人18精品视频| 亚洲欧美成人一区二区三区| 色综合天天综合| 欧美性高清videossexo| 一区二区成人在线视频| 欧美丝袜自拍制服另类| 青青草视频一区| 久久精品在线观看| 99这里只有久久精品视频| 亚洲自拍与偷拍| 精品欧美乱码久久久久久| 福利一区二区在线| 亚洲狠狠丁香婷婷综合久久久| 欧美日韩一级二级三级| 毛片av一区二区| 亚洲欧美在线观看| 欧美福利视频导航| 国产成人在线色| 亚洲激情av在线|