Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.javatools.ui
Class ColorUtils2

java.lang.Object
  extended by oracle.bali.ewt.graphics.ColorUtils
      extended by oracle.javatools.ui.ColorUtils2

public class ColorUtils2
extends oracle.bali.ewt.graphics.ColorUtils

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, 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 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 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

ColorUtils2

public ColorUtils2()
Method Detail

getCompliment

public static java.awt.Color getCompliment(java.awt.Color c)
Return the complimentary color to the one given. Complimentary colors are opposite the given color on the color wheel. Saturation and brightness/lumosity are unchanged


getTriad

public static java.awt.Color getTriad(java.awt.Color c,
                                      int index)
Find the triad colors of the given color. index '0' will return the given color, index '1' will return the first triad clockwise around the color wheel, index '2' will give the second triad. Saturation and brightness/lumosity are unchanged


getAnalogous

public static java.awt.Color getAnalogous(java.awt.Color c,
                                          int index)
Find the analogous colors of the given color. index '0' will return the given color, index '-1' will return the anti-clockwise analogous color from the color wheel, index '1' will return the clockwise analogous color from the color wheel. Saturation and brightness/lumosity are unchanged


getTetrad

public static java.awt.Color getTetrad(java.awt.Color c,
                                       int index)
Find the four tetradic colors of the given color. index '0' will return the given color, index '1' will return the first clockwise analogous color from the color wheel, index '2' the second and index '3' the third. Saturation and brightness/lumosity are unchanged


shadeColorPercent

public static java.awt.Color shadeColorPercent(java.awt.Color c,
                                               double percent)

saturateColor

public static java.awt.Color saturateColor(java.awt.Color c,
                                           double percent)

alphaColor

public static java.awt.Color alphaColor(java.awt.Color c,
                                        int alpha)
get a transparent version of the given color

Parameters:
c -
alpha - 0-255
Returns:

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.