JIDE 3.5.15

com.jidesoft.swing
Class PartialLineBorder

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

public class PartialLineBorder
extends LineBorder
implements PartialSide

This is a better version of LineBorder which allows you to show line only at one side or several sides and supports rounded corner.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.LineBorder
lineColor, roundedCorners, thickness
 
Fields inherited from interface com.jidesoft.swing.PartialSide
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST
 
Constructor Summary
PartialLineBorder(Color color)
           
PartialLineBorder(Color color, int thickness)
           
PartialLineBorder(Color color, int thickness, boolean roundedCorners)
           
PartialLineBorder(Color color, int thickness, boolean roundedCorners, int roundedCornerSize)
           
PartialLineBorder(Color color, int thickness, int side)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 Insets getBorderInsets(Component c, Insets insets)
           
 int getRoundedCornerSize()
           
 int getSides()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void setRoundedCornerSize(int roundedCornerSize)
           
 void setSides(int sides)
           
 
Methods inherited from class javax.swing.border.LineBorder
createBlackLineBorder, createGrayLineBorder, getLineColor, getRoundedCorners, getThickness, isBorderOpaque
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialLineBorder

public PartialLineBorder(Color color)

PartialLineBorder

public PartialLineBorder(Color color,
                         int thickness)

PartialLineBorder

public PartialLineBorder(Color color,
                         int thickness,
                         boolean roundedCorners)

PartialLineBorder

public PartialLineBorder(Color color,
                         int thickness,
                         boolean roundedCorners,
                         int roundedCornerSize)

PartialLineBorder

public PartialLineBorder(Color color,
                         int thickness,
                         int side)
Method Detail

getSides

public int getSides()

setSides

public void setSides(int sides)

getRoundedCornerSize

public int getRoundedCornerSize()

setRoundedCornerSize

public void setRoundedCornerSize(int roundedCornerSize)

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 LineBorder

getBorderInsets

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

getBorderInsets

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

JIDE 3.5.15