public class EdgeBorder extends Object implements Border, SwingConstants
The GNU General Public License for details.
Modifier and Type | Field and Description |
---|---|
protected int |
edge
The edge to draw
|
protected int |
lift
The raised/lowered state
|
static int |
LOWERED
A lowered border
|
static int |
RAISED
A raised border
|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
EdgeBorder()
Create an EdgeBorder showing a northern border
|
EdgeBorder(int edge)
Create an EdgeBorder with a selected edge
|
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component component)
Get the insets for a given component
|
boolean |
isBorderOpaque()
Is this border opaque
|
void |
paintBorder(Component component,
Graphics g,
int x,
int y,
int w,
int h)
Actually go and paint the border
|
public static final int RAISED
public static final int LOWERED
protected int edge
protected int lift
public EdgeBorder()
public EdgeBorder(int edge)
edge
- The edge to displaypublic Insets getBorderInsets(Component component)
getBorderInsets
in interface Border
public boolean isBorderOpaque()
isBorderOpaque
in interface Border
public void paintBorder(Component component, Graphics g, int x, int y, int w, int h)
paintBorder
in interface Border