public class PartialLineBorder extends LineBorder implements PartialSide
lineColor, roundedCorners, thickness
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST
Constructor and 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 and 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) |
createBlackLineBorder, createGrayLineBorder, getLineColor, getRoundedCorners, getThickness, isBorderOpaque
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
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