PartialSide, Serializable, Borderpublic class PartialLineBorder extends LineBorder implements PartialSide
lineColor, roundedCorners, thicknessALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST| Constructor | Description |
|---|---|
PartialLineBorder(Color color) |
|
PartialLineBorder(Color color,
int thickness) |
|
PartialLineBorder(Color color,
int thickness,
boolean roundedCorners) |
|
PartialLineBorder(Color color,
int thickness,
boolean roundedCorners,
int roundedCornerSize) |
|
PartialLineBorder(Color color,
int thickness,
int side) |
| Modifier and Type | Method | Description |
|---|---|---|
Insets |
getBorderInsets(Component c) |
|
Insets |
getBorderInsets(Component c,
Insets insets) |
|
int |
getRoundedCornerSize() |
|
int |
getSides() |
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
|
void |
setRoundedCornerSize(int roundedCornerSize) |
|
void |
setSides(int sides) |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectanglecreateBlackLineBorder, createGrayLineBorder, getLineColor, getRoundedCorners, getThickness, isBorderOpaquepublic PartialLineBorder(Color color)
public PartialLineBorder(Color color, int thickness)
public PartialLineBorder(Color color, int thickness, boolean roundedCorners)
public PartialLineBorder(Color color, int thickness, boolean roundedCorners, int roundedCornerSize)
public PartialLineBorder(Color color, int thickness, int side)
public int getSides()
public void setSides(int sides)
public int getRoundedCornerSize()
public void setRoundedCornerSize(int roundedCornerSize)
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface BorderpaintBorder in class LineBorderpublic Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderpublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class LineBorder