public class ThinBorder extends AbstractBorder
Modifier and Type | Field and Description |
---|---|
static int |
LINE
Line border type.
|
static int |
LOWERED
Lowered bevel type.
|
static int |
RAISED
Raised bevel type.
|
Constructor and Description |
---|
ThinBorder(int borderType)
Creates a bevel border with the specified type.
|
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.
|
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, getInteriorRectangle, isBorderOpaque
public static final int RAISED
public static final int LOWERED
public static final int LINE
public ThinBorder(int borderType)
borderType
- the type of bevel for the border.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 borderpublic Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
c
- the component for which this border insets value appliespublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets
in class AbstractBorder
c
- the component for which this border insets value applies.insets
- the object to be reinitialized.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.