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:
-
Field Summary
Fields -
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) private InsetssafeInsets(Insets insets) Methods inherited from class AbstractBorder
getInteriorRectangle
-
Field Details
-
delegate
-
-
Constructor Details
-
SafeBorder
-
-
Method Details
-
getBaseline
- Overrides:
getBaselinein classAbstractBorder
-
getBaselineResizeBehavior
- Overrides:
getBaselineResizeBehaviorin classAbstractBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classAbstractBorder
-
safeInsets
-
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
-