Class ColorCache
java.lang.Object
org.eclipse.nebula.widgets.calendarcombo.ColorCache
public class ColorCache
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
Modifier and Type Method 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, B0static 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
-
Field Details
-
BLACK
public static final org.eclipse.swt.graphics.RGB BLACK -
WHITE
public static final org.eclipse.swt.graphics.RGB WHITE -
SKIN_NONE
public static final int SKIN_NONE- See Also:
- Constant Field Values
-
SKIN_AUTO
public static final int SKIN_AUTO- See Also:
- Constant Field Values
-
SKIN_BLUE
public static final int SKIN_BLUE- See Also:
- Constant Field Values
-
SKIN_OLIVE
public static final int SKIN_OLIVE- See Also:
- Constant Field Values
-
SKIN_SILVER
public static final int SKIN_SILVER- See Also:
- Constant Field Values
-
SKIN_OFFICE_2007
public static final int SKIN_OFFICE_2007- See Also:
- Constant Field Values
-
SKIN_FALLBACK
public static final int SKIN_FALLBACK- See Also:
- Constant Field Values
-
SKIN_CURRENT
public static int SKIN_CURRENT -
blueHeaderColor
public static org.eclipse.swt.graphics.Color[] blueHeaderColor -
lightBlueButtonColor
public static org.eclipse.swt.graphics.Color[] lightBlueButtonColor -
blueButtonBackground
public static org.eclipse.swt.graphics.Color blueButtonBackground -
blueToolbarColor
public static org.eclipse.swt.graphics.Color blueToolbarColor -
lightBlueToolbarcolor
public static org.eclipse.swt.graphics.Color lightBlueToolbarcolor -
oliveHeaderColor
public static org.eclipse.swt.graphics.Color[] oliveHeaderColor -
lightOliveButtonColor
public static org.eclipse.swt.graphics.Color[] lightOliveButtonColor -
oliveButtonBackground
public static org.eclipse.swt.graphics.Color oliveButtonBackground -
oliveToolbarColor
public static org.eclipse.swt.graphics.Color oliveToolbarColor -
lightOliveToolbarcolor
public static org.eclipse.swt.graphics.Color lightOliveToolbarcolor -
silverHeaderColor
public static org.eclipse.swt.graphics.Color[] silverHeaderColor -
lightSilverButtonColor
public static org.eclipse.swt.graphics.Color[] lightSilverButtonColor -
silverButtonBackground
public static org.eclipse.swt.graphics.Color silverButtonBackground -
silverToolbarColor
public static org.eclipse.swt.graphics.Color silverToolbarColor -
lightSilverToolbarcolor
public static org.eclipse.swt.graphics.Color lightSilverToolbarcolor -
lightBrownColor
public static org.eclipse.swt.graphics.Color[] lightBrownColor -
lightBrownColorReverse
public static org.eclipse.swt.graphics.Color[] lightBrownColorReverse -
darkBrownColor
public static org.eclipse.swt.graphics.Color[] darkBrownColor -
calendarBlueHeader
public static org.eclipse.swt.graphics.Color calendarBlueHeader -
calendarBlueBorder
public static org.eclipse.swt.graphics.Color calendarBlueBorder -
calendarOliveHeader
public static org.eclipse.swt.graphics.Color calendarOliveHeader -
calendarOliveBorder
public static org.eclipse.swt.graphics.Color calendarOliveBorder -
calendarSilverHeader
public static org.eclipse.swt.graphics.Color calendarSilverHeader -
calendarSilverBorder
public static org.eclipse.swt.graphics.Color calendarSilverBorder -
o2007blueTop
public static org.eclipse.swt.graphics.Color o2007blueTop -
o2007blueMid
public static org.eclipse.swt.graphics.Color o2007blueMid -
o2007blueBot
public static org.eclipse.swt.graphics.Color o2007blueBot -
o2007orangeSelectedTop
public static org.eclipse.swt.graphics.Color o2007orangeSelectedTop -
o2007orangeSelectedMid
public static org.eclipse.swt.graphics.Color o2007orangeSelectedMid -
o2007orangeSelectedBot
public static org.eclipse.swt.graphics.Color o2007orangeSelectedBot -
o2007orangeHoveredTop
public static org.eclipse.swt.graphics.Color o2007orangeHoveredTop -
o2007orangeHoveredMid
public static org.eclipse.swt.graphics.Color o2007orangeHoveredMid -
o2007orangeHoveredBot
public static org.eclipse.swt.graphics.Color o2007orangeHoveredBot -
o2007buttonBackgroundColor
public static org.eclipse.swt.graphics.Color o2007buttonBackgroundColor
-
-
Method Details
-
disposeAll
public static void disposeAll()Disposes all colors held in the cache and colors created when class is created.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()
- See Also:
disposeCachedColor()
-
disposeCachedColor
public static void disposeCachedColor()Disposes the cached colors only. -
getWhite
public static org.eclipse.swt.graphics.Color getWhite()Returns the color white R255, G255, B255- Returns:
- White color
-
getBlack
public static org.eclipse.swt.graphics.Color getBlack()Returns the color black R0, G0, B0- Returns:
- Black color
-
getColor
public 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.- Parameters:
rgb
- RGB colors- Returns:
- Color
-
getColor
public 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.- Parameters:
r
- Redg
- Greenb
- Blue- Returns:
- Color
-