|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.resource.JFaceColors
JFaceColors is the class that stores references to all of the colors used by JFace.
| Constructor Summary | |
|---|---|
JFaceColors()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JFaceColors()
| Method Detail |
public static Color getBannerBackground(Display display)
display - the display the color is from
SWT.COLOR_LIST_BACKGROUND,
Display.getSystemColor(int)public static Color getBannerForeground(Display display)
display - the display the color is from
SWT.COLOR_LIST_FOREGROUND,
Display.getSystemColor(int)public static Color getErrorBackground(Display display)
display - the display the color is from
SWT.COLOR_WIDGET_BACKGROUND,
Display.getSystemColor(int)public static Color getErrorBorder(Display display)
display - the display the color is from
SWT.COLOR_WIDGET_DARK_SHADOW,
Display.getSystemColor(int)public static Color getErrorText(Display display)
display - the display the color is from
ColorRegistry.get(String),
JFacePreferences.ERROR_COLORpublic static Color getHyperlinkText(Display display)
display - the display the color is from
ColorRegistry.get(String),
JFacePreferences.HYPERLINK_COLORpublic static Color getActiveHyperlinkText(Display display)
display - the display the color is from
ColorRegistry.get(String),
JFacePreferences.ACTIVE_HYPERLINK_COLORpublic static void clearColor(String colorName)
colorName - name of the colorpublic 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)
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.