Class RadianceThemingCortex.ComponentOrParentScope
- java.lang.Object
-
- org.pushingpixels.radiance.theming.api.RadianceThemingCortex.ComponentOrParentScope
-
- Enclosing class:
- RadianceThemingCortex
public static final class RadianceThemingCortex.ComponentOrParentScope extends java.lang.Object
APIs in this scope apply to individual applicationComponent
s or all immediate child components of a container.
-
-
Constructor Summary
Constructors Constructor Description ComponentOrParentScope()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setBackgroundAppearanceStrategy(javax.swing.JComponent comp, RadianceThemingSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy)
Specifies when the specific component or its immediate children should draw their background.static void
setButtonIgnoreMinimumSize(javax.swing.JComponent comp, java.lang.Boolean buttonIgnoreMinimumSize)
Specifies whether the specific component or its immediate children should ignore the default (minimum) dimension for buttons.static void
setComponentPreviewPainter(javax.swing.JComponent comp, PreviewPainter previewPainter)
Specifies preview painter to be used for showing preview of the specific component or its immediate children.
-
-
-
Method Detail
-
setComponentPreviewPainter
public static void setComponentPreviewPainter(javax.swing.JComponent comp, PreviewPainter previewPainter)
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:
RadianceThemingCortex.GlobalScope.setComponentPreviewPainter(PreviewPainter)
-
setButtonIgnoreMinimumSize
public static void setButtonIgnoreMinimumSize(javax.swing.JComponent comp, java.lang.Boolean buttonIgnoreMinimumSize)
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:
RadianceThemingCortex.GlobalScope.setButtonIgnoreMinimumSize(Boolean)
-
setBackgroundAppearanceStrategy
public static void setBackgroundAppearanceStrategy(javax.swing.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:
RadianceThemingCortex.GlobalScope.setBackgroundAppearanceStrategy(RadianceThemingSlices.BackgroundAppearanceStrategy)
-
-