public class ColorCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.eclipse.swt.graphics.RGB |
BLACK |
static org.eclipse.swt.graphics.Color |
blueButtonBackground |
static org.eclipse.swt.graphics.Color[] |
blueHeaderColor |
static org.eclipse.swt.graphics.Color |
blueToolbarColor |
static org.eclipse.swt.graphics.Color |
calendarBlueBorder |
static org.eclipse.swt.graphics.Color |
calendarBlueHeader |
static org.eclipse.swt.graphics.Color |
calendarOliveBorder |
static org.eclipse.swt.graphics.Color |
calendarOliveHeader |
static org.eclipse.swt.graphics.Color |
calendarSilverBorder |
static org.eclipse.swt.graphics.Color |
calendarSilverHeader |
static org.eclipse.swt.graphics.Color[] |
darkBrownColor |
static org.eclipse.swt.graphics.Color[] |
lightBlueButtonColor |
static org.eclipse.swt.graphics.Color |
lightBlueToolbarcolor |
static org.eclipse.swt.graphics.Color[] |
lightBrownColor |
static org.eclipse.swt.graphics.Color[] |
lightBrownColorReverse |
static org.eclipse.swt.graphics.Color[] |
lightOliveButtonColor |
static org.eclipse.swt.graphics.Color |
lightOliveToolbarcolor |
static org.eclipse.swt.graphics.Color[] |
lightSilverButtonColor |
static org.eclipse.swt.graphics.Color |
lightSilverToolbarcolor |
static org.eclipse.swt.graphics.Color |
o2007blueBot |
static org.eclipse.swt.graphics.Color |
o2007blueMid |
static org.eclipse.swt.graphics.Color |
o2007blueTop |
static org.eclipse.swt.graphics.Color |
o2007buttonBackgroundColor |
static org.eclipse.swt.graphics.Color |
o2007orangeHoveredBot |
static org.eclipse.swt.graphics.Color |
o2007orangeHoveredMid |
static org.eclipse.swt.graphics.Color |
o2007orangeHoveredTop |
static org.eclipse.swt.graphics.Color |
o2007orangeSelectedBot |
static org.eclipse.swt.graphics.Color |
o2007orangeSelectedMid |
static org.eclipse.swt.graphics.Color |
o2007orangeSelectedTop |
static org.eclipse.swt.graphics.Color |
oliveButtonBackground |
static org.eclipse.swt.graphics.Color[] |
oliveHeaderColor |
static org.eclipse.swt.graphics.Color |
oliveToolbarColor |
static org.eclipse.swt.graphics.Color |
silverButtonBackground |
static org.eclipse.swt.graphics.Color[] |
silverHeaderColor |
static org.eclipse.swt.graphics.Color |
silverToolbarColor |
static int |
SKIN_AUTO |
static int |
SKIN_BLUE |
static int |
SKIN_CURRENT |
static int |
SKIN_FALLBACK |
static int |
SKIN_NONE |
static int |
SKIN_OFFICE_2007 |
static int |
SKIN_OLIVE |
static int |
SKIN_SILVER |
static org.eclipse.swt.graphics.RGB |
WHITE |
Modifier and Type | Method and Description |
---|---|
static void |
disposeAll()
Disposes all colors held in the cache and colors created when class is created.
|
static void |
disposeCachedColor()
Disposes the cached colors only.
|
static org.eclipse.swt.graphics.Color |
getBlack()
Returns the color black R0, G0, B0
|
static org.eclipse.swt.graphics.Color |
getColor(int r,
int g,
int b)
Returns a color that is also cached if it has not been created before.
|
static org.eclipse.swt.graphics.Color |
getColor(org.eclipse.swt.graphics.RGB rgb)
Returns a color that is also cached if it has not been created before.
|
static org.eclipse.swt.graphics.Color |
getWhite()
Returns the color white R255, G255, B255
|
public static final org.eclipse.swt.graphics.RGB BLACK
public static final org.eclipse.swt.graphics.RGB WHITE
public static final int SKIN_NONE
public static final int SKIN_AUTO
public static final int SKIN_BLUE
public static final int SKIN_OLIVE
public static final int SKIN_SILVER
public static final int SKIN_OFFICE_2007
public static final int SKIN_FALLBACK
public static int SKIN_CURRENT
public static org.eclipse.swt.graphics.Color[] blueHeaderColor
public static org.eclipse.swt.graphics.Color[] lightBlueButtonColor
public static org.eclipse.swt.graphics.Color blueButtonBackground
public static org.eclipse.swt.graphics.Color blueToolbarColor
public static org.eclipse.swt.graphics.Color lightBlueToolbarcolor
public static org.eclipse.swt.graphics.Color[] oliveHeaderColor
public static org.eclipse.swt.graphics.Color[] lightOliveButtonColor
public static org.eclipse.swt.graphics.Color oliveButtonBackground
public static org.eclipse.swt.graphics.Color oliveToolbarColor
public static org.eclipse.swt.graphics.Color lightOliveToolbarcolor
public static org.eclipse.swt.graphics.Color[] silverHeaderColor
public static org.eclipse.swt.graphics.Color[] lightSilverButtonColor
public static org.eclipse.swt.graphics.Color silverButtonBackground
public static org.eclipse.swt.graphics.Color silverToolbarColor
public static org.eclipse.swt.graphics.Color lightSilverToolbarcolor
public static org.eclipse.swt.graphics.Color[] lightBrownColor
public static org.eclipse.swt.graphics.Color[] lightBrownColorReverse
public static org.eclipse.swt.graphics.Color[] darkBrownColor
public static org.eclipse.swt.graphics.Color calendarBlueHeader
public static org.eclipse.swt.graphics.Color calendarBlueBorder
public static org.eclipse.swt.graphics.Color calendarOliveHeader
public static org.eclipse.swt.graphics.Color calendarOliveBorder
public static org.eclipse.swt.graphics.Color calendarSilverHeader
public static org.eclipse.swt.graphics.Color calendarSilverBorder
public static org.eclipse.swt.graphics.Color o2007blueTop
public static org.eclipse.swt.graphics.Color o2007blueMid
public static org.eclipse.swt.graphics.Color o2007blueBot
public static org.eclipse.swt.graphics.Color o2007orangeSelectedTop
public static org.eclipse.swt.graphics.Color o2007orangeSelectedMid
public static org.eclipse.swt.graphics.Color o2007orangeSelectedBot
public static org.eclipse.swt.graphics.Color o2007orangeHoveredTop
public static org.eclipse.swt.graphics.Color o2007orangeHoveredMid
public static org.eclipse.swt.graphics.Color o2007orangeHoveredBot
public static org.eclipse.swt.graphics.Color o2007buttonBackgroundColor
public static void disposeAll()
IMPORTANT: ONLY CALL WHEN YOU WANT TO DISPOSE THE WIDGET USING THIS CLASS!
If you only wish to dispose colors you have created through the use of the class, please use disposeCachedColors()
disposeCachedColor()
public static void disposeCachedColor()
public static org.eclipse.swt.graphics.Color getWhite()
public static org.eclipse.swt.graphics.Color getBlack()
public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)
rgb
- RGB colorspublic static org.eclipse.swt.graphics.Color getColor(int r, int g, int b)
r
- Redg
- Greenb
- Blue