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

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

?? basicsplitpanedivider.java

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人sese在线| 亚洲图片欧美色图| 国产丶欧美丶日本不卡视频| 久久天堂av综合合色蜜桃网| 国产a视频精品免费观看| 久久九九影视网| 99久久精品免费| 亚洲免费观看高清完整版在线 | 久久欧美一区二区| 激情综合色播五月| 欧美激情在线一区二区| 99久久er热在这里只有精品15| 国产精品久久国产精麻豆99网站| 色成年激情久久综合| 亚洲bt欧美bt精品| 精品国产1区二区| 暴力调教一区二区三区| 亚洲一卡二卡三卡四卡| 欧美刺激午夜性久久久久久久| 精品一区二区在线视频| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 在线观看日韩电影| 日韩av不卡一区二区| 国产欧美在线观看一区| 日本乱人伦aⅴ精品| 成人午夜视频网站| 1024成人网| 日韩一级欧美一级| 成人h动漫精品| 婷婷国产v国产偷v亚洲高清| 久久久亚洲精品石原莉奈| 92精品国产成人观看免费| 美女任你摸久久| 亚洲人成在线观看一区二区| 日韩女优视频免费观看| 色综合久久66| 韩国欧美国产一区| 亚洲一区在线观看免费观看电影高清 | 不卡一区中文字幕| 日本欧美在线看| 亚洲丝袜自拍清纯另类| 欧美成人女星排名| 日本韩国精品在线| 国产一区二区三区在线观看免费 | 久久久久国产一区二区三区四区| 日本伦理一区二区| 国产99精品国产| 视频在线观看一区| 中文字幕中文字幕一区二区| 久久精品夜夜夜夜久久| 成人网在线播放| 久久欧美一区二区| 欧美一区二区三区视频| 亚洲视频1区2区| 成人aa视频在线观看| 26uuuu精品一区二区| 国产美女娇喘av呻吟久久| 国产精品欧美极品| 欧美精品日日鲁夜夜添| 亚洲免费观看在线视频| 久久99国产精品免费| 欧美日本不卡视频| 中文字幕欧美一区| 欧美亚洲免费在线一区| 午夜视频在线观看一区二区| 理论电影国产精品| 国产91精品久久久久久久网曝门 | 日韩一区二区三区电影在线观看 | 色爱区综合激月婷婷| 专区另类欧美日韩| 在线观看91视频| 久久国产精品色婷婷| 国产午夜精品久久| 欧洲中文字幕精品| 成人99免费视频| 五月天视频一区| 日韩美女久久久| 日韩欧美国产一区二区在线播放| 久久精品噜噜噜成人88aⅴ | 精品精品欲导航| 91美女精品福利| 亚洲香肠在线观看| 欧美精品xxxxbbbb| 国产精品视频麻豆| 欧美日韩视频在线观看一区二区三区| 狠狠久久亚洲欧美| 久久99在线观看| 日韩区在线观看| 亚洲一区在线电影| 555www色欧美视频| 欧美色图免费看| 欧美老女人在线| 日韩欧美国产综合一区| www久久精品| 欧美精彩视频一区二区三区| 国产精品少妇自拍| 日韩理论片一区二区| 亚洲一区二区在线观看视频| 午夜精品久久久久久不卡8050| 日本aⅴ亚洲精品中文乱码| 美女网站在线免费欧美精品| 国产尤物一区二区在线| 丁香另类激情小说| 色综合久久精品| 欧美日韩三级在线| 26uuu亚洲婷婷狠狠天堂| 国产欧美日韩精品a在线观看| 国产精品久久久久久久浪潮网站| 亚洲黄色小视频| 蜜桃精品在线观看| 成人教育av在线| 欧美日韩一区二区三区高清| 欧美v亚洲v综合ⅴ国产v| 国产偷v国产偷v亚洲高清| 伊人夜夜躁av伊人久久| 欧美a一区二区| 成人免费毛片高清视频| 精品视频一区二区不卡| 2023国产精品自拍| 亚洲女厕所小便bbb| 麻豆精品在线播放| 成人精品小蝌蚪| 3d动漫精品啪啪1区2区免费 | 欧美一区二区视频免费观看| 久久久亚洲高清| 亚洲一区二区三区自拍| 国产精品综合视频| 欧美日韩免费观看一区二区三区| 久久一二三国产| 亚洲国产精品自拍| 国产成人综合亚洲网站| 精品视频在线看| 中文字幕一区二区三区蜜月| 日本系列欧美系列| 一本大道久久a久久综合婷婷| 精品美女一区二区| 亚洲第一狼人社区| 成人精品在线视频观看| 精品久久人人做人人爽| 亚洲国产精品一区二区www在线| 国产一区二区不卡老阿姨| 欧美日韩电影在线播放| 国产精品人成在线观看免费| 精品亚洲成a人| 欧美浪妇xxxx高跟鞋交| 亚洲美女在线国产| 高清av一区二区| 欧美成va人片在线观看| 国产一区二区三区四区五区美女| 在线免费观看一区| 亚洲天堂a在线| 国产99精品视频| 久久久久久久久久久久久夜| 免费不卡在线视频| 3atv在线一区二区三区| 亚洲综合av网| 色婷婷亚洲婷婷| 国产精品国产成人国产三级 | 91蝌蚪porny| 国产精品私房写真福利视频| 国产乱子轮精品视频| 日韩精品中文字幕在线不卡尤物| 天堂在线一区二区| 欧美系列日韩一区| 亚洲一区二区在线观看视频| 日本精品一级二级| 亚洲伦在线观看| 色综合一区二区| 亚洲乱码国产乱码精品精小说| 不卡在线视频中文字幕| 中文字幕一区二区三区在线观看| 成人久久久精品乱码一区二区三区| 欧美国产精品一区| 成人av电影观看| 国产精品夫妻自拍| 99v久久综合狠狠综合久久| 国产精品美女久久久久久久| 99久久99久久久精品齐齐| 国产精品国产自产拍高清av | 99久久99久久久精品齐齐| 国产精品午夜春色av| 99视频在线精品| 亚洲一区二区三区四区在线免费观看 | 免费的成人av| 精品福利在线导航| 国产精品996| 国产精品成人网| 91在线一区二区三区| 精品在线播放免费| 欧美成人猛片aaaaaaa| 国产精品 欧美精品| 亚洲欧美日本韩国| 在线视频国产一区| 日韩激情中文字幕| 欧美www视频| 丁香网亚洲国际| 一区二区三区四区亚洲| 在线观看亚洲a| 久久成人久久鬼色| 中文字幕免费一区|