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