Package com.jidesoft.swing
Class PartialGradientLineBorder
java.lang.Object
javax.swing.border.AbstractBorder
com.jidesoft.swing.PartialGradientLineBorder
- All Implemented Interfaces:
PartialSide
,Serializable
,Border
This is a border which allows you to have gradient line only at one side or several sides.
- See Also:
-
Field Summary
FieldsFields inherited from interface com.jidesoft.swing.PartialSide
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST
-
Constructor Summary
ConstructorsConstructorDescriptionPartialGradientLineBorder
(Color[] colors) PartialGradientLineBorder
(Color[] colors, int thickness) PartialGradientLineBorder
(Color[] colors, int thickness, int sides) -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets
(Component c, Insets insets) int
getSides()
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) void
setSides
(int sides) Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
Field Details
-
_thickness
protected int _thickness
-
-
Constructor Details
-
PartialGradientLineBorder
-
PartialGradientLineBorder
-
PartialGradientLineBorder
-
-
Method Details
-
getSides
public int getSides() -
setSides
public void setSides(int sides) -
paintBorder
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classAbstractBorder
-
getBorderInsets
- Specified by:
getBorderInsets
in interfaceBorder
- Overrides:
getBorderInsets
in classAbstractBorder
-
getBorderInsets
- Overrides:
getBorderInsets
in classAbstractBorder
-