Java 类javax.swing.plaf.basic.BasicBorders.MarginBorder 实例源码

项目:confluence.keygen    文件:PlasticXPBorders.java   
static Border getTextFieldBorder()
/*  61:    */   {
/*  62:122 */     if (textFieldBorder == null) {
/*  63:123 */       textFieldBorder = new BorderUIResource.CompoundBorderUIResource(new XPTextFieldBorder(null), new BasicBorders.MarginBorder());
/*  64:    */     }
/*  65:127 */     return textFieldBorder;
/*  66:    */   }
项目:confluence.keygen    文件:PlasticBorders.java   
static Border getEtchedBorder()
/*  65:    */   {
/*  66:130 */     if (etchedBorder == null) {
/*  67:131 */       etchedBorder = new BorderUIResource.CompoundBorderUIResource(new EtchedBorder(null), new BasicBorders.MarginBorder());
/*  68:    */     }
/*  69:135 */     return etchedBorder;
/*  70:    */   }
项目:confluence.keygen    文件:PlasticBorders.java   
static Border getMenuBarHeaderBorder()
/*  86:    */   {
/*  87:166 */     if (menuBarHeaderBorder == null) {
/*  88:167 */       menuBarHeaderBorder = new BorderUIResource.CompoundBorderUIResource(new MenuBarHeaderBorder(null), new BasicBorders.MarginBorder());
/*  89:    */     }
/*  90:171 */     return menuBarHeaderBorder;
/*  91:    */   }
项目:confluence.keygen    文件:PlasticBorders.java   
static Border getMenuBorder()
/*  94:    */   {
/*  95:180 */     if (menuBorder == null) {
/*  96:181 */       menuBorder = new BorderUIResource.CompoundBorderUIResource(new MenuBorder(null), new BasicBorders.MarginBorder());
/*  97:    */     }
/*  98:185 */     return menuBorder;
/*  99:    */   }
项目:confluence.keygen    文件:PlasticBorders.java   
static Border getSeparatorBorder()
/* 147:    */   {
/* 148:268 */     if (separatorBorder == null) {
/* 149:269 */       separatorBorder = new BorderUIResource.CompoundBorderUIResource(new SeparatorBorder(null), new BasicBorders.MarginBorder());
/* 150:    */     }
/* 151:273 */     return separatorBorder;
/* 152:    */   }
项目:confluence.keygen    文件:PlasticBorders.java   
static Border getTextFieldBorder()
/* 155:    */   {
/* 156:282 */     if (textFieldBorder == null) {
/* 157:283 */       textFieldBorder = new BorderUIResource.CompoundBorderUIResource(new TextFieldBorder(null), new BasicBorders.MarginBorder());
/* 158:    */     }
/* 159:287 */     return textFieldBorder;
/* 160:    */   }
项目:confluence.keygen    文件:PlasticBorders.java   
static Border getToolBarHeaderBorder()
/* 184:    */   {
/* 185:332 */     if (toolBarHeaderBorder == null) {
/* 186:333 */       toolBarHeaderBorder = new BorderUIResource.CompoundBorderUIResource(new ToolBarHeaderBorder(null), new BasicBorders.MarginBorder());
/* 187:    */     }
/* 188:337 */     return toolBarHeaderBorder;
/* 189:    */   }
项目:beautyeye    文件:__UI__.java   
/**
     * Ui impl.
     */
    public static void uiImpl()
    {
        //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> JButton相关ui属性设定
        UIManager.put("Button.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
        //Button.foreground的设定不起效,这可能是LNF里的bug,因NLLookAndFeel
        //是继承自它们所以暂时无能为力,就这么的吧,以后再说
        UIManager.put("Button.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));

        //以下属性将决定按钮获得焦点时的焦点虚线框的绘制偏移量哦
        UIManager.put("Button.dashedRectGapX",3);//windows LNF中默认是3
        UIManager.put("Button.dashedRectGapY",3);//windows LNF中默认是3
        UIManager.put("Button.dashedRectGapWidth",6);//windows LNF中默认是6
        UIManager.put("Button.dashedRectGapHeight",6);//windows LNF中默认是6

        UIManager.put("ButtonUI",org.jb2011.lnf.beautyeye.ch3_button.BEButtonUI.class.getName());
        UIManager.put("Button.margin",new InsetsUIResource(6, 8, 6, 8));//new InsetsUIResource(6, 8, 6, 8));
        //此border可以与Button.margin连合使用,而者之和即查整个Button的内衬哦
        UIManager.put("Button.border" ,new org.jb2011.lnf.beautyeye.ch3_button.BEButtonUI
                    .XPEmptyBorder(new Insets(3,3,3,3)));//default is 3,3,3,3
        //获得焦点时的虚线框颜色
        UIManager.put("Button.focus",new ColorUIResource(130,130,130));

        //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> JToggleButton相关ui属性设定
        //注意:本属性不要与ToggleButton.border混用,因为没有它的优先级高,
        //另本参数如用InsetsUIResource则不会有效果,具体原因待查(本属性也将决定toolbar的整体高度和宽度哦)
        UIManager.put("ToggleButton.margin",new Insets(3, 11, 3, 11));//4, 8, 4, 8));////4, 12, 4, 12));
        UIManager.put("ToggleButton.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
        UIManager.put("ToggleButton.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
        //用于ToggleButon被选中时的前景色
        //注:在原WindowsLookAndFeel中,本属性存在(值是Color(0,0,0,))但在UI里没有用到
        //,此处被jb2011定义为“选中时的前景色”,当然也可以自已定名称,参见 NLWindowsToggleButtonUI2.paintText(..)
        UIManager.put("ToggleButton.focus",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));//new ColorUIResource(Color.white)));//
        UIManager.put("ToggleButtonUI",org.jb2011.lnf.beautyeye.ch3_button.BEToggleButtonUI.class.getName());
        //以下设置对ToggleButton在不加入到JToolBar时是有效果的哦!!!!!!!!!!!
        Border toggleButtonBorder = new BorderUIResource(new MarginBorder());
//      UIManager.put("ToggleButton.margin",new InsetsUIResource(2, 30, 2, 30));
        UIManager.put("ToggleButton.border",toggleButtonBorder);
        /* ~~注:这个属性是Jack Jiang为了更好的ui效果自已加的属性:焦点虚线的颜色 */
        UIManager.put("ToggleButton.focusLine"
                ,new ColorUIResource(BeautyEyeLNFHelper.commonFocusedBorderColor.darker()));
        /* ~~注:这个属性是Jack Jiang为了更好的ui效果自已加的属性:焦点虚线的高亮立体阴影颜色 */
        UIManager.put("ToggleButton.focusLineHilight",new ColorUIResource(new Color(240,240,240)));
    }
项目:confluence.keygen    文件:PlasticXPBorders.java   
static Border getButtonBorder(Insets buttonMargin)
/*  32:    */   {
/*  33: 79 */     return new BorderUIResource.CompoundBorderUIResource(new XPButtonBorder(buttonMargin), new BasicBorders.MarginBorder());
/*  34:    */   }
项目:confluence.keygen    文件:PlasticXPBorders.java   
static Border getToggleButtonBorder(Insets buttonMargin)
/*  69:    */   {
/*  70:134 */     return new BorderUIResource.CompoundBorderUIResource(new XPButtonBorder(buttonMargin), new BasicBorders.MarginBorder());
/*  71:    */   }
项目:confluence.keygen    文件:PlasticBorders.java   
static Border getButtonBorder(Insets buttonMargin)
/*  44:    */   {
/*  45: 90 */     return new BorderUIResource.CompoundBorderUIResource(new ButtonBorder(buttonMargin), new BasicBorders.MarginBorder());
/*  46:    */   }
项目:confluence.keygen    文件:PlasticBorders.java   
static Border getToggleButtonBorder(Insets buttonMargin)
/* 179:    */   {
/* 180:320 */     return new BorderUIResource.CompoundBorderUIResource(new ToggleButtonBorder(buttonMargin, null), new BasicBorders.MarginBorder());
/* 181:    */   }
项目:concurrent    文件:__UI__.java   
/**
     * Ui impl.
     */
    public static void uiImpl()
    {
        //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> JButton相关ui属性设定
        UIManager.put("Button.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
        //Button.foreground的设定不起效,这可能是LNF里的bug,因NLLookAndFeel
        //是继承自它们所以暂时无能为力,就这么的吧,以后再说
        UIManager.put("Button.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));

        //以下属性将决定按钮获得焦点时的焦点虚线框的绘制偏移量哦
        UIManager.put("Button.dashedRectGapX",3);//windows LNF中默认是3
        UIManager.put("Button.dashedRectGapY",3);//windows LNF中默认是3
        UIManager.put("Button.dashedRectGapWidth",6);//windows LNF中默认是6
        UIManager.put("Button.dashedRectGapHeight",6);//windows LNF中默认是6

        UIManager.put("ButtonUI",org.jb2011.lnf.beautyeye.ch3_button.BEButtonUI.class.getName());
        UIManager.put("Button.margin",new InsetsUIResource(6, 8, 6, 8));//new InsetsUIResource(6, 8, 6, 8));
        //此border可以与Button.margin连合使用,而者之和即查整个Button的内衬哦
        UIManager.put("Button.border" ,new org.jb2011.lnf.beautyeye.ch3_button.BEButtonUI
                    .XPEmptyBorder(new Insets(3,3,3,3)));//default is 3,3,3,3
        //获得焦点时的虚线框颜色
        UIManager.put("Button.focus",new ColorUIResource(130,130,130));

        //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> JToggleButton相关ui属性设定
        //注意:本属性不要与ToggleButton.border混用,因为没有它的优先级高,
        //另本参数如用InsetsUIResource则不会有效果,具体原因待查(本属性也将决定toolbar的整体高度和宽度哦)
        UIManager.put("ToggleButton.margin",new Insets(3, 11, 3, 11));//4, 8, 4, 8));////4, 12, 4, 12));
        UIManager.put("ToggleButton.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
        UIManager.put("ToggleButton.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
        //用于ToggleButon被选中时的前景色
        //注:在原WindowsLookAndFeel中,本属性存在(值是Color(0,0,0,))但在UI里没有用到
        //,此处被jb2011定义为“选中时的前景色”,当然也可以自已定名称,参见 NLWindowsToggleButtonUI2.paintText(..)
        UIManager.put("ToggleButton.focus",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));//new ColorUIResource(Color.white)));//
        UIManager.put("ToggleButtonUI",org.jb2011.lnf.beautyeye.ch3_button.BEToggleButtonUI.class.getName());
        //以下设置对ToggleButton在不加入到JToolBar时是有效果的哦!!!!!!!!!!!
        Border toggleButtonBorder = new BorderUIResource(new MarginBorder());
//      UIManager.put("ToggleButton.margin",new InsetsUIResource(2, 30, 2, 30));
        UIManager.put("ToggleButton.border",toggleButtonBorder);
        /* ~~注:这个属性是Jack Jiang为了更好的ui效果自已加的属性:焦点虚线的颜色 */
        UIManager.put("ToggleButton.focusLine"
                ,new ColorUIResource(BeautyEyeLNFHelper.commonFocusedBorderColor.darker()));
        /* ~~注:这个属性是Jack Jiang为了更好的ui效果自已加的属性:焦点虚线的高亮立体阴影颜色 */
        UIManager.put("ToggleButton.focusLineHilight",new ColorUIResource(new Color(240,240,240)));
    }
项目:cn1    文件:MetalBorders.java   
private static Border createCompoundBorder(final Border b) {
    return new BorderUIResource.CompoundBorderUIResource(b, new MarginBorder());
}
项目:freeVM    文件:MetalBorders.java   
private static Border createCompoundBorder(final Border b) {
    return new BorderUIResource.CompoundBorderUIResource(b, new MarginBorder());
}
项目:freeVM    文件:MetalBorders.java   
private static Border createCompoundBorder(final Border b) {
    return new BorderUIResource.CompoundBorderUIResource(b, new MarginBorder());
}