public class ColorTemplate
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COLOR_NONE
an "invalid" color that indicates that no color is set
|
static int |
COLOR_SKIP
this "color" is used for the Legend creation and indicates that the next
form should be skipped
|
static int[] |
COLORFUL_COLORS |
static int[] |
JOYFUL_COLORS |
static int[] |
LIBERTY_COLORS
THE COLOR THEMES ARE PREDEFINED (predefined color integer arrays), FEEL
FREE TO CREATE YOUR OWN WITH AS MANY DIFFERENT COLORS AS YOU WANT
|
static int[] |
MATERIAL_COLORS |
static int[] |
PASTEL_COLORS |
static int[] |
VORDIPLOM_COLORS |
| Constructor and Description |
|---|
ColorTemplate() |
| Modifier and Type | Method and Description |
|---|---|
static int |
colorWithAlpha(int color,
int alpha)
Sets the alpha component of the given color.
|
static java.util.List<java.lang.Integer> |
createColors(int[] colors)
Turns an array of colors (integer color values) into an ArrayList of
colors.
|
static java.util.List<java.lang.Integer> |
createColors(android.content.res.Resources r,
int[] colors)
turn an array of resource-colors (contains resource-id integers) into an
array list of actual color integers
|
static int |
getHoloBlue()
Returns the Android ICS holo blue light color.
|
static int |
rgb(java.lang.String hex)
Converts the given hex-color-string to rgb.
|
public static final int COLOR_NONE
public static final int COLOR_SKIP
public static final int[] LIBERTY_COLORS
public static final int[] JOYFUL_COLORS
public static final int[] PASTEL_COLORS
public static final int[] COLORFUL_COLORS
public static final int[] VORDIPLOM_COLORS
public static final int[] MATERIAL_COLORS
public static int rgb(java.lang.String hex)
hex - public static int getHoloBlue()
public static int colorWithAlpha(int color,
int alpha)
color - alpha - 0 - 255public static java.util.List<java.lang.Integer> createColors(android.content.res.Resources r,
int[] colors)
r - colors - an integer array of resource id's of colorspublic static java.util.List<java.lang.Integer> createColors(int[] colors)
colors -