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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Painter
getBackgroundPainter()
Returns the current background painter.boolean
isPaintBorderInsets()
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 Detail
-
getBackgroundPainter
Painter getBackgroundPainter()
Returns the current background painter.- Returns:
- the current painter
- See Also:
setBackgroundPainter(Painter)
,isPaintBorderInsets()
-
setBackgroundPainter
void setBackgroundPainter(Painter painter)
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
-
-
-