Class SubstanceCortex.ComponentOrParentScope

  • Enclosing class:
    SubstanceCortex


    public static final class SubstanceCortex.ComponentOrParentScope
    extends java.lang.Object
    APIs in this scope apply to individual application Components or all immediate child components of a container.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void setBackgroundAppearanceStrategy​(javax.swing.JComponent comp, SubstanceSlices.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentOrParentScope

        public ComponentOrParentScope​()
    • Method Detail

      • 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 that SubstanceButtonShaper implementations are not required to respect this call. The current implementations of the default PillButtonShaper and ClassicButtonShaper respect this setting.
        Parameters:
        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.
        See Also:
        SubstanceCortex.GlobalScope.setButtonIgnoreMinimumSize(Boolean)