org.eclipse.contribution.visualiser.utils
Class ColorUtils
java.lang.Object
org.eclipse.contribution.visualiser.utils.ColorUtils
- public class ColorUtils
- extends java.lang.Object
Utility class which markups providers can use to get colours
Could be extended to add methods like getPastelColors, getGreys,
getListOfNRandomColours, etc.. (as needed)
Method Summary |
static java.util.List |
getColorList()
Get the list of all defined Colors |
static Color |
getRandomColor()
Returns a colour with random R,G and B values that are between 50 and 250
and are multiples of 5. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorUtils
public ColorUtils()
getColorList
public static java.util.List getColorList()
- Get the list of all defined Colors
- Returns:
- List of Colors
getRandomColor
public static Color getRandomColor()
- Returns a colour with random R,G and B values that are between 50 and 250
and are multiples of 5.
- Returns:
- randomly generated Color