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

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

?? basictabbedpaneui.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
        return nudge;    }    protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) {        Rectangle tabRect = rects[tabIndex];        int nudge = 0;        switch(tabPlacement) {           case BOTTOM:              nudge = isSelected? 1 : -1;              break;          case LEFT:          case RIGHT:              nudge = tabRect.height % 2;              break;          case TOP:          default:              nudge = isSelected? -1 : 1;;        }        return nudge;    }    protected void paintFocusIndicator(Graphics g, int tabPlacement,                                       Rectangle[] rects, int tabIndex,                                        Rectangle iconRect, Rectangle textRect,                                       boolean isSelected) {        Rectangle tabRect = rects[tabIndex];        if (tabPane.hasFocus() && isSelected) {            int x, y, w, h;            g.setColor(focus);            switch(tabPlacement) {              case LEFT:                  x = tabRect.x + 3;                  y = tabRect.y + 3;                  w = tabRect.width - 5;                  h = tabRect.height - 6;                  break;              case RIGHT:                  x = tabRect.x + 2;                  y = tabRect.y + 3;                  w = tabRect.width - 5;                  h = tabRect.height - 6;                  break;              case BOTTOM:                  x = tabRect.x + 3;                  y = tabRect.y + 2;                  w = tabRect.width - 6;                  h = tabRect.height - 5;                  break;              case TOP:              default:                  x = tabRect.x + 3;                  y = tabRect.y + 3;                  w = tabRect.width - 6;                  h = tabRect.height - 5;            }            BasicGraphicsUtils.drawDashedRect(g, x, y, w, h);        }    }    /**      * this function draws the border around each tab      * note that this function does now draw the background of the tab.      * that is done elsewhere      */    protected void paintTabBorder(Graphics g, int tabPlacement,                                  int tabIndex,                                  int x, int y, int w, int h,                                   boolean isSelected ) {        g.setColor(lightHighlight);          switch (tabPlacement) {          case LEFT:              g.drawLine(x+1, y+h-2, x+1, y+h-2); // bottom-left highlight              g.drawLine(x, y+2, x, y+h-3); // left highlight              g.drawLine(x+1, y+1, x+1, y+1); // top-left highlight              g.drawLine(x+2, y, x+w-1, y); // top highlight              g.setColor(shadow);              g.drawLine(x+2, y+h-2, x+w-1, y+h-2); // bottom shadow              g.setColor(darkShadow);              g.drawLine(x+2, y+h-1, x+w-1, y+h-1); // bottom dark shadow              break;          case RIGHT:              g.drawLine(x, y, x+w-3, y); // top highlight              g.setColor(shadow);              g.drawLine(x, y+h-2, x+w-3, y+h-2); // bottom shadow              g.drawLine(x+w-2, y+2, x+w-2, y+h-3); // right shadow              g.setColor(darkShadow);              g.drawLine(x+w-2, y+1, x+w-2, y+1); // top-right dark shadow              g.drawLine(x+w-2, y+h-2, x+w-2, y+h-2); // bottom-right dark shadow              g.drawLine(x+w-1, y+2, x+w-1, y+h-3); // right dark shadow              g.drawLine(x, y+h-1, x+w-3, y+h-1); // bottom dark shadow              break;                        case BOTTOM:              g.drawLine(x, y, x, y+h-3); // left highlight              g.drawLine(x+1, y+h-2, x+1, y+h-2); // bottom-left highlight              g.setColor(shadow);              g.drawLine(x+2, y+h-2, x+w-3, y+h-2); // bottom shadow              g.drawLine(x+w-2, y, x+w-2, y+h-3); // right shadow              g.setColor(darkShadow);              g.drawLine(x+2, y+h-1, x+w-3, y+h-1); // bottom dark shadow              g.drawLine(x+w-2, y+h-2, x+w-2, y+h-2); // bottom-right dark shadow              g.drawLine(x+w-1, y, x+w-1, y+h-3); // right dark shadow              break;          case TOP:          default:                         g.drawLine(x, y+2, x, y+h-1); // left highlight              g.drawLine(x+1, y+1, x+1, y+1); // top-left highlight              g.drawLine(x+2, y, x+w-3, y); // top highlight                            g.setColor(shadow);                g.drawLine(x+w-2, y+2, x+w-2, y+h-1); // right shadow              g.setColor(darkShadow);               g.drawLine(x+w-1, y+2, x+w-1, y+h-1); // right dark-shadow              g.drawLine(x+w-2, y+1, x+w-2, y+1); // top-right shadow        }    }    protected void paintTabBackground(Graphics g, int tabPlacement,                                      int tabIndex,                                      int x, int y, int w, int h,                                       boolean isSelected ) {        g.setColor(!isSelected || selectedColor == null?                    tabPane.getBackgroundAt(tabIndex) : selectedColor);        switch(tabPlacement) {          case LEFT:              g.fillRect(x+1, y+1, w-1, h-3);              break;          case RIGHT:              g.fillRect(x, y+1, w-2, h-3);              break;          case BOTTOM:              g.fillRect(x+1, y, w-3, h-1);              break;          case TOP:          default:              g.fillRect(x+1, y+1, w-3, h-1);        }    }    protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) {        int width = tabPane.getWidth();        int height = tabPane.getHeight();        Insets insets = tabPane.getInsets();        Insets tabAreaInsets = getTabAreaInsets(tabPlacement);        int x = insets.left;        int y = insets.top;        int w = width - insets.right - insets.left;        int h = height - insets.top - insets.bottom;        switch(tabPlacement) {          case LEFT:              x += calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth);	      if (tabsOverlapBorder) {		  x -= tabAreaInsets.right;	      }              w -= (x - insets.left);              break;          case RIGHT:              w -= calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth);	      if (tabsOverlapBorder) {		  w += tabAreaInsets.left;	      }              break;                      case BOTTOM:               h -= calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight);	      if (tabsOverlapBorder) {		  h += tabAreaInsets.top;	      }              break;          case TOP:          default:              y += calculateTabAreaHeight(tabPlacement, runCount, maxTabHeight);	      if (tabsOverlapBorder) {		  y -= tabAreaInsets.bottom;	      }              h -= (y - insets.top);        }             if ( tabPane.getTabCount() > 0 && (contentOpaque || tabPane.isOpaque()) ) {            // Fill region behind content area            Color color = UIManager.getColor("TabbedPane.contentAreaColor");            if (color != null) {                g.setColor(color);            }            else if ( selectedColor == null || selectedIndex == -1 ) {                g.setColor(tabPane.getBackground());            }            else {                g.setColor(selectedColor);            }            g.fillRect(x,y,w,h);        }        paintContentBorderTopEdge(g, tabPlacement, selectedIndex, x, y, w, h);        paintContentBorderLeftEdge(g, tabPlacement, selectedIndex, x, y, w, h);         paintContentBorderBottomEdge(g, tabPlacement, selectedIndex, x, y, w, h);        paintContentBorderRightEdge(g, tabPlacement, selectedIndex, x, y, w, h);     }             protected void paintContentBorderTopEdge(Graphics g, int tabPlacement,                                         int selectedIndex,                                          int x, int y, int w, int h) {        Rectangle selRect = selectedIndex < 0? null :                               getTabBounds(selectedIndex, calcRect);        g.setColor(lightHighlight);        // Draw unbroken line if tabs are not on TOP, OR        // selected tab is not in run adjacent to content, OR        // selected tab is not visible (SCROLL_TAB_LAYOUT)        //        if (tabPlacement != TOP || selectedIndex < 0 ||             (selRect.y + selRect.height + 1 < y) ||            (selRect.x < x || selRect.x > x + w)) {            g.drawLine(x, y, x+w-2, y);        } else {            // Break line to show visual connection to selected tab            g.drawLine(x, y, selRect.x - 1, y);            if (selRect.x + selRect.width < x + w - 2) {                g.drawLine(selRect.x + selRect.width, y,                            x+w-2, y);            } else {                g.setColor(shadow);                 g.drawLine(x+w-2, y, x+w-2, y);            }        }    }    protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement,                                               int selectedIndex,                                               int x, int y, int w, int h) {         Rectangle selRect = selectedIndex < 0? null :                               getTabBounds(selectedIndex, calcRect);        g.setColor(lightHighlight);         // Draw unbroken line if tabs are not on LEFT, OR        // selected tab is not in run adjacent to content, OR        // selected tab is not visible (SCROLL_TAB_LAYOUT)        //        if (tabPlacement != LEFT || selectedIndex < 0 ||            (selRect.x + selRect.width + 1 < x) ||            (selRect.y < y || selRect.y > y + h)) {            g.drawLine(x, y, x, y+h-2);        } else {            // Break line to show visual connection to selected tab            g.drawLine(x, y, x, selRect.y - 1);            if (selRect.y + selRect.height < y + h - 2) {                g.drawLine(x, selRect.y + selRect.height,                            x, y+h-2);            }         }    }    protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement,                                               int selectedIndex,                                               int x, int y, int w, int h) {         Rectangle selRect = selectedIndex < 0? null :                               getTabBounds(selectedIndex, calcRect);        g.setColor(shadow);        // Draw unbroken line if tabs are not on BOTTOM, OR        // selected tab is not in run adjacent to content, OR        // selected tab is not visible (SCROLL_TAB_LAYOUT)        //        if (tabPlacement != BOTTOM || selectedIndex < 0 ||             (selRect.y - 1 > h) ||             (selRect.x < x || selRect.x > x + w)) {            g.drawLine(x+1, y+h-2, x+w-2, y+h-2);            g.setColor(darkShadow);            g.drawLine(x, y+h-1, x+w-1, y+h-1);        } else {            // Break line to show visual connection to selected tab            g.drawLine(x+1, y+h-2, selRect.x - 1, y+h-2);            g.setColor(darkShadow);            g.drawLine(x, y+h-1, selRect.x - 1, y+h-1);            if (selRect.x + selRect.width < x + w - 2) {                g.setColor(shadow);                g.drawLine(selRect.x + selRect.width, y+h-2, x+w-2, y+h-2);                g.setColor(darkShadow);                g.drawLine(selRect.x + selRect.width, y+h-1, x+w-1, y+h-1);            }         }    }    protected void paintContentBorderRightEdge(Graphics g, int tabPlacement,                                               int selectedIndex,                                               int x, int y, int w, int h) {        Rectangle selRect = selectedIndex < 0? null :                               getTabBounds(selectedIndex, calcRect);        g.setColor(shadow);        // Draw unbroken line if tabs are not on RIGHT, OR        // selected tab is not in run adjacent to content, OR        // selected tab is not visible (SCROLL_TAB_LAYOUT)        //        if (tabPlacement != RIGHT || selectedIndex < 0 ||             (selRect.x - 1 > w) ||             (selRect.y < y || selRect.y > y + h)) {            g.drawLine(x+w-2, y+1, x+w-2, y+h-3);            g.setColor(darkShadow);            g.drawLine(x+w-1, y, x+w-1, y+h-1);        } else {            // Break line to show visual connection to selected tab            g.drawLine(x+w-2, y+1, x+w-2, selRect.y - 1);            g.setColor(darkShadow);            g.drawLine(x+w-1, y, x+w-1, selRect.y - 1);            if (selRect.y + selRect.height < y + h - 2) {                g.setColor(shadow);                g.drawLine(x+w-2, selRect.y + selRect.height,                            x+w-2, y+h-2);                g.setColor(darkShadow);                g.drawLine(x+w-1, selRect.y + selRect.height,                            x+w-1, y+h-2);            }         }    }    private void ensureCurrentLayout() {        if (!tabPane.isValid()) {            tabPane.validate();        }         /* If tabPane doesn't have a peer yet, the validate() call will         * silently fail.  We handle that by forcing a layout if tabPane         * is still invalid.  See bug 4237677.         */        if (!tabPane.isValid()) {            TabbedPaneLayout layout = (TabbedPaneLayout)tabPane.getLayout();            layout.calculateLayoutInfo();                  }    }           // TabbedPaneUI methods    /**     * Returns the bounds of the specified tab index.  The bounds are     * with respect to the JTabbedPane's coordinate space.     */    public Rectangle getTabBounds(JTabbedPane pane, int i) {         ensureCurrentLayout();        Rectangle tabRect = new Rectangle();        return getTabBounds(i, tabRect);    }    public int getTabRunCount(JTabbedPane pane) {        ensureCurrentLayout();        return runCount;    }    /**     * Returns the tab index which intersects the specified point

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费小视频| 色乱码一区二区三区88| 亚洲美女淫视频| 欧美mv日韩mv| 在线视频国内自拍亚洲视频| 麻豆成人综合网| 一区二区三区影院| 欧美激情一区二区三区四区| 91.xcao| 91视频国产资源| 国内精品国产三级国产a久久| 亚洲午夜久久久| 日韩伦理av电影| 国产丝袜在线精品| 欧美videos大乳护士334| 欧美视频一区在线观看| 99久久久国产精品免费蜜臀| 久久99国产精品免费| 亚洲成a人片在线观看中文| 日韩一区欧美小说| 国产日韩欧美综合一区| 欧美大片在线观看一区二区| 精品视频资源站| 欧洲视频一区二区| 91网上在线视频| 成人午夜激情视频| 国产成人一区在线| 国产电影一区在线| 国产一区二区久久| 精久久久久久久久久久| 国产在线精品国自产拍免费| 麻豆国产91在线播放| 美女尤物国产一区| 久久91精品国产91久久小草| 日本不卡一区二区三区| 亚洲成在线观看| 亚洲成人免费在线| 午夜视频一区二区| 午夜精品免费在线| 日韩激情av在线| 日本不卡不码高清免费观看| 日韩中文字幕av电影| 天天色图综合网| 青青草91视频| 九一九一国产精品| 国产在线精品国自产拍免费| 国内外成人在线| 夫妻av一区二区| 成人av网站免费观看| 99久久精品99国产精品| 91免费小视频| 欧美喷潮久久久xxxxx| 欧美人牲a欧美精品| 91精品国产黑色紧身裤美女| 日韩欧美二区三区| 国产喂奶挤奶一区二区三区| 国产精品情趣视频| 亚洲乱码日产精品bd| 亚洲第一搞黄网站| 久久国产精品99久久久久久老狼| 久99久精品视频免费观看| 国产91精品一区二区麻豆网站| 国产成人精品1024| 91丨九色丨国产丨porny| 欧美三区在线观看| 日韩精品一区二区三区在线观看| 久久久久久一二三区| 亚洲欧洲另类国产综合| 亚洲精品乱码久久久久久黑人| 婷婷国产v国产偷v亚洲高清| 精品一区二区综合| 91在线观看美女| 777奇米成人网| 国产日韩精品一区二区三区| 亚洲欧洲日产国码二区| 婷婷丁香久久五月婷婷| 国产成人免费视频网站| 欧美性猛交xxxx黑人交| 欧美精品一区二区三区很污很色的 | 色婷婷综合在线| 欧美精品日韩一区| 国产欧美精品日韩区二区麻豆天美| 国产精品传媒在线| 日本少妇一区二区| 成人激情免费电影网址| 制服.丝袜.亚洲.另类.中文| 欧美国产精品久久| 日韩影院在线观看| 大陆成人av片| 日韩一级二级三级| 亚洲欧美在线视频观看| 精品一区二区三区影院在线午夜| av在线不卡电影| 亚洲精品一区二区三区香蕉| 亚洲精品综合在线| 国产一区三区三区| 欧美美女一区二区| 中文字幕亚洲视频| 韩国精品在线观看| 欧美日韩一区中文字幕| 国产精品卡一卡二| 精品一区二区在线观看| 欧美性一区二区| 亚洲欧美在线视频观看| 国产精品99久久久久久久女警 | 亚洲一本大道在线| 懂色中文一区二区在线播放| 91精品国产综合久久久蜜臀图片| 亚洲天堂成人在线观看| 国内精品国产成人国产三级粉色 | 中文字幕国产一区| 老司机午夜精品| 欧美美女喷水视频| 一区二区在线观看免费| 国产成人免费9x9x人网站视频| 日韩一区二区三区av| 香蕉av福利精品导航| 色综合咪咪久久| 日韩一区在线看| 成人激情免费视频| 国产欧美日产一区| 国产乱码精品一品二品| 精品国产百合女同互慰| 免费在线观看一区| 日韩一本二本av| 美女视频黄 久久| 日韩一二三四区| 久久国产人妖系列| 欧美va亚洲va香蕉在线| 美女在线视频一区| 精品国产91九色蝌蚪| 蜜桃精品视频在线观看| 欧美成人精品福利| 久久超碰97人人做人人爱| 日韩欧美国产三级电影视频| 久久av资源站| 精品国产亚洲在线| 狠狠v欧美v日韩v亚洲ⅴ| 久久九九99视频| 国产成人丝袜美腿| 136国产福利精品导航| 9色porny自拍视频一区二区| 国产精品久久久久久久裸模| 不卡的av在线播放| 亚洲色图在线视频| 在线观看av不卡| 日韩电影免费在线看| 日韩一区国产二区欧美三区| 蜜桃免费网站一区二区三区| 精品播放一区二区| 成人精品一区二区三区四区 | 99re成人精品视频| 一区二区三区四区亚洲| 欧美日韩精品一区视频| 久久国产精品72免费观看| 国产欧美精品国产国产专区| 成人黄色小视频在线观看| 亚洲精品日韩综合观看成人91| 欧美日韩国产一级二级| 蜜臀久久99精品久久久画质超高清| 亚洲精品在线电影| jiyouzz国产精品久久| 亚洲一区二区三区中文字幕 | 久久 天天综合| 欧美国产视频在线| 在线免费视频一区二区| 免费视频一区二区| 国产精品视频免费看| 色狠狠av一区二区三区| 琪琪久久久久日韩精品| 国产精品午夜在线| 欧美日韩国产精选| 国产一区二区三区四| 亚洲欧洲制服丝袜| 日韩限制级电影在线观看| 成人一级片网址| 偷拍一区二区三区四区| 久久精品一区二区| 欧美视频在线观看一区| 国产成人在线观看| 日韩国产高清影视| 中文字幕一区二区视频| 91精品国产全国免费观看| 不卡av免费在线观看| 天涯成人国产亚洲精品一区av| 精品国产欧美一区二区| 色综合视频在线观看| 黄色小说综合网站| 亚洲成人自拍网| 欧美国产在线观看| 日韩欧美在线综合网| 99re热这里只有精品视频| 精品一区二区久久久| 亚洲永久精品国产| 中文字幕第一区综合| 欧美va亚洲va在线观看蝴蝶网| 一本色道**综合亚洲精品蜜桃冫| 国产伦精品一区二区三区免费| 日本中文字幕不卡| 亚洲国产精品一区二区久久|