Package 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
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:
-
Field Summary
Fields inherited from class javax.swing.border.LineBorder
lineColor, roundedCorners, thicknessFields inherited from interface com.jidesoft.swing.PartialSide
ALL, EAST, HORIZONTAL, NORTH, SOUTH, VERTICAL, WEST -
Constructor Summary
ConstructorsConstructorDescriptionPartialLineBorder(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
Modifier and TypeMethodDescriptiongetBorderInsets(Component c, Insets insets) intintgetSides()voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) voidsetRoundedCornerSize(int roundedCornerSize) voidsetSides(int sides) Methods inherited from class javax.swing.border.LineBorder
createBlackLineBorder, createGrayLineBorder, getLineColor, getRoundedCorners, getThickness, isBorderOpaqueMethods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
-
Constructor Details
-
PartialLineBorder
-
PartialLineBorder
-
PartialLineBorder
-
PartialLineBorder
-
PartialLineBorder
-
-
Method Details
-
getSides
public int getSides() -
setSides
public void setSides(int sides) -
getRoundedCornerSize
public int getRoundedCornerSize() -
setRoundedCornerSize
public void setRoundedCornerSize(int roundedCornerSize) -
paintBorder
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classLineBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classLineBorder
-