JIDE 3.5.15

com.jidesoft.swing
Class PartialGradientLineBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by com.jidesoft.swing.PartialGradientLineBorder
All Implemented Interfaces:
PartialSide, Serializable, Border

public class PartialGradientLineBorder
extends AbstractBorder
implements PartialSide

This is a border which allows you to have gradient line only at one side or several sides.

See Also:
Serialized Form

Field Summary
protected  int _thickness
           
 
Fields inherited from interface com.jidesoft.swing.PartialSide
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST
 
Constructor Summary
PartialGradientLineBorder(Color[] colors)
           
PartialGradientLineBorder(Color[] colors, int thickness)
           
PartialGradientLineBorder(Color[] colors, int thickness, int sides)
           
 
Method Summary
 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)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_thickness

protected int _thickness
Constructor Detail

PartialGradientLineBorder

public PartialGradientLineBorder(Color[] colors)

PartialGradientLineBorder

public PartialGradientLineBorder(Color[] colors,
                                 int thickness)

PartialGradientLineBorder

public PartialGradientLineBorder(Color[] colors,
                                 int thickness,
                                 int sides)
Method Detail

getSides

public int getSides()

setSides

public void setSides(int sides)

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class AbstractBorder

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class AbstractBorder

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)
Overrides:
getBorderInsets in class AbstractBorder

JIDE 3.5.15