com.aelitis.azureus.ui.swt.utils
Class ColorCache

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.utils.ColorCache

public class ColorCache
extends Object

Author:
TuxPaper

Constructor Summary
ColorCache()
           
 
Method Summary
static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, float[] hsb)
           
static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, int[] rgb)
           
static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, int red, int green, int blue)
           
static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.RGB rgb)
           
static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, String value)
           
static org.eclipse.swt.graphics.Color getRandomColor()
           
static org.eclipse.swt.graphics.Color getSchemedColor(org.eclipse.swt.graphics.Device device, int red, int green, int blue)
           
static org.eclipse.swt.graphics.Color getSchemedColor(org.eclipse.swt.graphics.Device device, String value)
           
static void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorCache

public ColorCache()
Method Detail

reset

public static void reset()

getSchemedColor

public static org.eclipse.swt.graphics.Color getSchemedColor(org.eclipse.swt.graphics.Device device,
                                                             int red,
                                                             int green,
                                                             int blue)

getColor

public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device,
                                                      int red,
                                                      int green,
                                                      int blue)

getColor

public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device,
                                                      String value)

getSchemedColor

public static org.eclipse.swt.graphics.Color getSchemedColor(org.eclipse.swt.graphics.Device device,
                                                             String value)

getColor

public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device,
                                                      int[] rgb)
Parameters:
device -
color -
Returns:
Since:
3.0.4.3

getRandomColor

public static org.eclipse.swt.graphics.Color getRandomColor()

getColor

public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device,
                                                      float[] hsb)
Parameters:
display -
hsb -
Returns:
Since:
3.1.1.1

getColor

public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device,
                                                      org.eclipse.swt.graphics.RGB rgb)
Parameters:
device -
rgb -
Returns:
Since:
3.1.1.1