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

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

?? basicsplitpanedivider.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* * @(#)BasicSplitPaneDivider.java	1.55 06/04/07 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.basic;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.event.*;import javax.swing.plaf.*;import javax.swing.border.Border;import java.beans.*;import sun.swing.DefaultLookup;/** * Divider used by BasicSplitPaneUI. Subclassers may wish to override * paint to do something more interesting. * The border effect is drawn in BasicSplitPaneUI, so if you don't like * that border, reset it there. * To conditionally drag from certain areas subclass mousePressed and * call super when you wish the dragging to begin. * <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}. * * @version 1.55 04/07/06 * @author Scott Violet */public class BasicSplitPaneDivider extends Container    implements PropertyChangeListener{    /**     * Width or height of the divider based on orientation     * BasicSplitPaneUI adds two to this.     */    protected static final int ONE_TOUCH_SIZE = 6;    protected static final int ONE_TOUCH_OFFSET = 2;    /**     * Handles mouse dragging message to do the actual dragging.     */    protected DragController dragger;    /**     * UI this instance was created from.     */    protected BasicSplitPaneUI splitPaneUI;    /**     * Size of the divider.     */    protected int dividerSize = 0; // default - SET TO 0???    /**     * Divider that is used for noncontinuous layout mode.     */    protected Component hiddenDivider;    /**     * JSplitPane the receiver is contained in.     */    protected JSplitPane splitPane;    /**     * Handles mouse events from both this class, and the split pane.     * Mouse events are handled for the splitpane since you want to be able     * to drag when clicking on the border of the divider, which is not      * drawn by the divider.     */    protected MouseHandler mouseHandler;    /**     * Orientation of the JSplitPane.     */    protected int orientation;    /**     * Button for quickly toggling the left component.     */    protected JButton leftButton;    /**     * Button for quickly toggling the right component.     */    protected JButton rightButton;    /** Border. */    private Border border;    /**     * Is the mouse over the divider?     */    private boolean mouseOver;    private int oneTouchSize;    private int oneTouchOffset;    /**     * If true the one touch buttons are centered on the divider.     */    private boolean centerOneTouchButtons;    /**     * Creates an instance of BasicSplitPaneDivider. Registers this     * instance for mouse events and mouse dragged events.     */    public BasicSplitPaneDivider(BasicSplitPaneUI ui) {        oneTouchSize = DefaultLookup.getInt(ui.getSplitPane(), ui,                "SplitPane.oneTouchButtonSize", ONE_TOUCH_SIZE);        oneTouchOffset = DefaultLookup.getInt(ui.getSplitPane(), ui,                "SplitPane.oneTouchButtonOffset", ONE_TOUCH_OFFSET);        centerOneTouchButtons = DefaultLookup.getBoolean(ui.getSplitPane(),                 ui, "SplitPane.centerOneTouchButtons", true);        setLayout(new DividerLayout());        setBasicSplitPaneUI(ui);        orientation = splitPane.getOrientation();        setCursor((orientation == JSplitPane.HORIZONTAL_SPLIT) ?                  Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR) :                  Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));        setBackground(UIManager.getColor("SplitPane.background"));    }    private void revalidate() {        invalidate();        if (splitPane != null) {            splitPane.revalidate();        }    }    /**     * Sets the SplitPaneUI that is using the receiver.     */    public void setBasicSplitPaneUI(BasicSplitPaneUI newUI) {        if (splitPane != null) {            splitPane.removePropertyChangeListener(this);           if (mouseHandler != null) {               splitPane.removeMouseListener(mouseHandler);               splitPane.removeMouseMotionListener(mouseHandler);	       removeMouseListener(mouseHandler);	       removeMouseMotionListener(mouseHandler);               mouseHandler = null;           }        }        splitPaneUI = newUI;        if (newUI != null) {            splitPane = newUI.getSplitPane();            if (splitPane != null) {                if (mouseHandler == null) mouseHandler = new MouseHandler();                splitPane.addMouseListener(mouseHandler);                splitPane.addMouseMotionListener(mouseHandler);		addMouseListener(mouseHandler);		addMouseMotionListener(mouseHandler);                splitPane.addPropertyChangeListener(this);                if (splitPane.isOneTouchExpandable()) {                    oneTouchExpandableChanged();                }            }        }        else {            splitPane = null;        }    }    /**     * Returns the <code>SplitPaneUI</code> the receiver is currently     * in.     */    public BasicSplitPaneUI getBasicSplitPaneUI() {        return splitPaneUI;    }    /**     * Sets the size of the divider to <code>newSize</code>. That is     * the width if the splitpane is <code>HORIZONTAL_SPLIT</code>, or     * the height of <code>VERTICAL_SPLIT</code>.     */    public void setDividerSize(int newSize) {        dividerSize = newSize;    }    /**     * Returns the size of the divider, that is the width if the splitpane     * is HORIZONTAL_SPLIT, or the height of VERTICAL_SPLIT.     */    public int getDividerSize() {        return dividerSize;    }    /**     * Sets the border of this component.     * @since 1.3     */    public void setBorder(Border border) {        Border         oldBorder = this.border;        this.border = border;    }    /**     * Returns the border of this component or null if no border is     * currently set.     *     * @return the border object for this component     * @see #setBorder     * @since 1.3     */    public Border getBorder() {        return border;    }    /**     * If a border has been set on this component, returns the     * border's insets, else calls super.getInsets.     *     * @return the value of the insets property.     * @see #setBorder     */    public Insets getInsets() {	Border    border = getBorder();        if (border != null) {            return border.getBorderInsets(this);        }    	return super.getInsets();    }    /**     * Sets whether or not the mouse is currently over the divider.     *     * @param mouseOver whether or not the mouse is currently over the divider     * @since 1.5     */    protected void setMouseOver(boolean mouseOver) {        this.mouseOver = mouseOver;    }    /**     * Returns whether or not the mouse is currently over the divider     *     * @return whether or not the mouse is currently over the divider     * @since 1.5     */    public boolean isMouseOver() {        return mouseOver;    }    /**     * Returns dividerSize x dividerSize     */    public Dimension getPreferredSize() {        // Ideally this would return the size from the layout manager,        // but that could result in the layed out size being different from        // the dividerSize, which may break developers as well as        // BasicSplitPaneUI.        if (orientation == JSplitPane.HORIZONTAL_SPLIT) {            return new Dimension(getDividerSize(), 1);        }        return new Dimension(1, getDividerSize());    }    /**     * Returns dividerSize x dividerSize     */    public Dimension getMinimumSize() {        return getPreferredSize();    }    /**     * Property change event, presumably from the JSplitPane, will message     * updateOrientation if necessary.     */    public void propertyChange(PropertyChangeEvent e) {        if (e.getSource() == splitPane) {            if (e.getPropertyName() == JSplitPane.ORIENTATION_PROPERTY) {                orientation = splitPane.getOrientation();                setCursor((orientation == JSplitPane.HORIZONTAL_SPLIT) ?                          Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR) :                          Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));                revalidate();            }            else if (e.getPropertyName() == JSplitPane.                      ONE_TOUCH_EXPANDABLE_PROPERTY) {                oneTouchExpandableChanged();            }        }    }    /**     * Paints the divider.     */    public void paint(Graphics g) {      super.paint(g);      // Paint the border.      Border   border = getBorder();      if (border != null) {	  Dimension     size = getSize();	  border.paintBorder(this, g, 0, 0, size.width, size.height);      }    }    /**     * Messaged when the oneTouchExpandable value of the JSplitPane the     * receiver is contained in changes. Will create the     * <code>leftButton</code> and <code>rightButton</code> if they     * are null. invalidates the receiver as well.     */    protected void oneTouchExpandableChanged() {        if (!DefaultLookup.getBoolean(splitPane, splitPaneUI,                           "SplitPane.supportsOneTouchButtons", true)) {            // Look and feel doesn't want to support one touch buttons, bail.            return;        }        if (splitPane.isOneTouchExpandable() &&            leftButton == null &&            rightButton == null) {            /* Create the left button and add an action listener to               expand/collapse it. */            leftButton = createLeftOneTouchButton();            if (leftButton != null)                leftButton.addActionListener(new OneTouchActionHandler(true));            /* Create the right button and add an action listener to               expand/collapse it. */            rightButton = createRightOneTouchButton();            if (rightButton != null)                rightButton.addActionListener(new OneTouchActionHandler		    (false));            if (leftButton != null && rightButton != null) {                add(leftButton);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美吻胸吃奶大尺度电影| 91麻豆精品国产自产在线观看一区 | 午夜精品久久久久久不卡8050 | 中文字幕一区二区三中文字幕| 亚洲国产精品一区二区www在线 | 成人污污视频在线观看| 精品一区中文字幕| 国产精品网站在线| 久久综合色之久久综合| 亚洲福利视频一区二区| 高清国产一区二区| 日韩精品一区二区三区swag| 亚洲宅男天堂在线观看无病毒| 国内不卡的二区三区中文字幕 | 中文字幕在线观看不卡| 九九久久精品视频| 欧美日韩在线电影| 伊人开心综合网| 不卡视频一二三四| 久久久三级国产网站| 加勒比av一区二区| 精品日韩在线观看| 毛片一区二区三区| 日韩欧美在线网站| 秋霞午夜鲁丝一区二区老狼| 欧美日韩一级二级| 亚洲国产一区二区a毛片| 在线看不卡av| 亚洲一级二级三级| 在线观看日韩一区| 亚洲自拍偷拍图区| 欧美日韩精品免费观看视频| 午夜精品久久久久久久99水蜜桃| 色欧美片视频在线观看在线视频| 最新中文字幕一区二区三区| 成人av资源网站| 国产精品激情偷乱一区二区∴| 国产精品18久久久久| 久久精品免视看| 国产综合色视频| 国产三级精品在线| 成人免费观看视频| 亚洲美女视频一区| 欧美主播一区二区三区| 亚洲福利电影网| 日韩欧美一级二级三级久久久| 免费成人av在线| 久久综合中文字幕| 99视频一区二区| 中文字幕一区在线观看视频| 国产精品美女久久久久久久久| 欧美一区二区三区啪啪| 亚洲一卡二卡三卡四卡| 欧美乱妇一区二区三区不卡视频| 天堂影院一区二区| 丰满亚洲少妇av| 亚洲欧美色一区| 国产一区二区美女| 久久一区二区三区国产精品| 国产欧美在线观看一区| 一本久久a久久精品亚洲| 亚洲图片自拍偷拍| 日韩欧美aaaaaa| 成人午夜电影小说| 亚洲最大色网站| 日韩视频中午一区| 成人黄色在线视频| 色婷婷一区二区三区四区| 日韩一区国产二区欧美三区| 亚洲一区二区成人在线观看| 日韩视频永久免费| 国产suv精品一区二区6| 亚洲综合视频在线| 精品国产区一区| 色88888久久久久久影院野外| 日本美女一区二区三区视频| 国产精品久久福利| 6080亚洲精品一区二区| 成人精品国产福利| 日韩精品色哟哟| 自拍偷拍亚洲综合| 精品国精品国产尤物美女| 91国产福利在线| 国产原创一区二区| 午夜精品福利久久久| 国产精品美女视频| 精品国产乱码久久久久久老虎| 一本色道久久综合狠狠躁的推荐 | 久久99久久久欧美国产| 亚洲视频 欧洲视频| 欧美电影免费观看高清完整版在线| 99久久精品费精品国产一区二区| 奇米四色…亚洲| 亚洲精品国产无套在线观| 久久久99久久| 精品国产一二三| 欧美日韩aaaaaa| 在线观看国产精品网站| 成人h动漫精品| 狠狠网亚洲精品| 蜜乳av一区二区| 日韩黄色免费网站| 亚洲国产成人av| 亚洲精品日日夜夜| 中文字幕一区二区三区四区不卡| 精品盗摄一区二区三区| 欧美另类videos死尸| 欧美网站大全在线观看| 日本乱人伦aⅴ精品| 95精品视频在线| 99久久综合国产精品| 粗大黑人巨茎大战欧美成人| 成人一道本在线| 欧美日韩在线免费视频| 欧美中文字幕一二三区视频| 一区二区三区四区五区视频在线观看| 5858s免费视频成人| 97se亚洲国产综合自在线| 国产精品自拍毛片| 国产精品免费看片| 亚洲老司机在线| 91麻豆精品国产综合久久久久久| 欧美在线免费播放| 在线观看视频一区| 欧日韩精品视频| 欧美日产国产精品| 日韩限制级电影在线观看| 日韩欧美专区在线| 26uuu色噜噜精品一区二区| 337p日本欧洲亚洲大胆色噜噜| 精品99999| 中文字幕乱码一区二区免费| 中文字幕精品在线不卡| 国产精品日韩成人| 亚洲精品日日夜夜| 日日骚欧美日韩| 经典三级一区二区| 日韩毛片精品高清免费| 久久婷婷国产综合精品青草 | 亚洲福利一二三区| 亚洲成av人片| 久久99精品久久久久久久久久久久 | 欧美一区二区三区免费大片| 日韩丝袜情趣美女图片| 久久精品欧美一区二区三区不卡| 国产精品卡一卡二卡三| 一区二区三区精品视频在线| 午夜亚洲国产au精品一区二区| 亚洲成人动漫精品| 精品一二线国产| gogo大胆日本视频一区| 欧美三级视频在线播放| 精品国产乱码久久久久久图片| 欧美国产精品一区二区三区| 亚洲国产综合色| 国产在线播放一区三区四| 欧美专区日韩专区| 久久久午夜电影| 国产麻豆91精品| 亚洲一级二级在线| 美女精品一区二区| 92国产精品观看| 亚洲精品一区二区在线观看| 国产精品蜜臀在线观看| 伦理电影国产精品| 一本色道久久综合亚洲91| www国产成人免费观看视频 深夜成人网| 国产精品久久久久久久久快鸭| 奇米综合一区二区三区精品视频| av一二三不卡影片| 欧美tk丨vk视频| 亚洲成a人片在线不卡一二三区 | 亚洲色图另类专区| 国产在线不卡一区| 欧美一区二区三区免费视频| 亚洲免费在线看| 丁香天五香天堂综合| 日韩欧美国产一区二区在线播放| 综合婷婷亚洲小说| 国产美女在线精品| 精品91自产拍在线观看一区| 天天综合色天天| 在线观看日韩国产| 中文字幕在线一区二区三区| 国产一区二区三区在线观看精品 | 欧美xfplay| 视频一区免费在线观看| 色偷偷一区二区三区| 国产精品污www在线观看| 国产伦精品一区二区三区免费| 51久久夜色精品国产麻豆| 亚洲一区二三区| 91麻豆免费看| 国产精品久久久一本精品| 国产在线国偷精品免费看| www成人在线观看| 久久99精品国产麻豆不卡| 欧美一个色资源| 青青草精品视频| 欧美草草影院在线视频|