Class IgnitionLookAndFeel


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static float getSyntheticaDefaultAlpha​(@NotNull javax.swing.JComponent component)
      Returns the default Synthetica.background.alpha value for the supplied component.
      static void init()  
      static void setAdjustedAlpha​(@NotNull 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.
      static void setFrameIcon​(java.awt.Window window, IgnitionLookAndFeel.FrameIconStyle style)  
      static void setOpaque​(javax.swing.JComponent component, boolean opaque)  
      static void setUndecorated​(javax.swing.JDialog dialog)  
      static void setUndecorated​(javax.swing.JFrame frame)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(@NotNull
                                            @NotNull 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​(@NotNull
                                                      @NotNull javax.swing.JComponent component)
        Returns the default Synthetica.background.alpha value for the supplied component.