Class IgnitionLookAndFeel
- java.lang.Object
-
- com.inductiveautomation.ignition.client.IgnitionLookAndFeel
-
public class IgnitionLookAndFeel extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIgnitionLookAndFeel.Colorsstatic classIgnitionLookAndFeel.FrameIconStylestatic classIgnitionLookAndFeel.LaFstatic classIgnitionLookAndFeel.StatusIcons
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LinearGradientPaintgetBrandedGradient(int width, int height)Returns aLinearGradientPaintsuitable for the currentPlatformEdition- will fill a branded gradient from bottom left to top right in the given dimensions.static floatgetSyntheticaDefaultAlpha(javax.swing.JComponent component)Returns the defaultSynthetica.background.alphavalue for the supplied component.static voidinit()static voidsetAdjustedAlpha(javax.swing.JComponent component, java.awt.Color... defaultColors)Sets theSynthetica.background.alphaclient property on the supplied component to1fif the background of the component is not any of the defaults.static voidsetFrameIcon(java.awt.Window window, IgnitionLookAndFeel.FrameIconStyle style)static voidsetOpaque(javax.swing.JComponent component, boolean opaque)static voidsetUndecorated(javax.swing.JDialog dialog)static voidsetUndecorated(javax.swing.JFrame frame)
-
-
-
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)
-
setFrameIcon
public static void setFrameIcon(java.awt.Window window, IgnitionLookAndFeel.FrameIconStyle style)
-
setOpaque
public static void setOpaque(javax.swing.JComponent component, boolean opaque)
-
getBrandedGradient
public static LinearGradientPaint getBrandedGradient(int width, int height)
Returns aLinearGradientPaintsuitable for the currentPlatformEdition- will fill a branded gradient from bottom left to top right in the given dimensions.
-
setAdjustedAlpha
public static void setAdjustedAlpha(@Nonnull javax.swing.JComponent component, java.awt.Color... defaultColors)Sets theSynthetica.background.alphaclient property on the supplied component to1fif 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 theSynthetica.background.alphaproperty ondefaultColors- 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 defaultSynthetica.background.alphavalue for the supplied component.
-
-