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.booleanDetermines whether this component paints its background paint underneath the border.voidsetBackgroundPainter(Painter painter) Sets the new background painter.voidsetPaintBorderInsets(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:
trueto paint under the border;falseotherwise
-
setPaintBorderInsets
void setPaintBorderInsets(boolean paintBorderInsets) - Parameters:
paintBorderInsets-
-