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

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

?? basicsplitpaneui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
				containerSize.height -				(insets.top + insets.bottom));		}		else {		    c.setBounds(insets.left, location, containerSize.width -				(insets.left + insets.right), size);		}            }	    else {                if (axis == 0) {		    c.setBounds(location, 0, size, containerSize.height);		}		else {		    c.setBounds(0, location, containerSize.width, size);		}            }        }	/**	 * If the axis == 0, the width is returned, otherwise the height.	 */	int getSizeForPrimaryAxis(Dimension size) {	    if (axis == 0) {		return size.width;	    }	    return size.height;	}	/**	 * If the axis == 0, the width is returned, otherwise the height.	 */	int getSizeForSecondaryAxis(Dimension size) {	    if (axis == 0) {		return size.height;	    }	    return size.width;	}	/**	 * Returns a particular value of the inset identified by the	 * axis and <code>isTop</code><p>	 *   axis isTop	 *    0    true    - left	 *    0    false   - right	 *    1    true    - top	 *    1    false   - bottom	 */	int getSizeForPrimaryAxis(Insets insets, boolean isTop) {	    if (axis == 0) {		if (isTop) {		    return insets.left;		}		return insets.right;	    }	    if (isTop) {		return insets.top;	    }	    return insets.bottom;	} 	/**	 * Returns a particular value of the inset identified by the	 * axis and <code>isTop</code><p>	 *   axis isTop	 *    0    true    - left	 *    0    false   - right	 *    1    true    - top	 *    1    false   - bottom	 */	int getSizeForSecondaryAxis(Insets insets, boolean isTop) {	    if (axis == 0) {		if (isTop) {		    return insets.top;		}		return insets.bottom;	    }	    if (isTop) {		return insets.left;	    }	    return insets.right;	}         /**         * Determines the components. This should be called whenever         * a new instance of this is installed into an existing         * SplitPane.         */        protected void updateComponents() {            Component comp;            comp = splitPane.getLeftComponent();            if(components[0] != comp) {                components[0] = comp;                if(comp == null) {                    sizes[0] = 0;                } else {                    sizes[0] = -1;                }            }            comp = splitPane.getRightComponent();            if(components[1] != comp) {                components[1] = comp;                if(comp == null) {                    sizes[1] = 0;                } else {                    sizes[1] = -1;                }            }            /* Find the divider. */            Component[] children = splitPane.getComponents();            Component   oldDivider = components[2];            components[2] = null;            for(int counter = children.length - 1; counter >= 0; counter--) {                if(children[counter] != components[0] &&                   children[counter] != components[1] &&                   children[counter] != nonContinuousLayoutDivider) {                    if(oldDivider != children[counter]) {                        components[2] = children[counter];                    } else {                        components[2] = oldDivider;                    }                    break;                }            }            if(components[2] == null) {		sizes[2] = 0;	    }	    else {		sizes[2] = getSizeForPrimaryAxis(components[2].getPreferredSize());	    }        }	/**	 * Resets the size of the first component to <code>leftSize</code>,	 * and the right component to the remainder of the space.	 */	void setDividerLocation(int leftSize, int availableSize) {	    boolean          lValid = (components[0] != null &&				       components[0].isVisible());	    boolean          rValid = (components[1] != null &&				       components[1].isVisible());	    boolean          dValid = (components[2] != null && 				       components[2].isVisible());	    int              max = availableSize;	    if (dValid) {		max -= sizes[2];	    }	    leftSize = Math.max(0, Math.min(leftSize, max));	    if (lValid) {		if (rValid) {		    sizes[0] = leftSize;		    sizes[1] = max - leftSize;		}		else {		    sizes[0] = max;		    sizes[1] = 0;		}	    }	    else if (rValid) {		sizes[1] = max;		sizes[0] = 0;	    }	}	/**	 * Returns an array of the minimum sizes of the components.	 */	int[] getPreferredSizes() {	    int[]         retValue = new int[3];	    for (int counter = 0; counter < 3; counter++) {		if (components[counter] != null &&		    components[counter].isVisible()) {		    retValue[counter] = getPreferredSizeOfComponent			                (components[counter]);		}		else {		    retValue[counter] = -1;		}	    }	    return retValue;	}	/**	 * Returns an array of the minimum sizes of the components.	 */	int[] getMinimumSizes() {	    int[]         retValue = new int[3];	    for (int counter = 0; counter < 2; counter++) {		if (components[counter] != null &&		    components[counter].isVisible()) {		    retValue[counter] = getMinimumSizeOfComponent			                (components[counter]);		}		else {		    retValue[counter] = -1;		}	    }	    retValue[2] = (components[2] != null) ? 		getMinimumSizeOfComponent(components[2]) : -1;	    return retValue;	}	/**	 * Resets the components to their preferred sizes.	 */	void resetToPreferredSizes(int availableSize) {	    // Set the sizes to the preferred sizes (if fits), otherwise	    // set to min sizes and distribute any extra space.	    int[]       testSizes = getPreferredSizes();	    int         totalSize = 0;	    for (int counter = 0; counter < 3; counter++) {		if (testSizes[counter] != -1) {		    totalSize += testSizes[counter];		}	    }	    if (totalSize > availableSize) {		testSizes = getMinimumSizes();		totalSize = 0;		for (int counter = 0; counter < 3; counter++) {		    if (testSizes[counter] != -1) {			totalSize += testSizes[counter];		    }		}	    }	    setSizes(testSizes);	    distributeSpace(availableSize - totalSize, false);	}	/**	 * Distributes <code>space</code> between the two components 	 * (divider won't get any extra space) based on the weighting. This	 * attempts to honor the min size of the components.         *         * @param keepHidden if true and one of the components is 0x0         *                   it gets none of the extra space	 */	void distributeSpace(int space, boolean keepHidden) {	    boolean          lValid = (components[0] != null &&				       components[0].isVisible());	    boolean          rValid = (components[1] != null &&				       components[1].isVisible());            if (keepHidden) {                if (lValid && getSizeForPrimaryAxis(                                 components[0].getSize()) == 0) {                    lValid = false;                    if (rValid && getSizeForPrimaryAxis(                                     components[1].getSize()) == 0) {                        // Both aren't valid, force them both to be valid                        lValid = true;                    }                }                else if (rValid && getSizeForPrimaryAxis(                                   components[1].getSize()) == 0) {                    rValid = false;                }            }	    if (lValid && rValid) {		double        weight = splitPane.getResizeWeight();		int           lExtra = (int)(weight * (double)space);		int           rExtra = (space - lExtra);		sizes[0] += lExtra;		sizes[1] += rExtra;		int           lMin = getMinimumSizeOfComponent(components[0]);		int           rMin = getMinimumSizeOfComponent(components[1]);		boolean       lMinValid = (sizes[0] >= lMin);		boolean       rMinValid = (sizes[1] >= rMin);		if (!lMinValid && !rMinValid) {		    if (sizes[0] < 0) {			sizes[1] += sizes[0];			sizes[0] = 0;		    }		    else if (sizes[1] < 0) {			sizes[0] += sizes[1];			sizes[1] = 0;		    }		}		else if (!lMinValid) {		    if (sizes[1] - (lMin - sizes[0]) < rMin) {			// both below min, just make sure > 0			if (sizes[0] < 0) {			    sizes[1] += sizes[0];			    sizes[0] = 0;			}		    }		    else {			sizes[1] -= (lMin - sizes[0]);			sizes[0] = lMin;		    }		}		else if (!rMinValid) {		    if (sizes[0] - (rMin - sizes[1]) < lMin) {			// both below min, just make sure > 0			if (sizes[1] < 0) {			    sizes[0] += sizes[1];			    sizes[1] = 0;			}		    }		    else {			sizes[0] -= (rMin - sizes[1]);			sizes[1] = rMin;		    }		}		if (sizes[0] < 0) {		    sizes[0] = 0;		}		if (sizes[1] < 0) {		    sizes[1] = 0;		}	    }	    else if (lValid) {		sizes[0] = Math.max(0, sizes[0] + space);	    }	    else if (rValid) {		sizes[1] = Math.max(0, sizes[1] + space);	    }	}    }    /**     * LayoutManager used for JSplitPanes with an orientation of     * VERTICAL_SPLIT.     * <p>     */    public class BasicVerticalLayoutManager extends            BasicHorizontalLayoutManager    {	public BasicVerticalLayoutManager() {	    super(1);	}    }    private class Handler implements FocusListener, PropertyChangeListener {        //        // PropertyChangeListener        //        /**         * Messaged from the <code>JSplitPane</code> the receiver is         * contained in.  May potentially reset the layout manager and cause a         * <code>validate</code> to be sent.         */        public void propertyChange(PropertyChangeEvent e) {            if(e.getSource() == splitPane) {                String changeName = e.getPropertyName();                if(changeName == JSplitPane.ORIENTATION_PROPERTY) {                    orientation = splitPane.getOrientation();                    resetLayoutManager();                } else if(changeName == JSplitPane.CONTINUOUS_LAYOUT_PROPERTY){                    setContinuousLayout(splitPane.isContinuousLayout());                    if(!isContinuousLayout()) {                        if(nonContinuousLayoutDivider == null) {                            setNonContinuousLayoutDivider(                                createDefaultNonContinuousLayoutDivider(),                                true);                        } else if(nonContinuousLayoutDivider.getParent() ==                                  null) {                            setNonContinuousLayoutDivider(                                nonContinuousLayoutDivider,                                true);                        }                    }                } else if(changeName == JSplitPane.DIVIDER_SIZE_PROPERTY){                    divider.setDividerSize(splitPane.getDividerSize());		    dividerSize = divider.getDividerSize();                    splitPane.revalidate();		    splitPane.repaint();                }            }        }        //        // FocusListener        //        public void focusGained(FocusEvent ev) {            dividerKeyboardResize = true;            splitPane.repaint();        }        public void focusLost(FocusEvent ev) {            dividerKeyboardResize = false;            splitPane.repaint();        }    }    private static class Actions extends UIAction {        private static final String NEGATIVE_INCREMENT = "negativeIncrement";        private static final String POSITIVE_INCREMENT = "positiveIncrement";        private static final String SELECT_MIN = "selectMin";        private static final String SELECT_MAX = "selectMax";        private static final String START_RESIZE = "startResize";        private static final String TOGGLE_FOCUS = "toggleFocus";        private static final String FOCUS_OUT_FORWARD = "focusOutForward";        private static final String FOCUS_OUT_BACKWARD = "focusOutBackward";        Actions(String key) {            super(key);        }        p

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av电影天堂一区二区在线 | 亚洲高清视频在线| 91精品国产一区二区三区香蕉| 成人自拍视频在线观看| 视频一区在线视频| 亚洲精品美腿丝袜| 久久久99精品久久| 在线区一区二视频| 成人国产在线观看| 黑人精品欧美一区二区蜜桃| 香蕉成人伊视频在线观看| **欧美大码日韩| 国产日韩精品一区| 日韩三级伦理片妻子的秘密按摩| 欧美综合天天夜夜久久| av在线不卡免费看| 国产精品亚洲午夜一区二区三区 | 久久精品视频一区二区| 欧美福利一区二区| 欧美视频在线观看一区二区| 9色porny自拍视频一区二区| 国产精品一区二区在线看| 日av在线不卡| 日韩综合小视频| 亚洲一区二区精品视频| 一区二区三区精品久久久| 中文字幕在线观看不卡| 久久久www免费人成精品| 精品奇米国产一区二区三区| 日韩欧美一级在线播放| 91麻豆精品国产自产在线 | 国产精品久久网站| 亚洲精品一区二区三区影院| 日韩一区二区电影| 欧美一区二区在线免费播放| 欧美日韩激情在线| 欧美无砖专区一中文字| 欧美午夜电影一区| 欧美三级在线看| 欧美日韩国产大片| 欧美一区二区三区视频| 日韩视频国产视频| wwwwww.欧美系列| 国产午夜亚洲精品羞羞网站| 亚洲国产精品传媒在线观看| 欧美国产日韩在线观看| 综合电影一区二区三区| 亚洲自拍偷拍九九九| 亚洲成人av一区二区| 天天色 色综合| 精品中文字幕一区二区小辣椒| 国内精品伊人久久久久影院对白| 久久精品国产一区二区| 国产在线视视频有精品| 国产成人av自拍| 91社区在线播放| 欧美日韩大陆在线| 欧美成人精品福利| 亚洲欧美另类久久久精品2019| 亚洲视频每日更新| 亚洲福利视频一区| 韩国女主播一区| 99视频一区二区| 欧美日韩大陆在线| 久久久久久免费网| 亚洲另类春色国产| 免费视频最近日韩| 国产成人av资源| 欧美日韩三级在线| 久久久蜜臀国产一区二区| 成人欧美一区二区三区小说| 亚洲成人在线观看视频| 国产一区二区三区蝌蚪| 91在线免费播放| 欧美一区二区精品在线| 国产精品久久久久影院| 午夜欧美大尺度福利影院在线看| 久久精品国产第一区二区三区| 成人免费视频一区二区| 欧美日韩国产一二三| 久久久99免费| 午夜在线成人av| 国产不卡在线播放| 欧美另类变人与禽xxxxx| 精品粉嫩aⅴ一区二区三区四区| 国产精品久久网站| 六月婷婷色综合| 91久久精品一区二区三| 精品国内二区三区| 亚洲午夜精品在线| 成人免费视频视频在线观看免费| 欧美午夜免费电影| 国产精品青草久久| 免费一级片91| 欧美色图在线观看| 国产精品女主播av| 青青草国产成人99久久| 一本色道久久综合亚洲aⅴ蜜桃| 欧美电影免费提供在线观看| 一区二区三区欧美日| 国产成人激情av| 精品捆绑美女sm三区| 亚洲小少妇裸体bbw| 不卡的av中国片| 久久影院午夜片一区| 视频在线观看91| 欧美午夜精品一区二区三区| 一区在线观看免费| 精品一区免费av| 欧美巨大另类极品videosbest| ...av二区三区久久精品| 国产成人免费网站| 欧美精品一区男女天堂| 日韩av一区二区三区| 在线视频一区二区三| 中文字幕的久久| 东方欧美亚洲色图在线| 亚洲精品在线观看视频| 天天色综合天天| 欧美日本在线视频| 亚洲一区二区三区精品在线| 一本到不卡精品视频在线观看| 国产精品久久久久一区二区三区| 国产老肥熟一区二区三区| 欧美tickle裸体挠脚心vk| 日本成人在线看| 欧美伦理视频网站| 首页国产丝袜综合| 91精品国产综合久久福利软件| 亚洲123区在线观看| 欧美美女bb生活片| 日韩精品成人一区二区三区| 这里只有精品电影| 日韩av二区在线播放| 欧美一区二区三区在线电影| 日韩电影免费在线| 日韩欧美国产一区二区三区| 免费看欧美女人艹b| 精品1区2区在线观看| 国产精品影视网| 欧美国产精品久久| 成人午夜在线播放| ...xxx性欧美| 欧美丝袜第三区| 日韩二区三区在线观看| 欧美成人三级电影在线| 国产精品99久久久| 中文字幕一区免费在线观看| 色综合天天在线| 亚洲日本乱码在线观看| 欧美最猛黑人xxxxx猛交| 日韩二区三区四区| 久久亚洲捆绑美女| 成人亚洲精品久久久久软件| 综合久久综合久久| 欧美日韩国产美| 久99久精品视频免费观看| 国产欧美日韩视频一区二区| 91天堂素人约啪| 午夜精品福利一区二区三区蜜桃| 欧美一区二区三区公司| 国产伦精品一区二区三区免费| 国产精品久久久久久久久免费丝袜| 91在线精品一区二区三区| 亚洲乱码日产精品bd| 欧美色综合影院| 激情欧美日韩一区二区| 国产精品久久看| 欧美美女喷水视频| 国产成人精品在线看| 一区二区三区欧美久久| 欧美va亚洲va在线观看蝴蝶网| 成人午夜免费av| 亚洲成人自拍偷拍| 久久久久久久久蜜桃| 色婷婷综合视频在线观看| 人人狠狠综合久久亚洲| 国产精品福利一区二区| 欧美午夜精品久久久久久超碰| 精品一区二区成人精品| 亚洲欧美电影院| 精品美女在线播放| 色婷婷av一区二区| 国产一区二区精品久久99| 亚洲国产一区二区三区| 久久九九久精品国产免费直播| 91欧美一区二区| 激情综合五月婷婷| 亚洲主播在线观看| 国产清纯美女被跳蛋高潮一区二区久久w| 色天使色偷偷av一区二区| 九九国产精品视频| 午夜一区二区三区在线观看| 久久久久久**毛片大全| 欧美日韩中文一区| 成人爱爱电影网址| 精品一区二区三区不卡| 亚洲成人中文在线| 最新热久久免费视频| 日韩免费看网站|