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

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

?? basicsplitpanedivider.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
                                    (getSize().width + right));                }                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}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色拍拍在线精品视频8848| 日本特黄久久久高潮| 成人av电影观看| 综合电影一区二区三区| 一本色道亚洲精品aⅴ| 亚洲乱码国产乱码精品精的特点 | 精品剧情v国产在线观看在线| 视频精品一区二区| 精品伦理精品一区| 成人自拍视频在线观看| 亚洲精品乱码久久久久久黑人 | 欧美亚洲国产一区在线观看网站| 亚洲国产精品久久久久秋霞影院| 欧美一区二区在线免费播放| 久久丁香综合五月国产三级网站| 国产亚洲人成网站| 一本大道久久a久久综合| 日韩精品成人一区二区三区| 26uuu精品一区二区在线观看| 成人黄色一级视频| 亚洲主播在线观看| 精品粉嫩超白一线天av| 成人黄色小视频在线观看| 亚洲自拍欧美精品| 久久欧美一区二区| 色狠狠色噜噜噜综合网| 久久er99精品| 一区二区高清在线| 久久综合久久综合久久综合| 97精品电影院| 麻豆精品久久精品色综合| 亚洲免费三区一区二区| 日韩免费电影一区| 色婷婷激情一区二区三区| 日韩电影在线免费| 亚洲欧洲一区二区在线播放| 日韩欧美国产午夜精品| 91丨九色porny丨蝌蚪| 蜜桃av一区二区三区| 亚洲色图在线播放| 久久精品一区四区| 56国语精品自产拍在线观看| www.综合网.com| 精品一区二区免费视频| 亚洲国产精品一区二区久久| 国产日韩欧美电影| 日韩欧美一区二区三区在线| 色欧美片视频在线观看| 成人激情免费电影网址| 久久精品av麻豆的观看方式| 亚洲国产视频a| 亚洲日本在线天堂| 久久精子c满五个校花| 欧美不卡一区二区三区| 欧美丰满嫩嫩电影| 色婷婷久久久综合中文字幕 | 91老师片黄在线观看| 久久99精品国产麻豆婷婷| 亚洲成人免费在线| 亚洲免费观看高清完整| 国产精品青草久久| 国产网红主播福利一区二区| 日韩视频123| 56国语精品自产拍在线观看| 欧美午夜影院一区| 91福利视频网站| 在线欧美一区二区| 一本一道波多野结衣一区二区| 国产91露脸合集magnet| 国产不卡一区视频| 国产一区欧美二区| 精品一区二区三区在线播放| 美女网站在线免费欧美精品| 日本最新不卡在线| 青青青爽久久午夜综合久久午夜| 五月婷婷激情综合| 石原莉奈在线亚洲二区| 日韩福利电影在线| 偷拍一区二区三区四区| 视频一区二区不卡| 日韩av电影一区| 久久国产尿小便嘘嘘| 激情文学综合网| 国产精品资源网| 国产高清无密码一区二区三区| 国产精品18久久久久久久久久久久 | 91精品国产色综合久久ai换脸| 欧美人妖巨大在线| 日韩欧美一区二区三区在线| 欧美成人福利视频| 国产亚洲女人久久久久毛片| 久久一二三国产| 国产精品日韩精品欧美在线| 欧美国产精品中文字幕| 最新高清无码专区| 亚洲国产成人va在线观看天堂| 午夜精品一区二区三区电影天堂| 美日韩黄色大片| 国产精品一区二区久激情瑜伽| av在线一区二区三区| 91精彩视频在线| 日韩网站在线看片你懂的| 久久久久久久网| 亚洲视频一区二区免费在线观看| 亚洲超碰97人人做人人爱| 久久99在线观看| 99精品偷自拍| 在线观看日韩精品| 日韩免费看的电影| 国产精品卡一卡二卡三| 亚洲高清免费观看高清完整版在线观看| 日韩av中文在线观看| 国产精品一二三四五| 欧美性大战久久| 久久久久久一二三区| 亚洲精品videosex极品| 久久精品国产亚洲高清剧情介绍 | 久久久久久久久久久99999| √…a在线天堂一区| 日韩有码一区二区三区| 成人夜色视频网站在线观看| 欧美色视频在线观看| 久久久亚洲午夜电影| 亚洲精品日日夜夜| 国产曰批免费观看久久久| 欧美三级三级三级| 欧美国产欧美综合| 五月天丁香久久| 成人app在线| 精品国产三级电影在线观看| 亚洲影院免费观看| 国产高清亚洲一区| 在线综合+亚洲+欧美中文字幕| 国产精品久久久久久久浪潮网站 | 亚洲国产成人午夜在线一区| 日韩精品国产欧美| 99精品视频一区| 国产亚洲综合性久久久影院| 亚洲成a天堂v人片| aaa欧美日韩| 久久久久青草大香线综合精品| 偷偷要91色婷婷| 91高清在线观看| 国产精品久久久久9999吃药| 久久99热国产| 91精品国产色综合久久久蜜香臀| 樱花影视一区二区| 成人手机在线视频| 欧美精品一区二| 精品在线免费视频| 欧美日韩夫妻久久| 亚洲国产视频直播| 在线精品视频免费观看| 国产精品无码永久免费888| 九九热在线视频观看这里只有精品| 欧美性生交片4| 亚洲精品日韩综合观看成人91| 国产成人免费视频一区| 精品国产免费一区二区三区四区| 日韩精品视频网| 欧美日韩精品一区二区三区| 夜夜爽夜夜爽精品视频| 色狠狠桃花综合| 亚洲视频每日更新| 一本大道久久a久久综合婷婷| 成人欧美一区二区三区黑人麻豆| 丁香啪啪综合成人亚洲小说 | 91在线视频观看| 亚洲桃色在线一区| 一本色道久久综合精品竹菊| 亚洲天堂网中文字| 99国产精品久久| 亚洲免费大片在线观看| 97精品电影院| 一区二区三区成人| 欧洲激情一区二区| 午夜av电影一区| 在线成人午夜影院| 美女视频黄久久| 久久久九九九九| 不卡一卡二卡三乱码免费网站| 中文字幕亚洲综合久久菠萝蜜| 成人午夜激情在线| 中文字幕一区免费在线观看| 色婷婷综合久久| 午夜精品影院在线观看| 日韩欧美一二三| 国产999精品久久久久久绿帽| 国产精品久久久久9999吃药| 在线免费亚洲电影| 蜜桃91丨九色丨蝌蚪91桃色| 久久久久久久精| 91视频www| 视频在线观看一区| 久久精品视频免费观看| 99久久精品免费| 日韩高清不卡在线| 国产亚洲午夜高清国产拍精品| 91碰在线视频| 麻豆精品视频在线观看免费|