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 class
IgnitionLookAndFeel.Colors
static class
IgnitionLookAndFeel.FrameIconStyle
static class
IgnitionLookAndFeel.LaF
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float
getSyntheticaDefaultAlpha(javax.swing.JComponent component)
Returns the defaultSynthetica.background.alpha
value for the supplied component.static void
init()
static void
setAdjustedAlpha(javax.swing.JComponent component, java.awt.Color... defaultColors)
Sets theSynthetica.background.alpha
client property on the supplied component to1f
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)
-
-
-
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)
-
setAdjustedAlpha
public static void setAdjustedAlpha(@Nonnull javax.swing.JComponent component, java.awt.Color... defaultColors)
Sets theSynthetica.background.alpha
client property on the supplied component to1f
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 theSynthetica.background.alpha
property 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.alpha
value for the supplied component.
-
-