当前位置: 首页>>代码示例>>Java>>正文


Java BorderFactory.createRoundedBorder方法代码示例

本文整理汇总了Java中org.netbeans.api.visual.border.BorderFactory.createRoundedBorder方法的典型用法代码示例。如果您正苦于以下问题:Java BorderFactory.createRoundedBorder方法的具体用法?Java BorderFactory.createRoundedBorder怎么用?Java BorderFactory.createRoundedBorder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.api.visual.border.BorderFactory的用法示例。


在下文中一共展示了BorderFactory.createRoundedBorder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: POriginalColorScheme

import org.netbeans.api.visual.border.BorderFactory; //导入方法依赖的package包/类
private POriginalColorScheme() {
    COLOR_NORMAL = new Color(0xBACDF0);
    COLOR_HOVERED = Color.BLACK;
    COLOR_SELECTED = new Color(0x748CC0);
    COLOR_HIGHLIGHTED = new Color(0x316AC5);

    COLOR1 = new Color(221, 235, 246);
    COLOR2 = new Color(255, 255, 255);
    COLOR3 = new Color(214, 235, 255);
    COLOR4 = new Color(241, 249, 253);
    COLOR5 = new Color(255, 255, 255);

    BORDER_NODE = PFactory.createPNodeBorder(COLOR_NORMAL, 1, COLOR1, COLOR2, COLOR3, COLOR4, COLOR5);

    BORDER_CATEGORY_BACKGROUND = new Color(0xCDDDF8);
    BORDER_MINIMIZE = BorderFactory.createRoundedBorder(2, 2, null, COLOR_NORMAL);
    BORDER_PIN = BorderFactory.createOpaqueBorder(2, 8, 2, 8);
    BORDER_PIN_HOVERED = BorderFactory.createLineBorder(2, 8, 2, 8, Color.BLACK);

    POINT_SHAPE_IMAGE = PointShapeFactory.createImagePointShape(ImageUtilities.loadImage("org/netbeans/modules/visual/resources/vmd-pin.png")); // NOI18N

}
 
开发者ID:jeddict,项目名称:NBModeler,代码行数:23,代码来源:POriginalColorScheme.java

示例2: getBorder

import org.netbeans.api.visual.border.BorderFactory; //导入方法依赖的package包/类
private static Border getBorder(Color c) {
    Color fillColor = getFillColor(c);
    Color borderColor = getBorderColor(c);

    return BorderFactory.createRoundedBorder(5, 5, fillColor, borderColor);
}
 
开发者ID:kefik,项目名称:Pogamut3,代码行数:7,代码来源:EntityAxisStrip.java


注:本文中的org.netbeans.api.visual.border.BorderFactory.createRoundedBorder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。