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