public abstract class AnnotationColor extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
AnnotationColor() |
Modifier and Type | Method and Description |
---|---|
static AnnotationColor |
createFromArgb(int color)
Create AnnotationColor from a ARGB int representation (e.g.
|
static AnnotationColor |
createFromResource(Context context,
int colorRes)
Create AnnotationColor from a color resource
|
static AnnotationColor |
createFromResource(Context context,
int colorRes,
Resources.Theme theme)
Create AnnotationColor from a color resource
|
static AnnotationColor |
createFromRgba(int redValue,
int greenValue,
int blueValue,
int alphaValue)
Create new AnnotationColor
|
abstract int |
getAlphaValue()
the alpha value of the color (0-255)
|
abstract int |
getBlueValue()
The blue value of the color (0-255)
|
abstract int |
getGreenValue()
The green value of the color (0-255)
|
abstract int |
getRedValue()
The red value of the color (0-255)
|
String |
toString()
Representation of the color in a string that Tangram styling can understand
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
describeContents, writeToParcel
public abstract int getRedValue()
public abstract int getGreenValue()
public abstract int getBlueValue()
public abstract int getAlphaValue()
public String toString()
public static AnnotationColor createFromRgba(int redValue, int greenValue, int blueValue, int alphaValue)
redValue
- red value (0-255)greenValue
- green value (0-255)blueValue
- blue value (0-255)alphaValue
- alpha value (0-255)public static AnnotationColor createFromResource(Context context, int colorRes)
context
- Android contextcolorRes
- the color resource IDAnnotationColor
objectpublic static AnnotationColor createFromResource(Context context, int colorRes, Resources.Theme theme)
context
- Android contextcolorRes
- the color resource IDAnnotationColor
objectpublic static AnnotationColor createFromArgb(int color)
Color.BLUE
)