javax.swing.plaf
public static class BorderUIResource.LineBorderUIResource extends LineBorder implements UIResource, Serializable
LineBorder
that also implements the
UIResource
marker interface. This is useful for
implementing pluggable look-and-feels: When switching the current
LookAndFeel, only those borders are replaced that are marked as
UIResource
. For this reason, a look-and-feel should
always install borders that implement UIResource
,
such as the borders provided by this class.
lineColor, roundedCorners, thickness
Constructor and Description |
---|
BorderUIResource.LineBorderUIResource(Color color)
Constructs a LineBorderUIResource given its color.
|
BorderUIResource.LineBorderUIResource(Color color,
int thickness)
Constructs a LineBorder given its color and thickness.
|
createBlackLineBorder, createGrayLineBorder, getBorderInsets, getBorderInsets, getLineColor, getRoundedCorners, getThickness, isBorderOpaque, paintBorder
getInteriorRectangle, getInteriorRectangle
public BorderUIResource.LineBorderUIResource(Color color)
color
- the color for drawing the border.public BorderUIResource.LineBorderUIResource(Color color, int thickness)
color
- the color for drawing the border.thickness
- the width of the line in pixels.