Package org.pushingpixels.substance.api
Class SubstanceCortex.ComponentOrParentScope
- java.lang.Object
-
- org.pushingpixels.substance.api.SubstanceCortex.ComponentOrParentScope
-
- Enclosing class:
- SubstanceCortex
public static final class SubstanceCortex.ComponentOrParentScope extends java.lang.ObjectAPIs in this scope apply to individual applicationComponents 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 voidsetBackgroundAppearanceStrategy(javax.swing.JComponent comp, SubstanceSlices.BackgroundAppearanceStrategy backgroundAppearanceStrategy)Specifies when the specific component or its immediate children should draw their background.static voidsetButtonIgnoreMinimumSize(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 voidsetComponentPreviewPainter(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:
SubstanceCortex.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 thatSubstanceButtonShaperimplementations 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:
SubstanceCortex.GlobalScope.setButtonIgnoreMinimumSize(Boolean)
-
setBackgroundAppearanceStrategy
public static void setBackgroundAppearanceStrategy(javax.swing.JComponent comp, SubstanceSlices.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:
SubstanceCortex.GlobalScope.setBackgroundAppearanceStrategy(BackgroundAppearanceStrategy)
-
-