public class PartialGradientLineBorder extends AbstractBorder implements PartialSide
| Modifier and Type | Field and Description |
|---|---|
protected int |
_thickness |
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST| Constructor and Description |
|---|
PartialGradientLineBorder(Color[] colors) |
PartialGradientLineBorder(Color[] colors,
int thickness) |
PartialGradientLineBorder(Color[] colors,
int thickness,
int sides) |
| Modifier and Type | Method and Description |
|---|---|
Insets |
getBorderInsets(Component c) |
Insets |
getBorderInsets(Component c,
Insets insets) |
int |
getSides() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
setSides(int sides) |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaquepublic PartialGradientLineBorder(Color[] colors)
public PartialGradientLineBorder(Color[] colors, int thickness)
public PartialGradientLineBorder(Color[] colors, int thickness, int sides)
public int getSides()
public void setSides(int sides)
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 AbstractBorderCopyright © 2017. All rights reserved.