|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.bali.ewt.graphics.ColorUtils
oracle.javatools.ui.ColorUtils2
public class ColorUtils2
Additional operations on Colors
Field Summary |
---|
Fields inherited from class oracle.bali.ewt.graphics.ColorUtils |
---|
DEFAULT_LIGHTER_CHANGE, NTSC_WEIGHT_BLUE, NTSC_WEIGHT_GREEN, NTSC_WEIGHT_RED |
Constructor Summary | |
---|---|
ColorUtils2() |
Method Summary | |
---|---|
static java.awt.Color |
alphaColor(java.awt.Color c, float alpha) get a transparent version of the given color |
static java.awt.Color |
alphaColor(java.awt.Color c, int alpha) get a transparent version of the given color |
static java.awt.Color |
getAnalogous(java.awt.Color c, int index) Find the analogous colors of the given color. |
static java.awt.Color |
getCompliment(java.awt.Color c) Return the complimentary color to the one given. |
static java.awt.Color |
getStringColor(java.lang.String text) |
static java.awt.Color |
getTetrad(java.awt.Color c, int index) Find the four tetradic colors of the given color. |
static java.awt.Color |
getTriad(java.awt.Color c, int index) Find the triad colors of the given color. |
static java.awt.Color |
getTweenColor(java.awt.Color c1, java.awt.Color c2, float weight) Find a color between the two in terms of brightness/saturation with the same hue as the first color. |
static java.awt.Color |
saturateColor(java.awt.Color c, double percent) |
static java.awt.Color |
shadeColorPercent(java.awt.Color c, double percent) |
Methods inherited from class oracle.bali.ewt.graphics.ColorUtils |
---|
cmyToColor, colorToCMY, colorToHSB, colorToHSL, colorToHTML, colorToRGB, darkerShadeColor, getApproximateLuminance, getNTSCLuminance, getTransparentColor, hsbToColor, hslToColor, hslToRGB, htmlToColor, lighterShadeColor, rgbToColor, rgbToHSL, shadeColor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorUtils2()
Method Detail |
---|
public static java.awt.Color getCompliment(java.awt.Color c)
public static java.awt.Color getTriad(java.awt.Color c, int index)
public static java.awt.Color getAnalogous(java.awt.Color c, int index)
public static java.awt.Color getTetrad(java.awt.Color c, int index)
public static java.awt.Color shadeColorPercent(java.awt.Color c, double percent)
public static java.awt.Color saturateColor(java.awt.Color c, double percent)
public static java.awt.Color alphaColor(java.awt.Color c, int alpha)
c
-alpha
- 0-255public static java.awt.Color alphaColor(java.awt.Color c, float alpha)
c
-alpha
- 0-255public static java.awt.Color getTweenColor(java.awt.Color c1, java.awt.Color c2, float weight)
c1
-c2
-weight
- the weighting of the color between the two (0->1f)public static java.awt.Color getStringColor(java.lang.String text)
text
-
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |