Package org.eclipse.graphiti.util
Class ColorUtil
java.lang.Object
org.eclipse.graphiti.util.ColorUtil
Utility for working with Colors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetBlueFromHex(String hexRGBString) Gets the corresponding int representation from hexedecimal RGB string for color blue.static intgetGreenFromHex(String hexRGBString) Gets the corresponding int representation from hexedecimal RGB string for color green.static intgetRedFromHex(String hexRGBString) Gets the corresponding int representation from hexedecimal RGB string for color red.
-
Constructor Details
-
ColorUtil
public ColorUtil()
-
-
Method Details
-
getBlueFromHex
Gets the corresponding int representation from hexedecimal RGB string for color blue.- Parameters:
hexRGBString-- Returns:
- corresponding int value for blue
-
getRedFromHex
Gets the corresponding int representation from hexedecimal RGB string for color red.- Parameters:
hexRGBString-- Returns:
- corresponding int value for red
-
getGreenFromHex
Gets the corresponding int representation from hexedecimal RGB string for color green.- Parameters:
hexRGBString-- Returns:
- corresponding int value for green
-