public class BERoundBorder
extends javax.swing.border.LineBorder
implements javax.swing.plaf.UIResource
限定符和类型 | 字段和说明 |
---|---|
protected int |
arcWidth
圆角的半径.
|
static java.awt.Color |
defaultLineColor
默认绘制的色调.
|
构造器和说明 |
---|
BERoundBorder()
Instantiates a new bE round border.
|
BERoundBorder(java.awt.Color color)
Instantiates a new bE round border.
|
BERoundBorder(java.awt.Color color,
int thickness)
Instantiates a new bE round border.
|
BERoundBorder(int thickness)
Instantiates a new bE round border.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
int |
getArcWidth()
Gets the arc width.
|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets) |
java.awt.Color |
getLineColor() |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
BERoundBorder |
setArcWidth(int arcWidth)
Sets the arc width.
|
BERoundBorder |
setLineColor(java.awt.Color c)
Sets the line color.
|
BERoundBorder |
setThickness(int t)
Sets the thickness.
|
createBlackLineBorder, createGrayLineBorder, getRoundedCorners, getThickness, isBorderOpaque
public static final java.awt.Color defaultLineColor
protected int arcWidth
public BERoundBorder()
public BERoundBorder(java.awt.Color color)
color
- the colorpublic BERoundBorder(int thickness)
thickness
- the thicknesspublic BERoundBorder(java.awt.Color color, int thickness)
color
- the colorthickness
- the thicknesspublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
在接口中 javax.swing.border.Border
getBorderInsets
在类中 javax.swing.border.AbstractBorder
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
getBorderInsets
在类中 javax.swing.border.LineBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
在接口中 javax.swing.border.Border
paintBorder
在类中 javax.swing.border.LineBorder
public BERoundBorder setLineColor(java.awt.Color c)
c
- the cpublic java.awt.Color getLineColor()
getLineColor
在类中 javax.swing.border.LineBorder
public BERoundBorder setThickness(int t)
t
- the tpublic java.lang.Object clone()
clone
在类中 java.lang.Object
public int getArcWidth()
public BERoundBorder setArcWidth(int arcWidth)
arcWidth
- the arc width