|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.themes.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(String rawValue)
Get the RGB value for a given color. |
static RGB[] |
getColorValues(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(String rawValue)
rawValue
- the raw value, either an RGB triple or an SWT constant name
public static RGB[] getColorValues(String[] rawValues)
rawValues
- the raw values, either RGB triple or an SWT constant
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.