Border
, UIResource
public class RaisedBorder extends Object implements Border, UIResource
Modifier and Type | Field | Description |
---|---|---|
protected Color |
_darkShadow |
|
protected Color |
_highlight |
|
protected Insets |
_insets |
|
protected Color |
_lightHighlight |
|
protected Color |
_shadow |
Constructor | Description |
---|---|
RaisedBorder(Color highlight,
Color lightHighlight,
Color shadow,
Color darkShadow,
Insets insets) |
Modifier and Type | Method | Description |
---|---|---|
Insets |
getBorderInsets(Component c) |
Returns the insets 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) |
protected Color _highlight
protected Color _lightHighlight
protected Color _shadow
protected Color _darkShadow
protected Insets _insets
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
c
- the component for which this border insets value appliespublic boolean isBorderOpaque()
isBorderOpaque
in interface Border
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border