|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.themes.ColorUtil
public final class ColorUtil
Useful color utilities.
| Method Summary | |
|---|---|
static RGB |
blend(RGB val1,
RGB val2)
Blend the two color values returning a value that is halfway between them. |
static RGB |
blend(RGB c1,
RGB c2,
int ratio)
Blends the two color values according to the provided ratio. |
static RGB |
getColorValue(java.lang.String rawValue)
Get the RGB value for a given color. |
static RGB[] |
getColorValues(java.lang.String[] rawValues)
Get the RGB values for a given color array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RGB blend(RGB c1,
RGB c2,
int ratio)
c1 - first colorc2 - second colorratio - percentage of the first color in the blend (0-100)
public static RGB blend(RGB val1,
RGB val2)
val1 - the first valueval2 - the second value
public static RGB getColorValue(java.lang.String rawValue)
throws DataFormatException
rawValue - the raw value, either an RGB triple or an SWT constant name
DataFormatException - thrown if the value cannot be interpreted as a colorpublic static RGB[] getColorValues(java.lang.String[] rawValues)
rawValues - the raw values, either RGB triple or an SWT constant
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.