public static class MetalBorders.ToolBarBorder extends AbstractBorder implements UIResource, SwingConstants
Modifier and Type | Field and Description |
---|---|
protected javax.swing.plaf.metal.MetalBumps |
bumps |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
ToolBarBorder() |
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
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
对象
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.