本文整理汇总了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
}
示例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);
}