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

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

?? basicsliderui.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
        * then reduce the scrollbars value by one page ("page up"),         * otherwise increase it by one page.  If there is no         * thumb then page up if the mouse is in the upper half        * of the track.        */        public void mousePressed(MouseEvent e) {            if (!slider.isEnabled()) {                return;            }            currentMouseX = e.getX();            currentMouseY = e.getY();            if (slider.isRequestFocusEnabled()) {                slider.requestFocus();            }            // Clicked in the Thumb area?            if (thumbRect.contains(currentMouseX, currentMouseY)) {                switch (slider.getOrientation()) {                case JSlider.VERTICAL:                    offset = currentMouseY - thumbRect.y;                    break;                case JSlider.HORIZONTAL:                    offset = currentMouseX - thumbRect.x;                    break;                }                isDragging = true;                return;            }            isDragging = false;            slider.setValueIsAdjusting(true);            Dimension sbSize = slider.getSize();            int direction = POSITIVE_SCROLL;            switch (slider.getOrientation()) {            case JSlider.VERTICAL:                if ( thumbRect.isEmpty() ) {                    int scrollbarCenter = sbSize.height / 2;                    if ( !drawInverted() ) {                        direction = (currentMouseY < scrollbarCenter) ?                            POSITIVE_SCROLL : NEGATIVE_SCROLL;                    }                    else {                        direction = (currentMouseY < scrollbarCenter) ?                            NEGATIVE_SCROLL : POSITIVE_SCROLL;                    }                }                else {                    int thumbY = thumbRect.y;                    if ( !drawInverted() ) {                        direction = (currentMouseY < thumbY) ?                            POSITIVE_SCROLL : NEGATIVE_SCROLL;                    }                    else {                        direction = (currentMouseY < thumbY) ?                            NEGATIVE_SCROLL : POSITIVE_SCROLL;                    }                }                break;                                case JSlider.HORIZONTAL:                if ( thumbRect.isEmpty() ) {                    int scrollbarCenter = sbSize.width / 2;                    if ( !drawInverted() ) {                        direction = (currentMouseX < scrollbarCenter) ?                            NEGATIVE_SCROLL : POSITIVE_SCROLL;                    }                    else {                        direction = (currentMouseX < scrollbarCenter) ?                            POSITIVE_SCROLL : NEGATIVE_SCROLL;                    }                }                else {                    int thumbX = thumbRect.x;                    if ( !drawInverted() ) {                        direction = (currentMouseX < thumbX) ?                            NEGATIVE_SCROLL : POSITIVE_SCROLL;                    }                    else {                        direction = (currentMouseX < thumbX) ?                            POSITIVE_SCROLL : NEGATIVE_SCROLL;                    }                }                break;            }	    if (shouldScroll(direction)) {		scrollDueToClickInTrack(direction);	    }	    if (shouldScroll(direction)) {		scrollTimer.stop();		scrollListener.setDirection(direction);		scrollTimer.start();	    }        }        public boolean shouldScroll(int direction) {            Rectangle r = thumbRect;            if (slider.getOrientation() == JSlider.VERTICAL) {                if (drawInverted() ? direction < 0 : direction > 0) {                    if (r.y  <= currentMouseY) {                        return false;                    }                }                else if (r.y + r.height >= currentMouseY) {                    return false;                }            }            else {                if (drawInverted() ? direction < 0 : direction > 0) {                    if (r.x + r.width  >= currentMouseX) {                        return false;                    }                }                else if (r.x <= currentMouseX) {                    return false;                }            }            if (direction > 0 && slider.getValue() + slider.getExtent() >=                    slider.getMaximum()) {                return false;            }            else if (direction < 0 && slider.getValue() <=                    slider.getMinimum()) {                return false;            }            return true;        }        /**         * Set the models value to the position of the top/left        * of the thumb relative to the origin of the track.        */        public void mouseDragged(MouseEvent e) {            int thumbMiddle = 0;            if (!slider.isEnabled()) {                return;            }            currentMouseX = e.getX();            currentMouseY = e.getY();            if (!isDragging) {                return;            }            slider.setValueIsAdjusting(true);            switch (slider.getOrientation()) {            case JSlider.VERTICAL:                      int halfThumbHeight = thumbRect.height / 2;                int thumbTop = e.getY() - offset;                int trackTop = trackRect.y;                int trackBottom = trackRect.y + (trackRect.height - 1);                int vMax = yPositionForValue(slider.getMaximum() -                                            slider.getExtent());                if (drawInverted()) {                    trackBottom = vMax;                }                else {                    trackTop = vMax;                }                thumbTop = Math.max(thumbTop, trackTop - halfThumbHeight);                thumbTop = Math.min(thumbTop, trackBottom - halfThumbHeight);                setThumbLocation(thumbRect.x, thumbTop);                thumbMiddle = thumbTop + halfThumbHeight;                slider.setValue( valueForYPosition( thumbMiddle ) );                break;            case JSlider.HORIZONTAL:                int halfThumbWidth = thumbRect.width / 2;                int thumbLeft = e.getX() - offset;                int trackLeft = trackRect.x;                int trackRight = trackRect.x + (trackRect.width - 1);                int hMax = xPositionForValue(slider.getMaximum() -                                            slider.getExtent());                if (drawInverted()) {                    trackLeft = hMax;                }                else {                    trackRight = hMax;                }                thumbLeft = Math.max(thumbLeft, trackLeft - halfThumbWidth);                thumbLeft = Math.min(thumbLeft, trackRight - halfThumbWidth);                setThumbLocation(thumbLeft, thumbRect.y);                thumbMiddle = thumbLeft + halfThumbWidth;                slider.setValue(valueForXPosition(thumbMiddle));                break;            default:                return;            }        }        public void mouseMoved(MouseEvent e) { }    }    /**     * Scroll-event listener.     *     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class ScrollListener implements ActionListener {        // changed this class to public to avoid bogus IllegalAccessException        // bug in InternetExplorer browser.  It was protected.  Work around        // for 4109432        int direction = POSITIVE_SCROLL;        boolean useBlockIncrement;        public ScrollListener() {            direction = POSITIVE_SCROLL;            useBlockIncrement = true;        }        public ScrollListener(int dir, boolean block)   {            direction = dir;            useBlockIncrement = block;        }        public void setDirection(int direction) {            this.direction = direction;        }        public void setScrollByBlock(boolean block) {            this.useBlockIncrement = block;        }        public void actionPerformed(ActionEvent e) {            if (useBlockIncrement) {                scrollByBlock(direction);            }            else {                scrollByUnit(direction);            }            if (!trackListener.shouldScroll(direction)) {                ((Timer)e.getSource()).stop();            }        }    }    /**     * Listener for resizing events.     * <p>     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class ComponentHandler extends ComponentAdapter {        // NOTE: This class exists only for backward compatability. All        // its functionality has been moved into Handler. If you need to add        // new functionality add it to the Handler, but make sure this              // class calls into the Handler.        public void componentResized(ComponentEvent e)  {            getHandler().componentResized(e);        }    };      /**     * Focus-change listener.     * <p>     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class FocusHandler implements FocusListener {        // NOTE: This class exists only for backward compatability. All        // its functionality has been moved into Handler. If you need to add        // new functionality add it to the Handler, but make sure this              // class calls into the Handler.        public void focusGained(FocusEvent e) {            getHandler().focusGained(e);        }        public void focusLost(FocusEvent e) {            getHandler().focusLost(e);        }    }    /**     * As of Java 2 platform v1.3 this undocumented class is no longer used.     * The recommended approach to creating bindings is to use a     * combination of an <code>ActionMap</code>, to contain the action,     * and an <code>InputMap</code> to contain the mapping from KeyStroke     * to action description. The InputMap is is usually described in the     * LookAndFeel tables.     * <p>     * Please refer to the key bindings specification for further details.     * <p>     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <Foo>.     */    public class ActionScroller extends AbstractAction {        // NOTE: This class exists only for backward compatability. All        // its functionality has been moved into Actions. If you need to add        // new functionality add it to the Actions, but make sure this        // class calls into the Actions.        int dir;        boolean block;        JSlider slider;        public ActionScroller( JSlider slider, int dir, boolean block) {            this.dir = dir;            this.block = block;            this.slider = slider;        }        public void actionPerformed(ActionEvent e) {            SHARED_ACTION.scroll(slider, BasicSliderUI.this, dir, block);	}	public boolean isEnabled() { 	    boolean b = true;	    if (slider != null) {		b = slider.isEnabled();	    }	    return b;	}    };    /**     * A static version of the above.     */    static class SharedActionScroller extends AbstractAction {        // NOTE: This class exists only for backward compatability. All        // its functionality has been moved into Actions. If you need to add        // new functionality add it to the Actions, but make sure this        // class calls into the Actions.        int dir;        boolean block;        public SharedActionScroller(int dir, boolean block) {            this.dir = dir;            this.block = block;        }        public void actionPerformed(ActionEvent evt) {            JSlider slider = (JSlider)evt.getSource();            BasicSliderUI ui = (BasicSliderUI)BasicLookAndFeel.getUIOfType(                    slider.getUI(), BasicSliderUI.class);            if (ui == null) {                return;            }            SHARED_ACTION.scroll(slider, ui, dir, block);	}    }    private static class Actions extends UIAction {        public static final String POSITIVE_UNIT_INCREMENT =            "positiveUnitIncrement";        public static final String POSITIVE_BLOCK_INCREMENT =            "positiveBlockIncrement";        public static final String NEGATIVE_UNIT_INCREMENT =            "negativeUnitIncrement";        public static final String NEGATIVE_BLOCK_INCREMENT =            "negativeBlockIncrement";        public static final String MIN_SCROLL_INCREMENT = "minScroll";        public static final String MAX_SCROLL_INCREMENT = "maxScroll";        Actions() {            super(null);        }        public Actions(String name) {            super(name);        }        public void actionPerformed(ActionEvent evt) {            JSlider slider = (JSlider)evt.getSource();            BasicSliderUI ui = (BasicSliderUI)BasicLookAndFeel.getUIOfType(                

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产激情精品久久久第一区二区| 精品一区二区在线视频| 日韩精品专区在线| 色欧美88888久久久久久影院| 天天综合色天天| 18欧美亚洲精品| 久久精品视频一区二区| 欧美精品一级二级三级| 成人av电影观看| 国产.欧美.日韩| 韩国女主播一区| 狠狠色狠狠色综合| 久久精品国产亚洲高清剧情介绍| 夜夜夜精品看看| 亚洲欧美偷拍三级| 国产精品久久毛片| 国产精品久久久久影院色老大 | 欧美日韩国产综合一区二区| 波多野结衣在线一区| 国产成人免费视频网站高清观看视频 | 久久99精品国产.久久久久| 亚洲福利一区二区三区| 亚洲高清视频的网址| 亚洲综合在线五月| 樱桃视频在线观看一区| 亚洲无人区一区| 日精品一区二区| 国产在线一区二区| 国产精品18久久久久久久网站| 国产二区国产一区在线观看| 国产在线播放一区二区三区| 国产不卡在线播放| 色综合久久88色综合天天免费| 一本色道久久加勒比精品 | 日韩一区二区电影在线| 欧美一级在线免费| 欧美激情一区二区三区在线| 国产精品美女久久久久高潮| 亚洲免费三区一区二区| 日韩精品亚洲专区| 国产九色精品成人porny | 在线视频亚洲一区| 日韩一级二级三级| 中文字幕亚洲一区二区av在线| 亚洲大片精品永久免费| 国产精品一区二区三区乱码| 91麻豆国产香蕉久久精品| 欧美一区二区精品在线| 国产精品国产自产拍高清av王其 | 1000精品久久久久久久久| 亚洲成人免费观看| 成人精品亚洲人成在线| 日韩精品中午字幕| 亚洲成人你懂的| 色综合久久久网| 国产三级一区二区| 五月婷婷综合在线| 成人免费视频一区二区| 91精品国产高清一区二区三区 | 国产一区二区三区四区五区美女| 在线中文字幕不卡| 中文欧美字幕免费| 国产一区二区三区综合| 日韩欧美国产成人一区二区| 一区二区三区中文字幕在线观看| 国产高清不卡一区| 久久精品夜夜夜夜久久| 久久电影网站中文字幕| 91精品国产综合久久福利软件 | 国产偷国产偷亚洲高清人白洁| 三级成人在线视频| 宅男噜噜噜66一区二区66| 亚洲va在线va天堂| 日韩一区二区免费电影| 久久精品二区亚洲w码| 精品国产不卡一区二区三区| 六月丁香婷婷久久| 久久精品视频在线免费观看| 成人免费视频app| 亚洲欧洲av一区二区三区久久| 成人免费视频一区| 亚洲一区二区三区中文字幕在线 | 日韩av电影一区| 精品毛片乱码1区2区3区| 国产河南妇女毛片精品久久久| 中文字幕av在线一区二区三区| av高清久久久| 日本在线不卡一区| 国产欧美日韩一区二区三区在线观看| 东方欧美亚洲色图在线| 亚洲国产人成综合网站| 精品国免费一区二区三区| 成人sese在线| 另类小说色综合网站| 国产校园另类小说区| 欧美日韩国产a| 成人sese在线| 久久国内精品视频| 亚洲卡通动漫在线| 国产午夜亚洲精品午夜鲁丝片| 色狠狠色噜噜噜综合网| 国产麻豆日韩欧美久久| 日日夜夜精品视频免费| 久久久91精品国产一区二区三区| 日本久久一区二区| 成人免费观看视频| 精品亚洲porn| 日韩电影免费在线观看网站| 综合网在线视频| 国产亚洲精品福利| 日韩一级片在线观看| 欧美亚洲国产一区二区三区va| 成人va在线观看| 成人午夜av在线| 国产一区二区免费看| 蜜臀av在线播放一区二区三区| 亚洲午夜三级在线| 亚洲影院理伦片| 中文一区二区在线观看| 欧美在线观看18| 成人久久18免费网站麻豆| 国产·精品毛片| 成人网页在线观看| 不卡的av在线| 91免费看片在线观看| 色婷婷综合久久久久中文 | 91影视在线播放| 91麻豆精东视频| 欧美日韩精品综合在线| 欧美精品三级日韩久久| 91精品国产91综合久久蜜臀| 69久久夜色精品国产69蝌蚪网| 91麻豆精品国产自产在线| 91精品国产综合久久精品app| 日韩一区二区中文字幕| 久久亚洲精华国产精华液| 国产精品无码永久免费888| 中文字幕亚洲电影| 天天操天天色综合| 激情综合亚洲精品| 91网上在线视频| 欧美日韩二区三区| 国产偷国产偷亚洲高清人白洁 | 精品视频在线看| 欧美成人高清电影在线| 国产精品久久久久三级| 日韩精品高清不卡| 成熟亚洲日本毛茸茸凸凹| 欧美日韩国产一区| 欧美国产精品专区| 水蜜桃久久夜色精品一区的特点| 精品亚洲国产成人av制服丝袜 | 亚洲男帅同性gay1069| 久久国产人妖系列| 欧美三级韩国三级日本一级| 国产清纯在线一区二区www| 天堂一区二区在线免费观看| 国产精品91一区二区| 91精品福利在线一区二区三区| 国产精品女主播av| 国产乱人伦精品一区二区在线观看| 欧美探花视频资源| 一区二区三区在线视频播放| 成人夜色视频网站在线观看| 精品久久久久av影院| 日韩av电影天堂| 678五月天丁香亚洲综合网| 一区二区三区自拍| 在线观看不卡一区| 亚洲一级片在线观看| 91免费国产视频网站| 欧美激情一区二区三区不卡| 国产成人精品一区二| 久久精品欧美日韩精品| 成人自拍视频在线观看| 亚洲国产高清在线观看视频| 国产v日产∨综合v精品视频| 国产日韩欧美高清| 不卡大黄网站免费看| 自拍偷拍亚洲综合| 日本久久精品电影| 亚洲成人免费在线观看| 日韩亚洲欧美高清| 国产经典欧美精品| 亚洲精品美腿丝袜| 欧美日韩精品三区| 激情六月婷婷久久| 国产精品传媒视频| 这里只有精品视频在线观看| 精品综合免费视频观看| 国产精品天干天干在观线| 一本大道久久a久久综合| 日韩极品在线观看| 国产精品你懂的| 欧美四级电影网| 不卡av电影在线播放| 日产国产欧美视频一区精品| 中文字幕第一区第二区| 欧美性大战久久| 国产成人精品在线看|