public class HeaderBorder extends AbstractBorder
Constructor and Description |
---|
HeaderBorder() |
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c)
Returns the insets used by this border. This border uses one pixel on the top and left side, and 4 pixels on
the bottom and right side.
|
boolean |
isBorderOpaque() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints this border with a one pixel wide line on the top and left side, and a fading shadow on the bottom and right
side.
|
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
c
- the component for which this border insets value appliespublic boolean isBorderOpaque()
isBorderOpaque
in interface Border
isBorderOpaque
in class AbstractBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
paintBorder
in class AbstractBorder
c
- 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 borderCopyright © 2017 Hitachi Vantara. All rights reserved.