Class PaintingUtils
- java.lang.Object
-
- com.inductiveautomation.ignition.client.util.gui.PaintingUtils
-
public class PaintingUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.Color
TRANSPARENT
-
Constructor Summary
Constructors Constructor Description PaintingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.Color
blendColors(java.awt.Color c1, java.awt.Color c2)
Blends the colors together.static java.awt.Color
gradient(java.awt.Color c1, java.awt.Color c2, double value, double hi)
static java.awt.Color
gradient(java.awt.Color c1, java.awt.Color c2, double value, double hi, double lo)
static float[]
parseDashPattern(java.lang.String pattern)
static int
tint(int rgba, float tR, float tG, float tB, float tA)
-
-
-
Method Detail
-
gradient
public static java.awt.Color gradient(java.awt.Color c1, java.awt.Color c2, double value, double hi)
-
gradient
public static java.awt.Color gradient(java.awt.Color c1, java.awt.Color c2, double value, double hi, double lo)
-
blendColors
public static java.awt.Color blendColors(java.awt.Color c1, java.awt.Color c2)
Blends the colors together.
-
tint
public static int tint(int rgba, float tR, float tG, float tB, float tA)
-
parseDashPattern
public static float[] parseDashPattern(java.lang.String pattern) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
-