public class MultiSizedLineBorder extends AbstractBorder
| Modifier and Type | Field and Description |
|---|---|
protected int |
bottom |
protected int |
left |
protected Color |
lineColor |
protected int |
right |
protected int |
top |
| Constructor and Description |
|---|
MultiSizedLineBorder(Color color,
int top,
int left,
int bottom,
int right)
Creates a line border with the specified color, thickness,
and corner shape.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
getBorderInsets(Component c)
Returns the insets of the border.
|
Insets |
getBorderInsets(Component c,
Insets insets)
Reinitialize the insets parameter with this Border's current Insets.
|
Color |
getLineColor()
Returns the color of the border.
|
int[] |
getThickness()
Returns the thickness of the border.
|
boolean |
isBorderOpaque()
Returns whether or not the border is opaque.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the
specified position and size.
|
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangleprotected int top
protected int left
protected int bottom
protected int right
protected Color lineColor
public MultiSizedLineBorder(Color color, int top, int left, int bottom, int right)
color - the color of the borderpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface BorderpaintBorder in class AbstractBorderc - the component for which this border is being paintedg - the paint graphicsx - the x position of the painted bordery - the y position of the painted borderwidth - the width of the painted borderheight - the height of the painted borderpublic Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderc - the component for which this border insets value appliespublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class AbstractBorderc - the component for which this border insets value appliesinsets - the object to be reinitializedpublic Color getLineColor()
public int[] getThickness()
public boolean isBorderOpaque()
isBorderOpaque in interface BorderisBorderOpaque in class AbstractBorder