public final class Colors extends Object
Constructor and Description |
---|
Colors() |
Modifier and Type | Method and Description |
---|---|
static void |
disposeColors()
Dispose of all the cached colors
|
static org.eclipse.swt.graphics.Color |
getColor(int systemColorID)
Returns the system color matching the specific ID
|
static org.eclipse.swt.graphics.Color |
getColor(int r,
int g,
int b)
Returns a color given its red, green and blue component values
|
static org.eclipse.swt.graphics.Color |
getColor(org.eclipse.swt.graphics.RGB rgb)
Returns a color given its RGB value
|
static org.eclipse.swt.graphics.Color |
getColor(String hexColorCode) |
public static org.eclipse.swt.graphics.Color getColor(int systemColorID)
systemColorID
- int The ID value for the colorpublic static org.eclipse.swt.graphics.Color getColor(String hexColorCode)
hexColorCode
- if hexColorCode is not valid return RGB(0, 0, 0)NumberFormatException
- if the hex code is invalidpublic static org.eclipse.swt.graphics.Color getColor(int r, int g, int b)
r
- int The red component of the colorg
- int The green component of the colorb
- int The blue component of the colorpublic static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)
rgb
- RGB The RGB value of the colorpublic static void disposeColors()
Copyright © 2016 Eclipse Paho. All rights reserved.