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

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

?? basicborders.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
					       false, b.isFocusPainted() && b.hasFocus(),                                                 shadow, darkShadow,                                                  highlight, lightHighlight);	        }	    } else {		        BasicGraphicsUtils.drawBezel(g, x, y, width, height, false, false,                                             shadow, darkShadow, highlight, lightHighlight);	    }        }              public Insets getBorderInsets(Component c)       {	    return getBorderInsets(c, new Insets(0,0,0,0));        }        public Insets getBorderInsets(Component c, Insets insets)       {            insets.top = insets.left = insets.bottom = insets.right = 2;	    return insets;        }    }    public static class MenuBarBorder extends AbstractBorder implements UIResource {        private Color shadow;        private Color highlight;        public MenuBarBorder(Color shadow, Color highlight) {            this.shadow = shadow;            this.highlight = highlight;        }	public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {	    Color oldColor = g.getColor();	    g.translate(x, y);	    g.setColor(shadow);	    g.drawLine(0, height-2, width, height-2);	    g.setColor(highlight);	    	    g.drawLine(0, height-1, width, height-1);	    g.translate(-x,-y);	    g.setColor(oldColor);	}		public Insets getBorderInsets(Component c)       {	    return getBorderInsets(c, new Insets(0,0,0,0));	}        public Insets getBorderInsets(Component c, Insets insets)       {            insets.top = 0;	    insets.left = 0;	    insets.bottom = 2;	    insets.right = 0;	    return insets;        }    }    public static class MarginBorder extends AbstractBorder implements UIResource {        public Insets getBorderInsets(Component c)       {	    return getBorderInsets(c, new Insets(0,0,0,0));        }        public Insets getBorderInsets(Component c, Insets insets)       {            Insets margin = null;            //            // Ideally we'd have an interface defined for classes which            // support margins (to avoid this hackery), but we've            // decided against it for simplicity            //           if (c instanceof AbstractButton) {               AbstractButton b = (AbstractButton)c;               margin = b.getMargin();           } else if (c instanceof JToolBar) {               JToolBar t = (JToolBar)c;               margin = t.getMargin();           } else if (c instanceof JTextComponent) {               JTextComponent t = (JTextComponent)c;               margin = t.getMargin();           }	   insets.top = margin != null? margin.top : 0;	   insets.left = margin != null? margin.left : 0;	   insets.bottom = margin != null? margin.bottom : 0;	   insets.right = margin != null? margin.right : 0;	       	   return insets;        }    }    public static class FieldBorder extends AbstractBorder implements UIResource {        protected Color shadow;        protected Color darkShadow;        protected Color highlight;        protected Color lightHighlight;        public FieldBorder(Color shadow, Color darkShadow,                            Color highlight, Color lightHighlight) {            this.shadow = shadow;            this.highlight = highlight;            this.darkShadow = darkShadow;            this.lightHighlight = lightHighlight;        }        public void paintBorder(Component c, Graphics g, int x, int y,                             int width, int height) {            BasicGraphicsUtils.drawEtchedRect(g, x, y, width, height,                                              shadow, darkShadow,                                               highlight, lightHighlight);        }        public Insets getBorderInsets(Component c) {	    return getBorderInsets(c, new Insets(0,0,0,0));	}	public Insets getBorderInsets(Component c, Insets insets) {            Insets margin = null;            if (c instanceof JTextComponent) {                margin = ((JTextComponent)c).getMargin();            }	    insets.top = margin != null? 2+margin.top : 2;	    insets.left = margin != null? 2+margin.left : 2;	    insets.bottom = margin != null? 2+margin.bottom : 2;	    insets.right = margin != null? 2+margin.right : 2;	       	    return insets;        }    }    /**     * Draws the border around the divider in a splitpane     * (when BasicSplitPaneUI is used). To get the appropriate effect, this     * needs to be used with a SplitPaneBorder.     */    static class SplitPaneDividerBorder implements Border, UIResource {        Color highlight;        Color shadow;        SplitPaneDividerBorder(Color highlight, Color shadow) {	    this.highlight = highlight;	    this.shadow = shadow;	}	public void paintBorder(Component c, Graphics g, int x, int y,				int width, int height) {	    Component          child;	    Rectangle          cBounds;	    JSplitPane         splitPane = ((BasicSplitPaneDivider)c).		                         getBasicSplitPaneUI().getSplitPane();	    Dimension          size = c.getSize();	    	    child = splitPane.getLeftComponent();	    // This is needed for the space between the divider and end of	    // splitpane.	    g.setColor(c.getBackground());	    g.drawRect(x, y, width - 1, height - 1);	    if(splitPane.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {		if(child != null) {		    g.setColor(highlight);		    g.drawLine(0, 0, 0, size.height);		}		child = splitPane.getRightComponent();		if(child != null) {		    g.setColor(shadow);		    g.drawLine(size.width - 1, 0, size.width - 1, size.height);		}	    } else {		if(child != null) {		    g.setColor(highlight);		    g.drawLine(0, 0, size.width, 0);		}		child = splitPane.getRightComponent();		if(child != null) {		    g.setColor(shadow);		    g.drawLine(0, size.height - 1, size.width,			       size.height - 1);		}	    }	}	public Insets getBorderInsets(Component c) {	    Insets insets = new Insets(0,0,0,0);	    if (c instanceof BasicSplitPaneDivider) {		BasicSplitPaneUI bspui = ((BasicSplitPaneDivider)c).		                         getBasicSplitPaneUI();		if (bspui != null) {		    JSplitPane splitPane = bspui.getSplitPane();		    if (splitPane != null) {			if (splitPane.getOrientation() ==			    JSplitPane.HORIZONTAL_SPLIT) {			    insets.top = insets.bottom = 0;			    insets.left = insets.right = 1;			    return insets;			}			// VERTICAL_SPLIT			insets.top = insets.bottom = 1;			insets.left = insets.right = 0;			return insets;		    }		}	    }	    insets.top = insets.bottom = insets.left = insets.right = 1;	    return insets;	}	public boolean isBorderOpaque() { return true; }    }    /**     * Draws the border around the splitpane. To work correctly you shoudl     * also install a border on the divider (property SplitPaneDivider.border).     */    public static class SplitPaneBorder implements Border, UIResource {        protected Color highlight;        protected Color shadow;        public SplitPaneBorder(Color highlight, Color shadow) {	    this.highlight = highlight;	    this.shadow = shadow;	}	public void paintBorder(Component c, Graphics g, int x, int y,				int width, int height) {	    // The only tricky part with this border is that the divider is	    // not positioned at the top (for horizontal) or left (for vert),	    // so this border draws to where the divider is:	    // -----------------	    // |xxxxxxx xxxxxxx|	    // |x     ---     x|	    // |x     |	|     x|	    // |x     |D|     x|	    // |x     | |     x|	    // |x     ---     x|	    // |xxxxxxx xxxxxxx|	    // -----------------	    // The above shows (rather excessively) what this looks like for	    // a horizontal orientation. This border then draws the x's, with	    // the SplitPaneDividerBorder drawing its own border.	    Component          child;	    Rectangle          cBounds;	    JSplitPane splitPane = (JSplitPane)c;	    	    child = splitPane.getLeftComponent();	    // This is needed for the space between the divider and end of	    // splitpane.	    g.setColor(c.getBackground());	    g.drawRect(x, y, width - 1, height - 1);	    if(splitPane.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {		if(child != null) {		    cBounds = child.getBounds();		    g.setColor(shadow);		    g.drawLine(0, 0, cBounds.width + 1, 0);		    g.drawLine(0, 1, 0, cBounds.height + 2);		    g.setColor(highlight);		    g.drawLine(1, cBounds.height + 1, cBounds.width + 1,			       cBounds.height + 1);		}		child = splitPane.getRightComponent();		if(child != null) {		    cBounds = child.getBounds();		    int             maxX = cBounds.x + cBounds.width;		    int             maxY = cBounds.y + cBounds.height;		    		    g.setColor(shadow);		    g.drawLine(cBounds.x - 1, 0, maxX, 0);		    g.drawLine(cBounds.x - 1, maxY, cBounds.x, maxY);		    g.setColor(highlight);		    g.drawLine(cBounds.x, maxY, maxX, maxY);		    g.drawLine(maxX, 0, maxX, maxY + 1);		}	    } else {		if(child != null) {		    cBounds = child.getBounds();		    g.setColor(shadow);		    g.drawLine(0, 0, cBounds.width + 1, 0);		    g.drawLine(0, 1, 0, cBounds.height);		    g.setColor(highlight);		    g.drawLine(1 + cBounds.width, 0, 1 + cBounds.width,			       cBounds.height + 1);		    g.drawLine(0, cBounds.height + 1, 0, cBounds.height + 1);		}		child = splitPane.getRightComponent();		if(child != null) {		    cBounds = child.getBounds();		    int             maxX = cBounds.x + cBounds.width;		    int             maxY = cBounds.y + cBounds.height;		    		    g.setColor(shadow);		    g.drawLine(0, cBounds.y - 1, 0, maxY);		    g.drawLine(maxX, cBounds.y - 1, maxX, cBounds.y - 1);		    g.setColor(highlight);		    g.drawLine(0, maxY, cBounds.width + 1, maxY);		    g.drawLine(maxX, cBounds.y, maxX, maxY);		}	    }	}	public Insets getBorderInsets(Component c) {	    return new Insets(1, 1, 1, 1);	}	public boolean isBorderOpaque() { return true; }    }    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品日产欧美久久久久| 亚洲精品久久久久久国产精华液| 日韩电影在线观看网站| 4438x亚洲最大成人网| 老司机精品视频线观看86 | 91女厕偷拍女厕偷拍高清| 亚洲婷婷国产精品电影人久久| 色8久久精品久久久久久蜜 | 欧美日韩一区在线观看| 久久er99精品| 亚洲激情在线播放| 日韩免费视频线观看| 成人视屏免费看| 三级亚洲高清视频| 国产欧美日韩三级| 91精品国产全国免费观看| 国产高清在线精品| 日韩成人免费电影| 亚洲裸体在线观看| 久久精品欧美一区二区三区不卡 | 久久爱www久久做| 亚洲视频小说图片| 精品国产乱码久久久久久影片| 91视频观看视频| 国产乱码字幕精品高清av| 亚洲一二三区不卡| 国产精品美女久久久久久2018| 日韩一区二区精品葵司在线 | 亚洲成人免费在线观看| 国产精品污www在线观看| 日韩亚洲欧美在线| 欧美性大战久久久久久久蜜臀| 成人一道本在线| 国产一区中文字幕| 精品综合久久久久久8888| 亚洲一区二区欧美| 亚洲精品你懂的| 国产精品剧情在线亚洲| 国产三级一区二区三区| 日韩欧美在线观看一区二区三区| 欧美丝袜丝nylons| 91久久免费观看| 一道本成人在线| 91免费观看视频在线| 成人性生交大片免费 | 国产精品日韩成人| 国产精品网站导航| 国产日韩av一区二区| 久久久www成人免费毛片麻豆 | 久久天堂av综合合色蜜桃网| 精品国产凹凸成av人导航| 69成人精品免费视频| 555www色欧美视频| 欧美一区二区三区免费视频| 欧美日韩国产免费| 777奇米成人网| 91精品国产日韩91久久久久久| 在线综合亚洲欧美在线视频| 69堂亚洲精品首页| 欧美大度的电影原声| 精品国偷自产国产一区| 久久蜜臀精品av| 国产精品每日更新在线播放网址| 日韩毛片精品高清免费| 亚洲国产精品天堂| 日本伊人色综合网| 国产一区二区三区电影在线观看| 国产精品一二三四五| 99riav久久精品riav| 欧美系列日韩一区| 精品人在线二区三区| 久久久精品tv| 亚洲免费伊人电影| 日韩福利电影在线| 国产老妇另类xxxxx| jiyouzz国产精品久久| 在线视频你懂得一区二区三区| 欧美日韩免费高清一区色橹橹| 精品久久久久一区| 亚洲欧洲日韩av| 性做久久久久久免费观看欧美| 免费人成精品欧美精品| 菠萝蜜视频在线观看一区| 欧美视频一区二区三区在线观看 | 国产一区二区不卡在线 | 欧美性欧美巨大黑白大战| 精品日韩av一区二区| 中文字幕日本不卡| 日本在线不卡视频| 99re视频精品| 久久久久久久久久久99999| 樱桃国产成人精品视频| 国产资源精品在线观看| 在线精品视频一区二区三四| 国产日韩欧美精品电影三级在线| 午夜视频一区在线观看| 成人高清免费在线播放| 9191久久久久久久久久久| 亚洲视频狠狠干| 国产乱码精品一品二品| 欧美一级搡bbbb搡bbbb| 樱花草国产18久久久久| 国产麻豆日韩欧美久久| 6080国产精品一区二区| 亚洲午夜免费视频| 91小视频免费看| 国产拍欧美日韩视频二区| 蜜臀av性久久久久蜜臀aⅴ流畅 | caoporn国产一区二区| 91麻豆精品国产91久久久更新时间| 国产精品网曝门| 国模一区二区三区白浆| 欧美一级国产精品| 偷窥少妇高潮呻吟av久久免费| 日本高清视频一区二区| 中文字幕日本乱码精品影院| 国产成人免费高清| 欧美精品一区二区三| 蜜臀a∨国产成人精品| 91.com在线观看| 免费成人在线播放| 欧美一级理论片| 日本成人在线看| 欧美一级夜夜爽| 久久www免费人成看片高清| 日韩欧美国产成人一区二区| 日韩激情在线观看| 在线不卡的av| 蜜桃91丨九色丨蝌蚪91桃色| 4438x亚洲最大成人网| 日韩国产精品久久久| 欧美精品在线一区二区| 免费在线一区观看| 亚洲精品一区二区三区香蕉| 久久99精品一区二区三区三区| 精品国产免费一区二区三区香蕉| 捆绑调教一区二区三区| 精品久久久久99| 国产91精品一区二区麻豆亚洲| 国产三级精品三级在线专区| 成人白浆超碰人人人人| 亚洲乱码日产精品bd| 欧美美女激情18p| 久久精品国产亚洲aⅴ| 久久久91精品国产一区二区精品| 国产91精品露脸国语对白| 综合久久久久久| 欧美日韩美少妇| 极品少妇xxxx精品少妇偷拍| 久久精品欧美一区二区三区麻豆| 99久久99久久精品免费观看| 国产精品激情偷乱一区二区∴| 91年精品国产| 天天色 色综合| 欧美精品一区二区久久久| 成人一区二区三区视频在线观看 | 欧美日韩国产首页在线观看| 蜜臂av日日欢夜夜爽一区| 国产精品女人毛片| 欧美日韩一区中文字幕| 国产风韵犹存在线视精品| 亚洲精品欧美综合四区| 久久久久国色av免费看影院| 在线免费观看日本一区| 老司机精品视频线观看86 | 日韩精品一级二级 | 色系网站成人免费| 久久精品国产久精国产爱| 国产日韩欧美a| 欧美日韩情趣电影| 成人av电影在线网| 蜜臀久久99精品久久久久宅男| 国产精品色噜噜| 精品国产99国产精品| 精品视频全国免费看| 成人激情免费电影网址| 日本vs亚洲vs韩国一区三区二区 | 成人国产一区二区三区精品| 日本 国产 欧美色综合| 一区二区三区 在线观看视频| 久久久久久久国产精品影院| 欧美日韩aaa| 色婷婷综合久久久久中文一区二区| 美腿丝袜亚洲一区| 亚洲成人激情综合网| 亚洲卡通动漫在线| 国产精品福利一区二区| 久久蜜桃一区二区| 久久午夜免费电影| 日韩午夜激情视频| 在线不卡免费av| 欧美日韩高清一区二区不卡| 色综合久久中文综合久久97| 成人免费va视频| 国产高清不卡二三区| 久草在线在线精品观看| 美国十次了思思久久精品导航| 三级影片在线观看欧美日韩一区二区 | 精品国产乱码久久久久久浪潮| 欧美三级视频在线|