亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产成人综合精品三级| 日本福利一区二区| 亚洲自拍偷拍图区| 久久久久成人黄色影片| 在线播放中文一区| 99久久国产综合精品麻豆| 精一区二区三区| 亚洲国产日日夜夜| 亚洲日本电影在线| 久久日韩精品一区二区五区| 欧美综合久久久| 成人高清伦理免费影院在线观看| 麻豆一区二区三| 亚洲午夜久久久| 亚洲人成在线播放网站岛国| 久久精品夜夜夜夜久久| 日韩一区二区麻豆国产| 色94色欧美sute亚洲13| 成人国产精品视频| 国产精品一区二区黑丝| 国模娜娜一区二区三区| 蜜臀av一区二区| 香蕉av福利精品导航| 一区二区三区免费在线观看| 最新国产成人在线观看| 日本一区二区在线不卡| 久久综合九色综合97婷婷女人 | 国产综合成人久久大片91| 婷婷夜色潮精品综合在线| 亚洲国产精品欧美一二99| 一区二区三区不卡视频| 亚洲色图视频网| ●精品国产综合乱码久久久久| 中文字幕不卡在线播放| 国产农村妇女毛片精品久久麻豆| 精品国产亚洲在线| 久久亚洲精精品中文字幕早川悠里 | 久久99久久精品欧美| 日韩成人伦理电影在线观看| 日韩经典一区二区| 天堂成人国产精品一区| 青娱乐精品视频在线| 欧美aⅴ一区二区三区视频| 日韩av二区在线播放| 麻豆专区一区二区三区四区五区| 激情综合五月婷婷| 国产成人精品影视| 91日韩精品一区| 欧美视频中文一区二区三区在线观看| 欧美无人高清视频在线观看| 欧美日本一区二区三区四区| 欧美一区二区在线免费观看| 精品国精品国产| 国产精品你懂的| 亚洲狼人国产精品| 午夜伦欧美伦电影理论片| 水蜜桃久久夜色精品一区的特点| 免费成人av资源网| 精品亚洲成a人| 东方aⅴ免费观看久久av| 99国内精品久久| 欧美电影一区二区三区| 精品久久久久久久久久久院品网 | 成人中文字幕电影| 色综合天天综合狠狠| 久久久国产精品不卡| 中文字幕的久久| 亚洲午夜av在线| 国产久卡久卡久卡久卡视频精品| 99re亚洲国产精品| 欧美欧美欧美欧美首页| 国产亚洲精久久久久久| 亚洲卡通动漫在线| 美国毛片一区二区三区| 99国内精品久久| 精品乱码亚洲一区二区不卡| 国产精品久久久久久久久果冻传媒 | 欧美tk丨vk视频| 国产精品理论在线观看| 天堂av在线一区| 国产成人精品三级麻豆| 欧美亚一区二区| 国产色一区二区| 亚洲午夜精品在线| 国产成人免费网站| 欧美三级一区二区| 久久你懂得1024| 亚洲一区二区3| 国产成人综合网| 91精品欧美一区二区三区综合在 | 天天综合天天做天天综合| 国内成人免费视频| 欧美日韩免费高清一区色橹橹| 国产亚洲一区字幕| 天天av天天翘天天综合网色鬼国产 | 中文字幕乱码日本亚洲一区二区 | 国产精品一区二区你懂的| 欧美视频三区在线播放| 亚洲国产精品精华液ab| 美女诱惑一区二区| 99久久免费国产| 久久久久久免费网| av在线不卡观看免费观看| 欧美一区二区美女| 亚洲尤物视频在线| 成人亚洲一区二区一| 精品少妇一区二区| 三级久久三级久久| 91麻豆免费观看| 欧美国产欧美亚州国产日韩mv天天看完整| 日韩中文字幕一区二区三区| 图片区小说区国产精品视频| 色婷婷综合久久久| 欧美激情一区不卡| 国产盗摄女厕一区二区三区| 欧美一区二区在线播放| 亚洲一区二区精品久久av| 99re在线精品| 国产精品国产三级国产普通话蜜臀 | 毛片不卡一区二区| 777色狠狠一区二区三区| 亚洲电影一级片| 欧美视频日韩视频在线观看| 一区二区三区资源| 一本色道久久加勒比精品| 国产精品国模大尺度视频| 高潮精品一区videoshd| 国产日本一区二区| 国产福利一区在线| 久久久精品蜜桃| 国产成人免费在线视频| 国产清纯在线一区二区www| 国产又黄又大久久| 精品久久久久av影院| 麻豆freexxxx性91精品| 91麻豆精品91久久久久久清纯| 亚洲.国产.中文慕字在线| 欧美日韩国产三级| 日本伊人午夜精品| 欧美伦理影视网| 日韩精品亚洲一区二区三区免费| 91精品蜜臀在线一区尤物| 日韩不卡一区二区| 精品日韩成人av| 国产传媒欧美日韩成人| 国产目拍亚洲精品99久久精品| 成人一二三区视频| 国产欧美精品一区二区色综合| 成人性生交大片免费看中文网站| 国产精品久久久久久久久搜平片| 91玉足脚交白嫩脚丫在线播放| 亚洲蜜臀av乱码久久精品| 欧洲av一区二区嗯嗯嗯啊| 天天影视涩香欲综合网| 欧美成人在线直播| 国产激情视频一区二区三区欧美| 国产精品亲子伦对白| 一本一道久久a久久精品| 亚洲福中文字幕伊人影院| 欧美精品亚洲二区| 黑人巨大精品欧美黑白配亚洲| 国产精品美女久久久久aⅴ | 欧美久久久一区| 国产在线一区二区| 国产精品成人免费精品自在线观看| 91在线免费播放| 日韩高清欧美激情| 亚洲人午夜精品天堂一二香蕉| 欧美日韩亚洲综合一区二区三区| 裸体歌舞表演一区二区| 中文字幕不卡在线播放| 欧美午夜精品免费| 国产精品影视网| 亚洲精品国久久99热| 日韩精品一区二区三区老鸭窝| 懂色av一区二区三区免费观看| 午夜精品久久久久久久久| 久久女同互慰一区二区三区| 欧美在线一区二区| 狠狠色狠狠色合久久伊人| 亚洲精品成a人| 26uuu国产电影一区二区| 色哟哟国产精品| 国产在线精品免费| 亚洲一区视频在线观看视频| 久久精品亚洲乱码伦伦中文| 91福利在线观看| 国产成人在线影院 | 成人av在线资源| 日韩国产一区二| 亚洲欧美国产77777| 精品成人a区在线观看| 欧美影院一区二区三区| 粉嫩嫩av羞羞动漫久久久| 日韩精品久久理论片| 亚洲色大成网站www久久九九| 欧美精品一区二区三区在线| 欧美日韩免费在线视频| 99久久久国产精品免费蜜臀| 极品少妇一区二区|