PartialSide
, Serializable
, Border
public class PartialGradientLineBorder extends AbstractBorder implements PartialSide
Modifier and Type | Field | Description |
---|---|---|
protected int |
_thickness |
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST
Constructor | Description |
---|---|
PartialGradientLineBorder(Color[] colors) |
|
PartialGradientLineBorder(Color[] colors,
int thickness) |
|
PartialGradientLineBorder(Color[] colors,
int thickness,
int sides) |
Modifier and Type | Method | 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, isBorderOpaque
public 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 Border
paintBorder
in class AbstractBorder
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
public Insets getBorderInsets(Component c, Insets insets)
getBorderInsets
in class AbstractBorder