public class JFaceColors extends Object
Constructor and Description |
---|
JFaceColors() |
Modifier and Type | Method and Description |
---|---|
static void |
clearColor(String colorName)
Deprecated.
JFaceColors no longer maintains a cache of colors. This job
is now handled by the ColorRegistry.
|
static void |
disposeColors()
Deprecated.
JFaceColors no longer maintains a cache of colors. This job
is now handled by the ColorRegistry.
|
static Color |
getActiveHyperlinkText(Display display) |
static Color |
getBannerBackground(Display display) |
static Color |
getBannerForeground(Display display) |
static Color |
getErrorBackground(Display display) |
static Color |
getErrorBorder(Display display) |
static Color |
getErrorText(Display display) |
static Color |
getHyperlinkText(Display display) |
static void |
setColors(Control control,
Color foreground,
Color background)
Set the foreground and background colors of the
control to the specified values.
|
public static Color getBannerBackground(Display display)
display
- the display the color is fromSWT.COLOR_LIST_BACKGROUND
,
Display.getSystemColor(int)
public static Color getBannerForeground(Display display)
display
- the display the color is fromSWT.COLOR_LIST_FOREGROUND
,
Display.getSystemColor(int)
public static Color getErrorBackground(Display display)
display
- the display the color is fromSWT.COLOR_WIDGET_BACKGROUND
,
Display.getSystemColor(int)
public static Color getErrorBorder(Display display)
display
- the display the color is fromSWT.COLOR_WIDGET_DARK_SHADOW
,
Display.getSystemColor(int)
public static Color getErrorText(Display display)
display
- the display the color is fromColorRegistry.get(String)
,
JFacePreferences.ERROR_COLOR
public static Color getHyperlinkText(Display display)
display
- the display the color is fromColorRegistry.get(String)
,
JFacePreferences.HYPERLINK_COLOR
public static Color getActiveHyperlinkText(Display display)
display
- the display the color is fromColorRegistry.get(String)
,
JFacePreferences.ACTIVE_HYPERLINK_COLOR
@Deprecated public static void clearColor(String colorName)
colorName
- name of the color@Deprecated public static void disposeColors()
public static void setColors(Control control, Color foreground, Color background)
control
- the control the foreground and/or background color should be setforeground
- Color the foreground color (maybe null
)background
- Color the background color (maybe null
)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.