Class IgnitionLookAndFeel


  • public class IgnitionLookAndFeel
    extends java.lang.Object
    • Method Detail

      • init

        public static void init()
      • setUndecorated

        public static void setUndecorated​(javax.swing.JFrame frame)
      • setUndecorated

        public static void setUndecorated​(javax.swing.JDialog dialog)
      • setOpaque

        public static void setOpaque​(javax.swing.JComponent component,
                                     boolean opaque)
      • setAdjustedAlpha

        public static void setAdjustedAlpha​(@Nonnull
                                            javax.swing.JComponent component,
                                            java.awt.Color... defaultColors)
        Sets the Synthetica.background.alpha client property on the supplied component to 1f if the background of the component is not any of the defaults. If the background is one of the defaults or null, the default value is applied.

        NOTE: this should be called after the specified background is set on the component!
        Parameters:
        component - the component to set the Synthetica.background.alpha property on
        defaultColors - any default colors for the component. if the components background matches any of these colors no overriding will be performed. If null/omitted, overriding will occur.
      • getSyntheticaDefaultAlpha

        public static float getSyntheticaDefaultAlpha​(@Nonnull
                                                      javax.swing.JComponent component)
        Returns the default Synthetica.background.alpha value for the supplied component.