public static class BasicBorders.ButtonBorder extends AbstractBorder implements UIResource
Modifier and Type | Field and Description |
---|---|
protected Color |
darkShadow |
protected Color |
highlight |
protected Color |
lightHighlight |
protected Color |
shadow |
Constructor and Description |
---|
ButtonBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight) |
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。
|
void |
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
此默认实现不绘画。
|
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
protected Color shadow
protected Color darkShadow
protected Color highlight
protected Color lightHighlight
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
AbstractBorder
paintBorder
中的
Border
paintBorder
在
AbstractBorder
c
- 正在绘制边框的组件
g
- 油漆图形
x
- 绘画边框的x位置
y
- 绘制边框的y位置
width
- 绘画边框的宽度
height
- 绘画边框的高度
public Insets getBorderInsets(Component c, Insets insets)
AbstractBorder
getBorderInsets
在
AbstractBorder
c
- 应用此边界插入值的组件
insets
- 要重新初始化的对象
insets
对象