PartialSide
, Serializable
, Border
public class PartialLineBorder extends LineBorder implements PartialSide
lineColor, roundedCorners, thickness
ALL, 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, getInteriorRectangle
createBlackLineBorder, createGrayLineBorder, getLineColor, getRoundedCorners, getThickness, isBorderOpaque
public 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 Border
paintBorder
in class LineBorder
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
public Insets getBorderInsets(Component c, Insets insets)
getBorderInsets
in class LineBorder