Class RadianceThemingCortex.ComponentOrParentScope
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingCortex.ComponentOrParentScope
- Enclosing class:
RadianceThemingCortex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetBackgroundAppearanceStrategy(JComponent comp, RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy) Specifies when the specific component or its immediate children should draw their background.static voidsetButtonIgnoreMinimumSize(JComponent comp, Boolean buttonIgnoreMinimumSize) Specifies whether the specific component or its immediate children should ignore the default (minimum) dimension for buttons.static voidsetComponentPreviewPainter(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 thatRadianceButtonShaperimplementations are not required to respect this call. The current implementations of the defaultPillButtonShaperandClassicButtonShaperrespect 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. Passnullto 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. Passnullto reset to the default behavior (toALWAYS)- See Also:
-