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) intgetSides()voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) voidsetSides(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:
paintBorderin interfaceBorder- Overrides:
paintBorderin classAbstractBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classAbstractBorder
-