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)
重新初始化插入参数与本边境目前的插图。
|
void |
paintBorder(Component c, Graphics g, int x, int y, int w, int h)
此默认实现不画。
|
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaquepublic void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
AbstractBorder
paintBorder 接口
Border
paintBorder 方法重写,继承类
AbstractBorder
c的组件,这个边界是被涂
g -绘制的图形
x -画边框的位置
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.