public class BorderUIResource extends Object implements Border, UIResource, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BorderUIResource.BevelBorderUIResource |
static class |
BorderUIResource.CompoundBorderUIResource |
static class |
BorderUIResource.EmptyBorderUIResource |
static class |
BorderUIResource.EtchedBorderUIResource |
static class |
BorderUIResource.LineBorderUIResource |
static class |
BorderUIResource.MatteBorderUIResource |
static class |
BorderUIResource.TitledBorderUIResource |
Constructor and Description |
---|
BorderUIResource(Border delegate)
创建一个包含现有Border实例的UIResource边框对象。
|
Modifier and Type | Method and Description |
---|---|
static Border |
getBlackLineBorderUIResource() |
Insets |
getBorderInsets(Component c)
返回边框的插入。
|
static Border |
getEtchedBorderUIResource() |
static Border |
getLoweredBevelBorderUIResource() |
static Border |
getRaisedBevelBorderUIResource() |
boolean |
isBorderOpaque()
返回边框是否不透明。
|
void |
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
用指定的位置和大小绘制指定组件的边框。
|
public BorderUIResource(Border delegate)
delegate
- 正在包裹的边界
public static Border getEtchedBorderUIResource()
public static Border getLoweredBevelBorderUIResource()
public static Border getRaisedBevelBorderUIResource()
public static Border getBlackLineBorderUIResource()
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Border
复制
paintBorder
中的
Border
c
- 正在绘制此边框的组件
g
- 油漆图形
x
- 绘画边框的x位置
y
- 绘画边框的y位置
width
- 绘画边框的宽度
height
- 绘画边框的高度
public Insets getBorderInsets(Component c)
Border
复制
getBorderInsets
在接口
Border
c
- 应用此边界插入值的组件
public boolean isBorderOpaque()
Border
isBorderOpaque
中的
Border