public class PartialLineBorder extends LineBorder
Modifier and Type | Field and Description |
---|---|
private int |
_roundedCornerSize |
private int |
_sides |
(package private) static int |
ALL |
(package private) static int |
EAST |
(package private) static int |
HORIZONTAL |
(package private) static int |
NORTH |
(package private) static int |
SOUTH |
(package private) static int |
VERTICAL |
(package private) static int |
WEST |
lineColor, roundedCorners, thickness
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) |
private static void |
restoreShapeAntialiasing(Graphics g,
Object oldHints)
Restores the old setting for shape anti-alias.
|
void |
setRoundedCornerSize(int roundedCornerSize) |
void |
setSides(int sides) |
private static Object |
setupShapeAntialiasing(Graphics g)
Setups the graphics to draw shape using anti-alias.
|
createBlackLineBorder, createGrayLineBorder, getLineColor, getRoundedCorners, getThickness, isBorderOpaque
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
static final int NORTH
static final int SOUTH
static final int EAST
static final int WEST
static final int HORIZONTAL
static final int VERTICAL
static final int ALL
private int _sides
private int _roundedCornerSize
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
private static Object setupShapeAntialiasing(Graphics g)
g
- restoreShapeAntialiasing(java.awt.Graphics,Object)
.private static void restoreShapeAntialiasing(Graphics g, Object oldHints)
g
- oldHints
- the value returned from setupShapeAntialiasing(java.awt.Graphics)
.