Package org.eclipse.graphiti.util
Class ColorUtil
- java.lang.Object
-
- org.eclipse.graphiti.util.ColorUtil
-
public class ColorUtil extends java.lang.ObjectUtility for working with Colors.
-
-
Constructor Summary
Constructors Constructor Description ColorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetBlueFromHex(java.lang.String hexRGBString)Gets the corresponding int representation from hexedecimal RGB string for color blue.static intgetGreenFromHex(java.lang.String hexRGBString)Gets the corresponding int representation from hexedecimal RGB string for color green.static intgetRedFromHex(java.lang.String hexRGBString)Gets the corresponding int representation from hexedecimal RGB string for color red.
-
-
-
Method Detail
-
getBlueFromHex
public static int getBlueFromHex(java.lang.String hexRGBString)
Gets the corresponding int representation from hexedecimal RGB string for color blue.- Parameters:
hexRGBString-- Returns:
- corresponding int value for blue
-
getRedFromHex
public static int getRedFromHex(java.lang.String hexRGBString)
Gets the corresponding int representation from hexedecimal RGB string for color red.- Parameters:
hexRGBString-- Returns:
- corresponding int value for red
-
getGreenFromHex
public static int getGreenFromHex(java.lang.String hexRGBString)
Gets the corresponding int representation from hexedecimal RGB string for color green.- Parameters:
hexRGBString-- Returns:
- corresponding int value for green
-
-