public static final class SubstanceCortex.ComponentOrParentScope
extends java.lang.Object
Components or all immediate child
components of a container.| Constructor | Description |
|---|---|
ComponentOrParentScope() |
| Modifier and Type | Method | Description |
|---|---|---|
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 |
setButtonNeverPaintBackground(javax.swing.JComponent comp,
java.lang.Boolean neverPaintButtonBackground) |
Specifies whether the specific component or its immediate children should never paint
button backgrounds.
|
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.
|
static void |
setFlatBackground(javax.swing.JComponent comp,
java.lang.Boolean flatBackground) |
Specifies whether the specific component or its immediate children should not paint
backgrounds unless selected, armed, pressed or (possibly) hovered over.
|
public static void setComponentPreviewPainter(javax.swing.JComponent comp,
PreviewPainter previewPainter)
DefaultPreviewPainter.comp - Component.previewPainter - Preview painter. Can be null.SubstanceCortex.GlobalScope.setComponentPreviewPainter(PreviewPainter)public static void setButtonIgnoreMinimumSize(javax.swing.JComponent comp,
java.lang.Boolean buttonIgnoreMinimumSize)
SubstanceButtonShaper
implementations are not required to respect this call. The current implementations of the
default StandardButtonShaper and ClassicButtonShaper respect this
setting.comp - Component.buttonIgnoreMinimumSize - If true, the component or its immediate
children will ignore the
default (minimum) dimension for buttons under button
shapers that respect this
setting. Pass null to reset to the default
behavior.SubstanceCortex.GlobalScope.setButtonIgnoreMinimumSize(Boolean)public static void setButtonNeverPaintBackground(javax.swing.JComponent comp,
java.lang.Boolean neverPaintButtonBackground)
comp - Component.neverPaintButtonBackground - If true, the component or its immediate
children will never paint
button backgrounds. Pass null to reset
to the default behavior.SubstanceCortex.GlobalScope.setButtonNeverPaintBackground(Boolean),
setFlatBackground(JComponent, Boolean)public static void setFlatBackground(javax.swing.JComponent comp,
java.lang.Boolean flatBackground)
comp - Component.flatBackground - If true, the component or its immediate children
will not paint
backgrounds unless selected, armed, pressed or (possibly)
hovered over.. Pass
null to reset to the default behavior.SubstanceCortex.GlobalScope.setFlatBackground(Boolean),
setButtonNeverPaintBackground(JComponent, Boolean)