public class BEDashedRoundRecBorder
extends javax.swing.border.LineBorder
implements javax.swing.plaf.UIResource
TODO 目前圆角大小和虚线间隔等目前都是固定的,进一步重构后可以进行重用哦.
构造器和说明 |
---|
BEDashedRoundRecBorder(java.awt.Color color)
构造方法.
|
限定符和类型 | 方法和说明 |
---|---|
int |
getArcHeight()
Gets the arc height.
|
int |
getArcWidth()
Gets the arc width.
|
int |
getSeparatorSolid()
Gets the separator solid.
|
int |
getSeparatorSpace()
Gets the separator space.
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
BEDashedRoundRecBorder |
setArcHeight(int arcHeight)
Sets the arc height.
|
BEDashedRoundRecBorder |
setArcWidth(int arcWidth)
Sets the arc width.
|
BEDashedRoundRecBorder |
setSeparatorSolid(int separatorSolid)
Sets the separator solid.
|
BEDashedRoundRecBorder |
setSeparatorSpace(int separatorSpace)
Sets the separator space.
|
createBlackLineBorder, createGrayLineBorder, getBorderInsets, getLineColor, getRoundedCorners, getThickness, isBorderOpaque
public BEDashedRoundRecBorder(java.awt.Color color)
color
- 虚线颜色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 int getArcWidth()
public BEDashedRoundRecBorder setArcWidth(int arcWidth)
arcWidth
- the arc widthpublic int getArcHeight()
public BEDashedRoundRecBorder setArcHeight(int arcHeight)
arcHeight
- the arc heightpublic int getSeparatorSolid()
public BEDashedRoundRecBorder setSeparatorSolid(int separatorSolid)
separatorSolid
- the separator solidpublic int getSeparatorSpace()
public BEDashedRoundRecBorder setSeparatorSpace(int separatorSpace)
separatorSpace
- the separator space