public class RoundedBorder extends AbstractBorder
| Modifier and Type | Field and Description |
|---|---|
protected Color |
colorBorder |
protected Color |
colorgradient |
protected boolean |
filled |
protected int |
roundedRadius |
protected float |
thickness |
| Constructor and Description |
|---|
RoundedBorder(Color colorBorder) |
RoundedBorder(Color colorBorder,
Color colorgradient,
float thickness,
int roundedRadius,
boolean btopborder,
boolean bbottomborder) |
RoundedBorder(Color colorBorder,
float thickness) |
RoundedBorder(Color colorBorder,
float thickness,
int roundedRadius) |
RoundedBorder(Color colorBorder,
float thickness,
int roundedRadius,
boolean btopborder,
boolean bbottomborder) |
| Modifier and Type | Method and Description |
|---|---|
static Border |
createBlackLineBorder() |
static Border |
createGradientBorder() |
static Border |
createGrayLineBorder() |
Insets |
getBorderInsets(Component c) |
Insets |
getBorderInsets(Component c,
Insets insets) |
Color |
getLineColor() |
float |
getThickness() |
boolean |
isBorderOpaque() |
boolean |
isFilled() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangleprotected Color colorBorder
protected Color colorgradient
protected int roundedRadius
protected float thickness
protected boolean filled
public RoundedBorder(Color colorBorder)
public RoundedBorder(Color colorBorder, float thickness)
public RoundedBorder(Color colorBorder, float thickness, int roundedRadius)
public RoundedBorder(Color colorBorder, float thickness, int roundedRadius, boolean btopborder, boolean bbottomborder)
public static Border createBlackLineBorder()
public static Border createGrayLineBorder()
public static Border createGradientBorder()
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface BorderpaintBorder in class AbstractBorderpublic Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderpublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class AbstractBorderpublic Color getLineColor()
public float getThickness()
public boolean isFilled()
public boolean isBorderOpaque()
isBorderOpaque in interface BorderisBorderOpaque in class AbstractBorderCopyright © 2021. All rights reserved.