Package org.jdesktop.swingx
Interface BackgroundPaintable
- All Known Implementing Classes:
AbstractPatternPanel
,BasicCalendarHeaderHandler.BasicCalendarHeader
,BasicHeaderUI.DescriptionPane
,GradientPreviewPanel
,JXButton
,JXCollapsiblePane
,JXDatePicker.TodayPanel
,JXFindBar
,JXFindPanel
,JXGradientChooser
,JXGraph
,JXHeader
,JXImagePanel
,JXImageView
,JXLabel
,JXLoginPane
,JXLoginPane.JXBtnPanel
,JXMultiSplitPane
,JXPanel
,JXSearchPanel
,JXTaskPaneContainer
,JXTipOfTheDay
,JXTitledPanel
,JXTitledSeparator
,SpinningCalendarHeaderHandler.SpinningCalendarHeader
,WrappingIconPanel
interface BackgroundPaintable
An interface to define the common methods that are required for defining a background painter.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current background painter.boolean
Determines whether this component paints its background paint underneath the border.void
setBackgroundPainter
(Painter painter) Sets the new background painter.void
setPaintBorderInsets
(boolean paintBorderInsets)
-
Method Details
-
getBackgroundPainter
Painter getBackgroundPainter()Returns the current background painter.- Returns:
- the current painter
- See Also:
-
setBackgroundPainter
Sets the new background painter.- Parameters:
painter
- the new background painter; may benull
-
isPaintBorderInsets
boolean isPaintBorderInsets()Determines whether this component paints its background paint underneath the border.- Returns:
true
to paint under the border;false
otherwise
-
setPaintBorderInsets
void setPaintBorderInsets(boolean paintBorderInsets) - Parameters:
paintBorderInsets
-
-