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

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

?? basicsplitpaneui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
    /**     * Sets the divider to use when the splitPane is configured to     * not continuously layout. This divider will only be used during a     * dragging session. It is recommended that the passed in component     * be a heavy weight.     */    protected void setNonContinuousLayoutDivider(Component newDivider) {        setNonContinuousLayoutDivider(newDivider, true);    }    /**     * Sets the divider to use.     */    protected void setNonContinuousLayoutDivider(Component newDivider,        boolean rememberSizes) {        rememberPaneSizes = rememberSizes;        if(nonContinuousLayoutDivider != null && splitPane != null) {            splitPane.remove(nonContinuousLayoutDivider);        }        nonContinuousLayoutDivider = newDivider;    }    private void addHeavyweightDivider() {        if(nonContinuousLayoutDivider != null && splitPane != null) {            /* Needs to remove all the components and re-add them! YECK! */	    // This is all done so that the nonContinuousLayoutDivider will	    // be drawn on top of the other components, without this, one	    // of the heavyweights will draw over the divider!            Component             leftC = splitPane.getLeftComponent();            Component             rightC = splitPane.getRightComponent();	    int                   lastLocation = splitPane.		                              getDividerLocation();            if(leftC != null)                splitPane.setLeftComponent(null);            if(rightC != null)                splitPane.setRightComponent(null);            splitPane.remove(divider);            splitPane.add(nonContinuousLayoutDivider, BasicSplitPaneUI.                          NON_CONTINUOUS_DIVIDER,                          splitPane.getComponentCount());            splitPane.setLeftComponent(leftC);            splitPane.setRightComponent(rightC);            splitPane.add(divider, JSplitPane.DIVIDER);            if(rememberPaneSizes) {		splitPane.setDividerLocation(lastLocation);	    }         }     }    /**     * Returns the divider to use when the splitPane is configured to     * not continuously layout. This divider will only be used during a     * dragging session.     */    public Component getNonContinuousLayoutDivider() {        return nonContinuousLayoutDivider;    }    /**     * Returns the splitpane this instance is currently contained     * in.     */    public JSplitPane getSplitPane() {        return splitPane;    }    /**     * Creates the default divider.     */    public BasicSplitPaneDivider createDefaultDivider() {        return new BasicSplitPaneDivider(this);    }    /**     * Messaged to reset the preferred sizes.     */    public void resetToPreferredSizes(JSplitPane jc) {        if(splitPane != null) {            layoutManager.resetToPreferredSizes();            splitPane.revalidate();	    splitPane.repaint();        }    }    /**     * Sets the location of the divider to location.     */    public void setDividerLocation(JSplitPane jc, int location) {	if (!ignoreDividerLocationChange) {	    dividerLocationIsSet = true;	    splitPane.revalidate();	    splitPane.repaint();            if (keepHidden) {				Insets insets = splitPane.getInsets();		int orientation = splitPane.getOrientation(); 		if ((orientation == JSplitPane.VERTICAL_SPLIT &&		     location != insets.top &&		     location != splitPane.getHeight()-divider.getHeight()-insets.top) ||		    (orientation == JSplitPane.HORIZONTAL_SPLIT &&		     location != insets.left &&		     location != splitPane.getWidth()-divider.getWidth()-insets.left)) {  		    setKeepHidden(false);		}	    }	}	else {	    ignoreDividerLocationChange = false;	}    }    /**     * Returns the location of the divider, which may differ from what     * the splitpane thinks the location of the divider is.     */    public int getDividerLocation(JSplitPane jc) {        if(orientation == JSplitPane.HORIZONTAL_SPLIT)            return divider.getLocation().x;        return divider.getLocation().y;    }    /**     * Gets the minimum location of the divider.     */    public int getMinimumDividerLocation(JSplitPane jc) {        int       minLoc = 0;        Component leftC = splitPane.getLeftComponent();        if ((leftC != null) && (leftC.isVisible())) {            Insets    insets = splitPane.getInsets();            Dimension minSize = leftC.getMinimumSize();            if(orientation == JSplitPane.HORIZONTAL_SPLIT) {                minLoc = minSize.width;            } else {                minLoc = minSize.height;            }            if(insets != null) {                if(orientation == JSplitPane.HORIZONTAL_SPLIT) {                    minLoc += insets.left;                } else {                    minLoc += insets.top;                }            }        }        return minLoc;    }    /**     * Gets the maximum location of the divider.     */    public int getMaximumDividerLocation(JSplitPane jc) {        Dimension splitPaneSize = splitPane.getSize();        int       maxLoc = 0;        Component rightC = splitPane.getRightComponent();        if (rightC != null) {            Insets    insets = splitPane.getInsets();            Dimension minSize = new Dimension(0, 0);            if (rightC.isVisible()) {                minSize = rightC.getMinimumSize();            }            if(orientation == JSplitPane.HORIZONTAL_SPLIT) {                maxLoc = splitPaneSize.width - minSize.width;            } else {                maxLoc = splitPaneSize.height - minSize.height;             }            maxLoc -= dividerSize;            if(insets != null) {                if(orientation == JSplitPane.HORIZONTAL_SPLIT) {                    maxLoc -= insets.right;                } else {                    maxLoc -= insets.top;                }            }        }        return Math.max(getMinimumDividerLocation(splitPane), maxLoc);    }    /**     * Messaged after the JSplitPane the receiver is providing the look     * and feel for paints its children.     */    public void finishedPaintingChildren(JSplitPane jc, Graphics g) {        if(jc == splitPane && getLastDragLocation() != -1 &&           !isContinuousLayout() && !draggingHW) {            Dimension      size = splitPane.getSize();            g.setColor(dividerDraggingColor);            if(orientation == JSplitPane.HORIZONTAL_SPLIT) {                g.fillRect(getLastDragLocation(), 0, dividerSize - 1,                           size.height - 1);            } else {                g.fillRect(0, lastDragLocation, size.width - 1,                           dividerSize - 1);            }        }    }    /**     * Messaged to paint the look and feel.     */    public void paint(Graphics g, JComponent jc) {	if (!painted && splitPane.getDividerLocation()<0) {	    ignoreDividerLocationChange = true;	    splitPane.setDividerLocation(getDividerLocation(splitPane));	}	painted = true;    }    /**     * Returns the preferred size for the passed in component,     * This is passed off to the current layoutmanager.     */    public Dimension getPreferredSize(JComponent jc) {        if(splitPane != null)            return layoutManager.preferredLayoutSize(splitPane);        return new Dimension(0, 0);    }    /**     * Returns the minimum size for the passed in component,     * This is passed off to the current layoutmanager.     */    public Dimension getMinimumSize(JComponent jc) {        if(splitPane != null)            return layoutManager.minimumLayoutSize(splitPane);        return new Dimension(0, 0);    }    /**     * Returns the maximum size for the passed in component,     * This is passed off to the current layoutmanager.     */    public Dimension getMaximumSize(JComponent jc) {        if(splitPane != null)            return layoutManager.maximumLayoutSize(splitPane);        return new Dimension(0, 0);    }    /**     * Returns the insets. The insets are returned from the border insets     * of the current border.     */    public Insets getInsets(JComponent jc) {        return null;    }    /**     * Resets the layout manager based on orientation and messages it     * with invalidateLayout to pull in appropriate Components.     */    protected void resetLayoutManager() {        if(orientation == JSplitPane.HORIZONTAL_SPLIT) {            layoutManager = new BasicHorizontalLayoutManager(0);        } else {            layoutManager = new BasicHorizontalLayoutManager(1);        }        splitPane.setLayout(layoutManager);        layoutManager.updateComponents();        splitPane.revalidate();        splitPane.repaint();    }    /**     * Set the value to indicate if one of the splitpane sides is expanded.     */    void setKeepHidden(boolean keepHidden) {	this.keepHidden = keepHidden;    }    /**     * The value returned indicates if one of the splitpane sides is expanded.     * @return true if one of the splitpane sides is expanded, false otherwise.     */    private boolean getKeepHidden() {	return keepHidden;    }    /**     * Should be messaged before the dragging session starts, resets     * lastDragLocation and dividerSize.     */    protected void startDragging() {        Component       leftC = splitPane.getLeftComponent();        Component       rightC = splitPane.getRightComponent();        ComponentPeer   cPeer;        beginDragDividerLocation = getDividerLocation(splitPane);        draggingHW = false;        if(leftC != null && (cPeer = leftC.getPeer()) != null &&           !(cPeer instanceof LightweightPeer)) {            draggingHW = true;        } else if(rightC != null && (cPeer = rightC.getPeer()) != null                  && !(cPeer instanceof LightweightPeer)) {            draggingHW = true;        }        if(orientation == JSplitPane.HORIZONTAL_SPLIT) {            setLastDragLocation(divider.getBounds().x);            dividerSize = divider.getSize().width;            if(!isContinuousLayout() && draggingHW) {                nonContinuousLayoutDivider.setBounds                        (getLastDragLocation(), 0, dividerSize,                         splitPane.getHeight());		      addHeavyweightDivider();            }        } else {            setLastDragLocation(divider.getBounds().y);            dividerSize = divider.getSize().height;            if(!isContinuousLayout() && draggingHW) {                nonContinuousLayoutDivider.setBounds                        (0, getLastDragLocation(), splitPane.getWidth(),                         dividerSize);		      addHeavyweightDivider();            }        }    }    /**     * Messaged during a dragging session to move the divider to the     * passed in location. If continuousLayout is true the location is     * reset and the splitPane validated.     */    protected void dragDividerTo(int location) {        if(getLastDragLocation() != location) {            if(isContinuousLayout()) {		splitPane.setDividerLocation(location);                setLastDragLocation(location);            } else {                int lastLoc = getLastDragLocation();                setLastDragLocation(location);                if(orientation == JSplitPane.HORIZONTAL_SPLIT) {                    if(draggingHW) {                        nonContinuousLayoutDivider.setLocation(                            getLastDragLocation(), 0);                    } else {			int   splitHeight = splitPane.getHeight();                        splitPane.repaint(lastLoc, 0, dividerSize,                                          splitHeight);                        splitPane.repaint(location, 0, dividerSize,                                          splitHeight);                    }                } else {                    if(draggingHW) {                        nonContinuousLayoutDivider.setLocation(0,                            getLastDragLocation());                    } else {			int    splitWidth = splitPane.getWidth();                        splitPane.repaint(0, lastLoc, splitWidth,                                          dividerSize);                        splitPane.repaint(0, location, splitWidth,                                          dividerSize);                    }                }            }        }    }    /**     * Messaged to finish the dragging session. If not continuous display     * the dividers location will be reset.     */    protected void finishDraggingTo(int location) {        dragDividerTo(location);        setLastDragLocation(-1);        if(!isContinuousLayout()) {            Component   leftC = splitPane.getLeftComponent();            Rectangle   leftBounds = leftC.getBounds();	    if (draggingHW) {		if(orientation == JSplitPane.HORIZONTAL_SPLIT) {                    nonContinuousLayoutDivider.setLocation(-dividerSize, 0);		}		else {                    nonContinuousLayoutDivider.setLocation(0, -dividerSize);		}		splitPane.remove(nonContinuousLayoutDivider);	    }	    splitPane.setDividerLocation(location);        }    }    /**     * As of Java 2 platform v1.3 this method is no longer used. Instead     * you should set the border on the divider.     * <p>     * Returns the width of one side of the divider border.     *     * @deprecated As of Java 2 platform v1.3, instead set the border on the     * divider.     */    @Deprecated    protected int getDividerBorderSize() {        return 1;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃视频免费观看一区| 国产成人精品亚洲午夜麻豆| 免费精品视频在线| 99综合影院在线| 日韩精品一区二区三区蜜臀| 亚洲伦理在线精品| 国产成人午夜99999| 欧美一卡在线观看| 亚洲伦理在线免费看| 国产高清精品久久久久| 8v天堂国产在线一区二区| 亚洲欧美区自拍先锋| 国产成人免费视频一区| 欧美一级欧美一级在线播放| 一区二区三区成人| 99久久精品国产毛片| 国产蜜臀av在线一区二区三区| 三级成人在线视频| 在线观看www91| 亚洲欧洲制服丝袜| 99精品视频在线观看| 日本一区二区成人| 国产馆精品极品| 久久久国产精品麻豆| 激情综合色播激情啊| 日韩一区二区三区在线观看| 天天综合日日夜夜精品| 欧美亚洲免费在线一区| 一区二区三区精品视频| 在线看一区二区| 亚洲成人福利片| 欧美卡1卡2卡| 蜜桃久久av一区| 欧美videossexotv100| 美国十次了思思久久精品导航| 欧美一区二区精品在线| 另类小说色综合网站| 亚洲精品在线观| 国产一区二区三区综合| 中文字幕精品一区二区精品绿巨人 | 99久久精品国产一区| 国产精品护士白丝一区av| av在线播放成人| 一区二区三区国产豹纹内裤在线| 欧美在线观看视频一区二区| 午夜精品久久久久久久久久| 欧美一区二区啪啪| 国产高清不卡二三区| 国产精品久久久久久久久免费丝袜 | 亚洲精品亚洲人成人网| 欧美性三三影院| 日本欧美在线观看| 久久久久国产精品人| 成人aaaa免费全部观看| 一区二区三区日韩精品| 欧美美女激情18p| 国产一区二区不卡老阿姨| 中文字幕精品三区| 欧美亚洲动漫制服丝袜| 另类小说色综合网站| 欧美韩日一区二区三区四区| 91国偷自产一区二区三区观看| 亚洲观看高清完整版在线观看 | 色综合久久久久综合99| 亚洲成av人片一区二区| 久久久美女毛片| 一本色道久久综合亚洲精品按摩| 美女一区二区视频| 亚洲欧洲精品天堂一级| 日韩精品中午字幕| 色综合欧美在线| 国产一区中文字幕| 一区二区免费看| 久久久久久久av麻豆果冻| 在线观看91视频| 国产一区二区福利视频| 水蜜桃久久夜色精品一区的特点| 国产欧美一区视频| 欧美一区二区三区四区五区| av高清不卡在线| 久久se精品一区精品二区| 亚洲视频一二三| 久久精品一区蜜桃臀影院| 欧美影片第一页| 99国产精品久久久| 国产在线视视频有精品| 亚洲国产成人av网| 亚洲欧美成人一区二区三区| 久久久亚洲综合| 欧美成人午夜电影| 欧美一区二区视频免费观看| 一本大道久久a久久精品综合| 国产酒店精品激情| 毛片av中文字幕一区二区| 亚洲国产日韩综合久久精品| 国产精品婷婷午夜在线观看| 久久伊99综合婷婷久久伊| 91精品久久久久久久91蜜桃| 91久久香蕉国产日韩欧美9色| 不卡大黄网站免费看| 国产成人亚洲综合色影视| 看电影不卡的网站| 丝袜脚交一区二区| 天天操天天色综合| 亚洲一区二区三区自拍| 一区二区三区美女| 一区二区三区久久久| 亚洲久本草在线中文字幕| 国产精品入口麻豆原神| 国产精品午夜春色av| 国产精品素人一区二区| 国产精品色噜噜| 中文字幕一区二区三区在线观看| 国产亚洲视频系列| 久久精品一级爱片| 久久久国产午夜精品| 国产欧美精品一区| 国产精品萝li| 日韩毛片精品高清免费| 亚洲人成人一区二区在线观看 | 日韩av不卡在线观看| 日韩福利视频网| 麻豆精品视频在线观看免费| 日本欧美大码aⅴ在线播放| 免费观看91视频大全| 久久99精品国产麻豆婷婷洗澡| 久久国产夜色精品鲁鲁99| 老司机精品视频一区二区三区| 精品夜夜嗨av一区二区三区| 韩国av一区二区| 成人综合婷婷国产精品久久免费| a在线欧美一区| 欧美亚男人的天堂| 欧美一区二区三区视频在线| 精品国偷自产国产一区| 国产精品黄色在线观看| 一区二区激情小说| 久久丁香综合五月国产三级网站| 黄色成人免费在线| av中文字幕一区| 欧美日韩1234| 国产视频911| 亚洲自拍偷拍网站| 捆绑调教一区二区三区| av中文一区二区三区| 在线不卡免费av| 国产免费久久精品| 亚洲国产精品一区二区www| 精品亚洲porn| 色播五月激情综合网| 欧美成人精精品一区二区频| 国产精品国产三级国产aⅴ中文| 亚洲国产日韩在线一区模特| 狠狠色丁香久久婷婷综合_中| 97se亚洲国产综合自在线| 4hu四虎永久在线影院成人| 亚洲国产精品成人综合 | 69堂精品视频| 国产欧美日韩麻豆91| 偷窥少妇高潮呻吟av久久免费| 韩国欧美国产一区| 欧美午夜宅男影院| 国产精品久久久久久户外露出 | 污片在线观看一区二区| 成人免费va视频| 制服丝袜国产精品| 一区二区三区精品在线| 国产成人av福利| 欧美一区二区三区不卡| 一区二区三区欧美久久| 成人午夜电影网站| 欧美大片在线观看一区二区| 一区二区三区色| 99久久99久久精品国产片果冻| 日韩视频一区在线观看| 亚洲综合色成人| 99精品国产视频| 国产欧美精品在线观看| 久久精品噜噜噜成人88aⅴ| 欧美性videosxxxxx| 中文字幕一区二区三区色视频| 久久爱另类一区二区小说| 欧美二区在线观看| 依依成人精品视频| 91视频观看免费| 国产精品久久久久一区 | 欧美色图在线观看| 亚洲欧美欧美一区二区三区| 懂色av一区二区三区免费观看| 欧美变态口味重另类| 日本欧美大码aⅴ在线播放| 欧美日韩久久久久久| 亚洲国产毛片aaaaa无费看| 色噜噜偷拍精品综合在线| 日韩理论片一区二区| 99精品国产视频| 亚洲老司机在线| 欧美日韩三级在线| 手机精品视频在线观看| 欧美一级免费大片|