Package org.jdesktop.swingx.plaf
Class SafeBorder
java.lang.Object
javax.swing.border.AbstractBorder
org.jdesktop.swingx.plaf.SafeBorder
- All Implemented Interfaces:
Serializable,Border,UIResource
Wrapper around a delegate with the same behaviour as the delegate except that
it catches null insets (hack around Issue 1297-swingx which is core bug
6739738)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBaseline(Component c, int width, int height) getBorderInsets(Component c, Insets insets) getInteriorRectangle(Component c, int x, int y, int width, int height) booleanvoidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle
-
Constructor Details
-
SafeBorder
-
-
Method Details
-
getBaseline
- Overrides:
getBaselinein classAbstractBorder
-
getBaselineResizeBehavior
- Overrides:
getBaselineResizeBehaviorin classAbstractBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classAbstractBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder
-
getInteriorRectangle
- Overrides:
getInteriorRectanglein classAbstractBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaquein interfaceBorder- Overrides:
isBorderOpaquein classAbstractBorder
-
paintBorder
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classAbstractBorder
-