com.jidesoft.swing
Class PartialLineBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.LineBorder
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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