Class RadianceThemingCortex.ComponentOrParentScope
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingCortex.ComponentOrParentScope
- Enclosing class:
RadianceThemingCortex
APIs in this scope apply to individual application
Component
s or all immediate child
components of a container.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
setBackgroundAppearanceStrategy
(JComponent comp, RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) Specifies when the specific component or its immediate children should draw their background.static void
setButtonIgnoreMinimumSize
(JComponent comp, Boolean buttonIgnoreMinimumSize) Specifies whether the specific component or its immediate children should ignore the default (minimum) dimension for buttons.static void
setComponentPreviewPainter
(JComponent comp, PreviewPainter previewPainter) Specifies preview painter to be used for showing preview of the specific component or its immediate children.
-
Constructor Details
-
ComponentOrParentScope
public ComponentOrParentScope()
-
-
Method Details
-
setComponentPreviewPainter
Specifies preview painter to be used for showing preview of the specific component or its immediate children. Default implementation is available in theDefaultPreviewPainter
.- Parameters:
comp
- Component.previewPainter
- Preview painter. Can benull
.- See Also:
-
setButtonIgnoreMinimumSize
Specifies whether the specific component or its immediate children should ignore the default (minimum) dimension for buttons. Note thatRadianceButtonShaper
implementations are not required to respect this call. The current implementations of the defaultPillButtonShaper
andClassicButtonShaper
respect this setting.- Parameters:
comp
- Component.buttonIgnoreMinimumSize
- Iftrue
, the component or its immediate children will ignore the default (minimum) dimension for buttons under button shapers that respect this setting. Passnull
to reset to the default behavior.- See Also:
-
setBackgroundAppearanceStrategy
public static void setBackgroundAppearanceStrategy(JComponent comp, RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) Specifies when the specific component or its immediate children should draw their background.- Parameters:
comp
- Component.backgroundAppearanceStrategy
- Background appearance strategy. Passnull
to reset to the default behavior (toALWAYS
)- See Also:
-