java.lang.Objectjavax.swing.plaf.basic.BasicBorders.SplitPaneBorder
public static class BasicBorders.SplitPaneBorder
绘制围绕拆分窗格的边框。要使工作正常进行,还应该在分隔符(属性 SplitPaneDivider.border)上安装边框。
| 字段摘要 | |
|---|---|
protected Color |
highlight |
protected Color |
shadow |
| 构造方法摘要 | |
|---|---|
BasicBorders.SplitPaneBorder(Color highlight, Color shadow) |
|
| 方法摘要 | |
|---|---|
Insets |
getBorderInsets(Component c) 返回该边框的 insets。 |
boolean |
isBorderOpaque() 返回此边框是否透明。 |
void |
paintBorder(Component c, Graphics g, int x, int y, int width, int height) 按指定的位置和尺寸绘制指定组件的边框。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected Color highlight
protected Color shadow
| 构造方法详细信息 |
|---|
public BasicBorders.SplitPaneBorder(Color highlight, Color shadow)
| 方法详细信息 |
|---|
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Border 复制的描述
Border 中的
paintBorder
c - 要为其绘制边框的组件
g - 绘制的图形
x - 所绘制边框的 x 坐标位置
y - 所绘制边框的 y 坐标位置
width - 所绘制边框的宽度
height - 所绘制边框的高度
public Insets getBorderInsets(Component c)
Border 复制的描述
Border 中的
getBorderInsets
c - 要应用此边框 insets 值的组件
public boolean isBorderOpaque()
Border 复制的描述
Border 中的
isBorderOpaque