Uses of Class
org.eclipse.swt.graphics.Color
Package
Description
Provides a generic debugger user interface that clients may customize via standard
workbench extension points.
Provides a set of interfaces and classes for rendering and annotating text in the debug console.
Provides support for dialogs.
Provides classes that help communicate proper content for fields in dialogs and wizards.
Provides support for managing resources such as SWT
fonts and images.
Provides a framework for creating and manipulating text documents.
Provides a content assist add-on for an
ITextViewer
.Provides support for detecting and displaying hyperlinks in
ISourceViewer
s.This package provides the quick assist assistant add-on for an
ISourceViewer
.Provides a framework for connecting document regions
with annotations and for displaying those.
Provides a framework for viewers, which are model-based
content adapters for SWT widgets.
Provides a general framework for creating and managing
windows.
SWT Custom widgets.
SWT graphics classes.
SWT Win32 OLE implementation classes.
SWT widget public API classes.
Application programming interfaces for interaction
with the Eclipse console.
Classes for standard dialogs, wizards, and preference
pages in the Eclipse Platform User Interface.
Forms-based controls for use in views, editors, and wizards.
Custom widgets and controls for forms-based parts.
Provides a workbench adapter for displaying workbench elements in the UI without
having to know the concrete type of the element, and various label providers for
workbench-specific objects like editors, views, and perspectives.
Classes for the creation of workbench parts that integrate
with the Eclipse Platform User Interface.
Application programming interfaces for interaction
with and extension of the Eclipse Platform User Interface.
Provides the standard Property Sheet view which displays
custom properties of the active workbench part's current selection.
-
Uses of Color in org.eclipse.compare.internal
Modifier and TypeMethodDescriptionvoid
MergeSourceViewer.setBackgroundColor
(Color color) void
MergeSourceViewer.setForegroundColor
(Color color) void
MergeSourceViewer.setLineBackground
(Position position, Color c) -
Uses of Color in org.eclipse.debug.ui
Modifier and TypeMethodDescriptionstatic Color
DebugUITools.getPreferenceColor
(String id) Returns the color associated with the specified preference identifier ornull
if none. -
Uses of Color in org.eclipse.debug.ui.console
-
Uses of Color in org.eclipse.e4.ui.css.swt.dom
Modifier and TypeMethodDescriptionstatic void
CTabFolderElement.setBackgroundOverriddenDuringRenderering
(Composite composite, Color background) void
IHeaderCustomizationElement.setHeaderBackgroundColor
(Color color) void
TableElement.setHeaderBackgroundColor
(Color color) void
TreeElement.setHeaderBackgroundColor
(Color color) void
IHeaderCustomizationElement.setHeaderColor
(Color color) void
TableElement.setHeaderColor
(Color color) void
TreeElement.setHeaderColor
(Color color) -
Uses of Color in org.eclipse.e4.ui.css.swt.helpers
Modifier and TypeMethodDescriptionstatic Color
CSSSWTColorHelper.getSWTColor
(CSSValue value, Display display) static Color
CSSSWTColorHelper.getSWTColor
(RGBColor rgbColor, Display display) static Color[]
CSSSWTColorHelper.getSWTColors
(Gradient grad, Display display, CSSEngine engine) Modifier and TypeMethodDescriptionstatic RGBColor
CSSSWTColorHelper.getRGBColor
(Color color) static void
CSSSWTColorHelper.setBackground
(Control control, Color newColor) Helper function to avoid setting colors unnecessarilystatic void
CSSSWTColorHelper.setForeground
(Control control, Color newColor) Helper function to avoid setting colors unnecessarilystatic void
CSSSWTColorHelper.setSelectionBackground
(CTabFolder folder, Color newColor) Helper function to avoid setting colors unnecessarilystatic void
CSSSWTColorHelper.setSelectionForeground
(CTabFolder folder, Color newColor) Helper function to avoid setting colors unnecessarily -
Uses of Color in org.eclipse.e4.ui.css.swt.properties.converters
-
Uses of Color in org.eclipse.e4.ui.dialogs.filteredtree
Modifier and TypeMethodDescriptionvoid
FilteredTree.setBackground
(Color background) Set the background for the widgets that support the filter text area. -
Uses of Color in org.eclipse.e4.ui.workbench.renderers.swt
Modifier and TypeMethodDescriptionvoid
CTabRendering.setInnerKeyline
(Color color) void
CTabRendering.setOuterKeyline
(Color color) void
CTabRendering.setSelectedTabFill
(Color color) void
CTabRendering.setSelectedTabFill
(Color[] colors, int[] percents) void
CTabRendering.setSelectedTabHighlight
(Color color) void
CTabRendering.setTabOutline
(Color color) void
CTabRendering.setUnselectedHotTabsColorBackground
(Color color) void
CTabRendering.setUnselectedTabsColor
(Color color) void
CTabRendering.setUnselectedTabsColor
(Color[] colors, int[] percents) -
Uses of Color in org.eclipse.help.ui.internal
Modifier and TypeMethodDescriptionHyperlinkHandler.getActiveBackground()
HyperlinkHandler.getActiveForeground()
HyperlinkHandler.getBackground()
HyperlinkHandler.getForeground()
Modifier and TypeMethodDescriptionvoid
HyperlinkHandler.setActiveBackground
(Color newActiveBackground) void
HyperlinkHandler.setActiveForeground
(Color newActiveForeground) void
HyperlinkHandler.setBackground
(Color newBackground) void
HyperlinkLabel.setBackground
(Color c) void
HyperlinkHandler.setForeground
(Color newForeground) void
HyperlinkLabel.setForeground
(Color c) -
Uses of Color in org.eclipse.jface.databinding.swt.typed
Modifier and TypeMethodDescriptionstatic <S extends Control>
IWidgetValueProperty<S,Color> WidgetProperties.background()
Returns a value property for observing the background color of aControl
.static <S extends Control>
IWidgetValueProperty<S,Color> WidgetProperties.foreground()
Returns a value property for observing the foreground color of aControl
. -
Uses of Color in org.eclipse.jface.dialogs
Modifier and TypeMethodDescriptionprotected Color
PopupDialog.getBackground()
Get the background color that should be used for this popup.protected Color
PopupDialog.getForeground()
Get the foreground color that should be used for this popup.Modifier and TypeMethodDescriptionprotected void
PopupDialog.applyBackgroundColor
(Color color, Control control) Set the specified background color for the specified control and all of its children.protected void
PopupDialog.applyForegroundColor
(Color color, Control control) Set the specified foreground color for the specified control and all of its children. -
Uses of Color in org.eclipse.jface.fieldassist
Modifier and TypeMethodDescriptionstatic Color
FieldAssistColors.getRequiredFieldBackgroundColor
(Control control) Deprecated.Return the color that should be used for the background of a control to indicate that the control is a required field and does not have content. -
Uses of Color in org.eclipse.jface.notifications
-
Uses of Color in org.eclipse.jface.resource
Modifier and TypeMethodDescriptionabstract Color
ColorDescriptor.createColor
(Device device) Returns the Color described by this descriptor.final Color
ResourceManager.createColor
(ColorDescriptor descriptor) Deprecated.final Color
ResourceManager.createColor
(RGB descriptor) Allocates a color, given its RGB value.Returns thecolor
associated with the given symbolic color name, ornull
if no such definition exists.static Color
JFaceColors.getActiveHyperlinkText
(Display display) static Color
JFaceColors.getBannerBackground
(Display display) static Color
JFaceColors.getBannerForeground
(Display display) static Color
JFaceColors.getErrorBackground
(Display display) static Color
JFaceColors.getErrorBorder
(Display display) static Color
JFaceColors.getErrorText
(Display display) static Color
JFaceColors.getHyperlinkText
(Display display) static Color
JFaceColors.getInformationViewerBackgroundColor
(Display display) Background color intended for widgets that display text.static Color
JFaceColors.getInformationViewerForegroundColor
(Display display) Foreground color intended for widgets that display text.Modifier and TypeMethodDescriptionstatic ColorDescriptor
ColorDescriptor.createFrom
(Color toCreate) Creates a ColorDescriptor from an existing color.static ColorDescriptor
ColorDescriptor.createFrom
(Color toCreate, Device originalDevice) Deprecated.void
ColorDescriptor.destroyColor
(Color toDestroy) Deprecated.Colors do not need disposal anymorestatic void
Set the foreground and background colors of the control to the specified values. -
Uses of Color in org.eclipse.jface.text
Modifier and TypeMethodDescriptionTextAttribute.getBackground()
Returns the attribute's background color.TextAttribute.getForeground()
Returns the attribute's foreground color.Modifier and TypeMethodDescriptionvoid
AbstractInformationControl.setBackgroundColor
(Color background) void
DefaultInformationControl.setBackgroundColor
(Color background) void
IInformationControl.setBackgroundColor
(Color background) Sets the background color of this information control.void
AbstractInformationControl.setForegroundColor
(Color foreground) void
DefaultInformationControl.setForegroundColor
(Color foreground) void
IInformationControl.setForegroundColor
(Color foreground) Sets the foreground color of this information control.void
CursorLinePainter.setHighlightColor
(Color highlightColor) Sets the color in which to draw the background of the cursor line.void
MarginPainter.setMarginRulerColor
(Color color) Sets the color of the margin line.void
IFindReplaceTargetExtension.setScopeHighlightColor
(Color color) Sets the scope highlight colorvoid
ITextViewer.setTextColor
(Color color) Applies the given color as text foreground color to this viewer's selection.void
ITextViewer.setTextColor
(Color color, int offset, int length, boolean controlRedraw) Applies the given color as text foreground color to the specified section of this viewer.void
TextViewer.setTextColor
(Color color) void
TextViewer.setTextColor
(Color color, int start, int length, boolean controlRedraw) ModifierConstructorDescriptionTextAttribute
(Color foreground) Creates a text attribute for the given foreground color, no background color and with the SWT normal style.TextAttribute
(Color foreground, Color background, int style) Creates a text attribute with the given colors and style.TextAttribute
(Color foreground, Color background, int style, Font font) Creates a text attribute with the given colors and style. -
Uses of Color in org.eclipse.jface.text.codemining
Modifier and TypeMethodDescriptionAbstractCodeMining.draw
(GC gc, StyledText textWidget, Color color, int x, int y) Draw theAbstractCodeMining.getLabel()
of mining with gray color.ICodeMining.draw
(GC gc, StyledText textWidget, Color color, int x, int y) Draw the code mining. -
Uses of Color in org.eclipse.jface.text.contentassist
Modifier and TypeMethodDescriptionvoid
ContentAssistant.setContextInformationPopupBackground
(Color background) Sets the context information popup's background color.void
ContentAssistant.setContextInformationPopupForeground
(Color foreground) Sets the context information popup's foreground color.void
ContentAssistant.setContextSelectorBackground
(Color background) Sets the context selector's background color.void
ContentAssistant.setContextSelectorForeground
(Color foreground) Sets the context selector's foreground color.void
ContentAssistant.setProposalSelectorBackground
(Color background) Sets the proposal selector's background color.void
ContentAssistant.setProposalSelectorForeground
(Color foreground) Sets the proposal's foreground color. -
Uses of Color in org.eclipse.jface.text.hyperlink
Modifier and TypeMethodDescriptionvoid
Sets the hyperlink foreground color.ModifierConstructorDescriptionDefaultHyperlinkPresenter
(Color color) Creates a new default hyperlink presenter. -
Uses of Color in org.eclipse.jface.text.quickassist
Modifier and TypeMethodDescriptionvoid
IQuickAssistAssistant.setProposalSelectorBackground
(Color background) Sets the proposal selector's background color.void
QuickAssistAssistant.setProposalSelectorBackground
(Color background) void
IQuickAssistAssistant.setProposalSelectorForeground
(Color foreground) Sets the proposal's foreground color.void
QuickAssistAssistant.setProposalSelectorForeground
(Color foreground) -
Uses of Color in org.eclipse.jface.text.source
Modifier and TypeMethodDescriptionprotected Color
AbstractRulerColumn.computeBackground
(int line) Returns the background color drawn for a certain line byAbstractRulerColumn.paintLine(GC, int, int, int, int)
.protected Color
AbstractRulerColumn.computeForeground
(int line) Returns the foreground color drawn for a certain line byAbstractRulerColumn.paintLine(GC, int, int, int, int)
.protected Color
LineNumberRulerColumn.getBackground
(Display display) Returns the System background color for list widgets.Returns the color object for the value represented by the givenRGB
object.protected final Color
AbstractRulerColumn.getDefaultBackground()
Returns the background color.protected Color
LineNumberRulerColumn.getForeground()
Returns the foreground color being used to print the line numbers.Modifier and TypeMethodDescriptionvoid
AnnotationPainter.BoxStrategy.applyTextStyle
(StyleRange styleRange, Color annotationColor) void
AnnotationPainter.HighlightingStrategy.applyTextStyle
(StyleRange styleRange, Color annotationColor) void
AnnotationPainter.ITextStyleStrategy.applyTextStyle
(StyleRange styleRange, Color annotationColor) Applies a text style on the givenStyleRange
.void
AnnotationPainter.UnderlineStrategy.applyTextStyle
(StyleRange styleRange, Color annotationColor) void
AnnotationPainter.IDrawingStrategy.draw
(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color) Draws a decoration for an annotation onto the specified GC at the given text range.void
AnnotationPainter.NullStrategy.draw
(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color) void
AnnotationPainter.SquigglesStrategy.draw
(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color) Deprecated.void
ChangeRulerColumn.setAddedColor
(Color addedColor) void
IChangeRulerColumn.setAddedColor
(Color addedColor) Sets the background color for added lines.void
LineNumberChangeRulerColumn.setAddedColor
(Color addedColor) void
AnnotationPainter.setAnnotationTypeColor
(Object annotationType, Color color) Sets the color in which the squiggly for the given annotation type should be drawn.void
IOverviewRuler.setAnnotationTypeColor
(Object annotationType, Color color) Sets the color for the given annotation type in this overview ruler.void
OverviewRuler.setAnnotationTypeColor
(Object annotationType, Color color) void
ChangeRulerColumn.setBackground
(Color background) void
IChangeRulerColumn.setBackground
(Color backgroundColor) Sets the background color for normal lines.void
LineNumberChangeRulerColumn.setBackground
(Color background) void
LineNumberRulerColumn.setBackground
(Color background) Sets the background color of this column.void
ChangeRulerColumn.setChangedColor
(Color changedColor) void
IChangeRulerColumn.setChangedColor
(Color changedColor) Sets the background color for changed lines.void
LineNumberChangeRulerColumn.setChangedColor
(Color changedColor) void
Sets the color in which to highlight the match character.protected final void
AbstractRulerColumn.setDefaultBackground
(Color background) Sets the default background color for this column.void
ChangeRulerColumn.setDeletedColor
(Color deletedColor) void
IChangeRulerColumn.setDeletedColor
(Color deletedColor) Sets the color for the deleted lines indicator.void
LineNumberChangeRulerColumn.setDeletedColor
(Color deletedColor) void
LineNumberRulerColumn.setForeground
(Color foreground) Sets the foreground color of this column. -
Uses of Color in org.eclipse.jface.text.source.inlined
Modifier and TypeMethodDescriptionvoid
AbstractInlinedAnnotation.draw
(GC gc, StyledText textWidget, int widgetOffset, int length, Color color, int x, int y) Draw the inlined annotation.final void
LineContentAnnotation.draw
(GC gc, StyledText textWidget, int offset, int length, Color color, int x, int y) Draw the inlined annotation.protected int
LineContentAnnotation.drawAndComputeWidth
(GC gc, StyledText textWidget, int offset, int length, Color color, int x, int y) Draw the inlined annotation.void
Set the color to use to draw the inlined annotations. -
Uses of Color in org.eclipse.jface.viewers
Modifier and TypeMethodDescriptionIColorDecorator.decorateBackground
(Object element) Return the background Color for element ornull
if there is not one.IColorDecorator.decorateForeground
(Object element) Return the foreground Color for element ornull
if there is not one.ColumnLabelProvider.getBackground
(Object element) DecoratingLabelProvider.getBackground
(Object element) DecoratingStyledCellLabelProvider.getBackground
(Object element) DelegatingStyledCellLabelProvider.getBackground
(Object element) Provides a background color for the given element.IColorProvider.getBackground
(Object element) Provides a background color for the given element.ITableColorProvider.getBackground
(Object element, int columnIndex) Provides a background color for the given element at the specified indexTableViewerRow.getBackground
(int columnIndex) TreeViewerRow.getBackground
(int columnIndex) ViewerCell.getBackground()
Gets the background color of the cell.ViewerLabel.getBackground()
Get the background Color.abstract Color
ViewerRow.getBackground
(int columnIndex) Get the background at the columnIndex,ColumnLabelProvider.getForeground
(Object element) DecoratingLabelProvider.getForeground
(Object element) DecoratingStyledCellLabelProvider.getForeground
(Object element) DelegatingStyledCellLabelProvider.getForeground
(Object element) Provides a foreground color for the given element.IColorProvider.getForeground
(Object element) Provides a foreground color for the given element.ITableColorProvider.getForeground
(Object element, int columnIndex) Provides a foreground color for the given element.TableViewerRow.getForeground
(int columnIndex) TreeViewerRow.getForeground
(int columnIndex) ViewerCell.getForeground()
Gets the foreground color of the cell.ViewerLabel.getForeground()
Get the foreground Color.abstract Color
ViewerRow.getForeground
(int columnIndex) Get the foreground at the columnIndex.protected Color
FocusCellOwnerDrawHighlighter.getSelectedCellBackgroundColor
(ViewerCell cell) The color to use when rendering the background of the selected cell when the control has the input focusprotected Color
FocusCellOwnerDrawHighlighter.getSelectedCellBackgroundColorNoFocus
(ViewerCell cell) The color to use when rendering the background of the selected cell when the control has no input focusprotected Color
FocusCellOwnerDrawHighlighter.getSelectedCellForegroundColor
(ViewerCell cell) The color to use when rendering the foreground (=text) of the selected cell when the control has the input focusprotected Color
FocusCellOwnerDrawHighlighter.getSelectedCellForegroundColorNoFocus
(ViewerCell cell) The color to use when rendering the foreground (=text) of the selected cell when the control has no input focusViewerLabel.getTooltipBackgroundColor()
Return the tool tip background color.CellLabelProvider.getToolTipBackgroundColor
(Object object) Return the background color used for the tool tipViewerLabel.getTooltipForegroundColor()
Return the foregroundColor
.CellLabelProvider.getToolTipForegroundColor
(Object object) The foreground color used to display the the text in the tool tipModifier and TypeMethodDescriptionvoid
StructuredViewer.ColorAndFontCollector.setBackground
(Color background) Set the background color.void
TableViewerRow.setBackground
(int columnIndex, Color color) void
TreeViewerRow.setBackground
(int columnIndex, Color color) void
ViewerCell.setBackground
(Color background) Set the background color of the cell.void
ViewerLabel.setBackground
(Color background) Set the background Color.abstract void
ViewerRow.setBackground
(int columnIndex, Color color) Set the background at the columnIndex.void
IDecoration.setBackgroundColor
(Color color) Set the background color for this decoration.void
StructuredViewer.ColorAndFontCollector.setForeground
(Color foreground) Set the foreground color.void
TableViewerRow.setForeground
(int columnIndex, Color color) void
TreeViewerRow.setForeground
(int columnIndex, Color color) void
ViewerCell.setForeground
(Color foreground) Set the foreground color of the cell.void
ViewerLabel.setForeground
(Color foreground) Set the foreground Color.abstract void
ViewerRow.setForeground
(int columnIndex, Color color) Set the foreground at the columnIndex.void
IDecoration.setForegroundColor
(Color color) Set the foreground color for this decoration.void
ViewerLabel.setTooltipBackgroundColor
(Color tooltipBackgroundColor) Set the backgroundColor
for tool tip.void
ViewerLabel.setTooltipForegroundColor
(Color tooltipForegroundColor) Set the foregroundColor
for tool tip. -
Uses of Color in org.eclipse.jface.widgets
Modifier and TypeMethodDescriptionAbstractControlFactory.background
(Color color) Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.AbstractControlFactory.foreground
(Color color) Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null. -
Uses of Color in org.eclipse.jface.window
Modifier and TypeMethodDescriptionprotected Color
DefaultToolTip.getBackgroundColor
(Event event) protected Color
DefaultToolTip.getForegroundColor
(Event event) Modifier and TypeMethodDescriptionvoid
DefaultToolTip.setBackgroundColor
(Color backgroundColor) void
DefaultToolTip.setForegroundColor
(Color foregroundColor) -
Uses of Color in org.eclipse.swt.custom
Modifier and TypeMethodDescriptionStyledText.getBackground()
TableCursor.getBackground()
Returns the background color that the receiver will use to draw.TreeCursor.getBackground()
Returns the background color that the receiver will use to draw.CTabItem.getForeground()
Returns the foreground color that the receiver will use to paint textual information.StyledText.getForeground()
TableCursor.getForeground()
Returns the foreground color that the receiver will use to draw.TreeCursor.getForeground()
Returns the foreground color that the receiver will use to draw.StyledText.getLineBackground
(int index) Returns the background color of the line at the given index.StyledText.getMarginColor()
Returns the color of the margins.CTabFolder.getSelectionBackground()
Returns the receiver's selection background color.StyledText.getSelectionBackground()
Returns the receiver's selection background color.CTabFolder.getSelectionForeground()
Returns the receiver's selection foreground color.CTabItem.getSelectionForeground()
Returns the selection foreground color that the receiver will use to paint textual information.StyledText.getSelectionForeground()
Returns the receiver's selection foreground color.Modifier and TypeMethodDescriptionvoid
CCombo.setBackground
(Color color) void
CLabel.setBackground
(Color color) void
CLabel.setBackground
(Color[] colors, int[] percents) Specify a gradient of colours to be drawn in the background of the CLabel.void
CLabel.setBackground
(Color[] colors, int[] percents, boolean vertical) Specify a gradient of colours to be drawn in the background of the CLabel.void
CTabFolder.setBackground
(Color color) void
CTabFolder.setBackground
(Color[] colors, int[] percents) Specify a gradient of colors to be drawn in the background of the unselected tabs.void
CTabFolder.setBackground
(Color[] colors, int[] percents, boolean vertical) Specify a gradient of colors to be drawn in the background of the unselected tab.void
SashForm.setBackground
(Color color) void
StyledText.setBackground
(Color color) void
TableCursor.setBackground
(Color color) Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.void
TreeCursor.setBackground
(Color color) Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.void
CCombo.setForeground
(Color color) void
CTabFolder.setForeground
(Color color) void
CTabItem.setForeground
(Color color) Sets the foreground color that the receiver will use to paint textual information for this item to the color specified by the argument, or to the default foreground color for that kind of control if the argument is null.void
SashForm.setForeground
(Color color) void
StyledText.setForeground
(Color color) void
TableCursor.setForeground
(Color color) Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.void
TreeCursor.setForeground
(Color color) Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.void
StyledText.setLineBackground
(int startLine, int lineCount, Color background) Sets the background color of the specified lines.void
StyledText.setMarginColor
(Color color) Sets the color of the margins.void
CTabFolder.setSelectionBackground
(Color color) Sets the receiver's selection background color to the color specified by the argument, or to the default system color for the control if the argument is null.void
CTabFolder.setSelectionBackground
(Color[] colors, int[] percents) Specify a gradient of colours to be draw in the background of the selected tab.void
CTabFolder.setSelectionBackground
(Color[] colors, int[] percents, boolean vertical) Specify a gradient of colours to be draw in the background of the selected tab.void
StyledText.setSelectionBackground
(Color color) Sets the receiver's selection background color to the color specified by the argument, or to the default system color for the control if the argument is null.void
CTabFolder.setSelectionForeground
(Color color) Set the foreground color of the selected tab.void
CTabItem.setSelectionForeground
(Color color) Sets the selection foreground color that the receiver will use to paint textual information for this item to the color specified by the argument, or to the default selection foreground color for that kind of control if the argument is null.void
StyledText.setSelectionForeground
(Color color) Sets the receiver's selection foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.ModifierConstructorDescriptionStyleRange
(int start, int length, Color foreground, Color background) Create a new style range.StyleRange
(int start, int length, Color foreground, Color background, int fontStyle) Create a new style range. -
Uses of Color in org.eclipse.swt.graphics
Modifier and TypeFieldDescriptionTextStyle.background
the background of the styleTextStyle.borderColor
the border color of the styleTextStyle.foreground
the foreground of the styleTextStyle.strikeoutColor
the strikeout color of the styleTextStyle.underlineColor
the underline color of the styleModifier and TypeMethodDescriptionGC.getBackground()
Returns the background color.Image.getBackground()
Returns the color to which to map the transparent pixel, or null if the receiver has no transparent pixel.GC.getForeground()
Returns the receiver's foreground color.Device.getSystemColor
(int id) Returns the matching standard color for the given constant, which should be one of the color constants specified in classSWT
.static Color
Invokes platform specific functionality to allocate a new color.static Color
Invokes platform specific functionality to allocate a new color.Modifier and TypeMethodDescriptionvoid
TextLayout.draw
(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground) Draws the receiver's text using the specified GC at the specified point.void
TextLayout.draw
(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground, int flags) Draws the receiver's text using the specified GC at the specified point.void
GC.setBackground
(Color color) Sets the background color.void
Image.setBackground
(Color color) Sets the color to which to map the transparent pixel.void
GC.setForeground
(Color color) Sets the foreground color.ModifierConstructorDescriptionPattern
(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) Constructs a new Pattern that represents a linear, two color gradient.Constructs a new Pattern that represents a linear, two color gradient.Create a new text style with the specified font, foreground and background. -
Uses of Color in org.eclipse.swt.ole.win32
Modifier and TypeMethodDescriptionvoid
OleControlSite.setBackground
(Color color) void
OleControlSite.setForeground
(Color color) -
Uses of Color in org.eclipse.swt.widgets
Modifier and TypeMethodDescriptionControl.getBackground()
Returns the receiver's background color.TableItem.getBackground()
Returns the receiver's background color.TableItem.getBackground
(int index) Returns the background color at the given column index in the receiver.ToolItem.getBackground()
Returns the receiver's background color.TreeItem.getBackground()
Returns the receiver's background color.TreeItem.getBackground
(int index) Returns the background color at the given column index in the receiver.Control.getForeground()
Returns the foreground color that the receiver will use to draw.TableItem.getForeground()
Returns the foreground color that the receiver will use to draw.TableItem.getForeground
(int index) Returns the foreground color at the given column index in the receiver.ToolItem.getForeground()
Returns the foreground color that the receiver will use to draw.TreeItem.getForeground()
Returns the foreground color that the receiver will use to draw.TreeItem.getForeground
(int index) Returns the foreground color at the given column index in the receiver.Table.getHeaderBackground()
Returns the header background color.Tree.getHeaderBackground()
Returns the header background color.Table.getHeaderForeground()
Returns the header foreground color.Tree.getHeaderForeground()
Returns the header foreground color.Link.getLinkForeground()
Returns the link foreground color.Display.getSystemColor
(int id) Returns the matching standard color for the given constant, which should be one of the color constants specified in classSWT
.Modifier and TypeMethodDescriptionvoid
Button.setBackground
(Color color) Sets the button's background color to the color specified by the argument, or to the default system color for the control if the argument is null.void
Control.setBackground
(Color color) Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.void
TableItem.setBackground
(int index, Color color) Sets the background color at the given column index in the receiver to the color specified by the argument, or to the default system color for the item if the argument is null.void
TableItem.setBackground
(Color color) Sets the receiver's background color to the color specified by the argument, or to the default system color for the item if the argument is null.void
ToolItem.setBackground
(Color color) Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.void
TreeItem.setBackground
(int index, Color color) Sets the background color at the given column index in the receiver to the color specified by the argument, or to the default system color for the item if the argument is null.void
TreeItem.setBackground
(Color color) Sets the receiver's background color to the color specified by the argument, or to the default system color for the item if the argument is null.void
Control.setForeground
(Color color) Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.void
TableItem.setForeground
(int index, Color color) Sets the foreground color at the given column index in the receiver to the color specified by the argument, or to the default system color for the item if the argument is null.void
TableItem.setForeground
(Color color) Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the item if the argument is null.void
ToolItem.setForeground
(Color color) Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.void
TreeItem.setForeground
(int index, Color color) Sets the foreground color at the given column index in the receiver to the color specified by the argument, or to the default system color for the item if the argument is null.void
TreeItem.setForeground
(Color color) Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the item if the argument is null.void
Table.setHeaderBackground
(Color color) Sets the header background color to the color specified by the argument, or to the default system color if the argument is null.void
Tree.setHeaderBackground
(Color color) Sets the header background color to the color specified by the argument, or to the default system color if the argument is null.void
Table.setHeaderForeground
(Color color) Sets the header foreground color to the color specified by the argument, or to the default system color if the argument is null.void
Tree.setHeaderForeground
(Color color) Sets the header foreground color to the color specified by the argument, or to the default system color if the argument is null.void
Link.setLinkForeground
(Color color) Sets the link foreground color to the color specified by the argument, or to the default system color for the link if the argument is null. -
Uses of Color in org.eclipse.ui.console
Modifier and TypeMethodDescriptionTextConsole.getBackground()
Returns the background color to use for this console ornull
for the default background color.IOConsoleInputStream.getColor()
Returns the color used to decorate input in the associated consoleIOConsoleOutputStream.getColor()
Returns the color of this stream, ornull
if default.Modifier and TypeMethodDescriptionvoid
TextConsole.setBackgrond
(Color background) Deprecated.use setBackground(Color) insteadvoid
TextConsole.setBackground
(Color background) Sets the background color used by this console.void
Sets the color to used to decorate input in the associated console.void
Sets the color of this stream. -
Uses of Color in org.eclipse.ui.dialogs
Modifier and TypeMethodDescriptionvoid
FilteredTree.setBackground
(Color background) Set the background for the widgets that support the filter text area. -
Uses of Color in org.eclipse.ui.forms
Modifier and TypeFieldDescriptionprotected Color
FormColors.background
protected Color
FormColors.border
protected Color
FormColors.foreground
Modifier and TypeMethodDescriptionFormColors.createColor
(String key, int r, int g, int b) Creates the color for the specified key using the provided RGB values.FormColors.createColor
(String key, RGB rgb) Creates the color for the specified key using the provided RGB object.HyperlinkSettings.getActiveBackground()
Returns the background to use for the active hyperlink.HyperlinkSettings.getActiveForeground()
Returns the foreground to use for the active hyperlink.FormColors.getBackground()
Returns the current background color.HyperlinkSettings.getBackground()
Returns the background to use for the normal hyperlink.FormColors.getBorderColor()
Returns the computed border color.Returns the color object for the provided key or null if not in the registry.FormColors.getForeground()
Returns the current foreground color.HyperlinkSettings.getForeground()
Returns the foreground to use for the normal hyperlink.FormColors.getInactiveBackground()
Creates a color that can be used for areas of the form that is inactive.Modifier and TypeMethodDescriptionvoid
HyperlinkGroup.setActiveBackground
(Color newActiveBackground) Sets the new active hyperlink background for all the links.void
HyperlinkSettings.setActiveBackground
(Color newActiveBackground) Sets the new active hyperlink background for all the links.void
HyperlinkGroup.setActiveForeground
(Color newActiveForeground) Sets the new active hyperlink foreground for all the links.void
HyperlinkSettings.setActiveForeground
(Color newActiveForeground) Sets the new active hyperlink foreground for all the links.void
FormColors.setBackground
(Color bg) Sets the background color.void
HyperlinkGroup.setBackground
(Color bg) Sets the group background and also sets the background of all the currently managed links.void
HyperlinkSettings.setBackground
(Color newBackground) Sets the new hyperlink background for all the links.void
FormColors.setForeground
(Color fg) Sets the foreground color.void
HyperlinkGroup.setForeground
(Color fg) Sets the group foreground and also sets the background of all the currently managed links.void
HyperlinkSettings.setForeground
(Color newForeground) Sets the new hyperlink foreground for all the links. -
Uses of Color in org.eclipse.ui.forms.widgets
Modifier and TypeMethodDescriptionToggleHyperlink.geHoverDecorationColor()
Deprecated.usegetHoverDecorationColor
ToggleHyperlink.getDecorationColor()
Returns the color of the decoration.Form.getHeadColor
(String key) Returns the color that is currently use to paint an aspect of the form heading, ornull
if not defined.ToggleHyperlink.getHoverDecorationColor()
Returns the hover color of the decoration.Form.getSeparatorColor()
Deprecated.usegetHeadColor(IFormColors.H_BOTTOM_KEYLINE2)
Section.getTitleBarBackground()
Returns the title bar background when TITLE_BAR style is used.Section.getTitleBarBorderColor()
Returns the title bar border color when TITLE_BAR style is used.ExpandableComposite.getTitleBarForeground()
Returns the title bar foreground when TITLE_BAR style is used.Section.getTitleBarGradientBackground()
Returns the title bar gradient background color when TITLE_BAR style is used.Modifier and TypeMethodDescriptionvoid
ExpandableComposite.setActiveToggleColor
(Color c) Sets the active color of the toggle control (when the mouse enters the toggle area).void
ExpandableComposite.setBackground
(Color bg) Sets the background of all the custom controls in the expandable.void
Form.setBackground
(Color bg) Sets the background color of the form.void
FormToolkit.setBackground
(Color bg) Sets the background color for the entire toolkit.void
ScrolledForm.setBackground
(Color bg) Sets the background color of the form.void
ScrolledFormText.setBackground
(Color bg) Sets the background color of the scrolled form text.void
Section.setBackground
(Color bg) Sets the background of the section.void
SharedScrolledComposite.setBackground
(Color bg) Sets the background of the control and its content.void
Registers the color referenced by the provided key.void
ToggleHyperlink.setDecorationColor
(Color decorationColor) Sets the color of the decoration.void
ExpandableComposite.setForeground
(Color fg) Sets the foreground of all the custom controls in the expandable.void
Form.setForeground
(Color fg) Sets the foreground color of the form.void
ScrolledForm.setForeground
(Color fg) Sets the foreground color of the form.void
ScrolledFormText.setForeground
(Color fg) Sets the foreground color of the scrolled form text.void
Section.setForeground
(Color fg) Sets the foreground of the section and the description control if there is one.void
SharedScrolledComposite.setForeground
(Color fg) Sets the foreground of the control and its content.void
Form.setHeadColor
(String key, Color color) Sets the color used to paint an aspect of the form heading.void
ToggleHyperlink.setHoverDecorationColor
(Color hoverColor) Sets the hover color of decoration.void
Form.setSeparatorColor
(Color separatorColor) Deprecated.usesetHeadColor(IFormColors.H_BOTTOM_KEYLINE2, separatorColor)
void
Form.setTextBackground
(Color[] gradientColors, int[] percents, boolean vertical) Sets the background colors to be painted behind the title text in a gradient.void
Section.setTitleBarBackground
(Color color) Sets the color of the title bar background when TITLE_BAR style is used.void
Section.setTitleBarBorderColor
(Color color) Sets the color of the title bar border when TITLE_BAR style is used.void
ExpandableComposite.setTitleBarForeground
(Color color) Sets the color of the title bar foreground when TITLE_BAR style is used.void
Section.setTitleBarGradientBackground
(Color color) Sets the color of the title bar gradient background when TITLE_BAR style is used.void
ExpandableComposite.setToggleColor
(Color c) Sets the color of the toggle control. -
Uses of Color in org.eclipse.ui.internal
Modifier and TypeMethodDescriptionprotected Color
FilteredTableBaseHandler.getBackground()
protected Color
FilteredTableBaseHandler.getForeground()
HeapStatus.getForeground()
Modifier and TypeMethodDescriptionvoid
HeapStatus.setBackground
(Color color) void
HeapStatus.setForeground
(Color color) -
Uses of Color in org.eclipse.ui.model
Modifier and TypeMethodDescriptionWorkbenchLabelProvider.getBackground
(Object element) WorkbenchLabelProvider.getForeground
(Object element) -
Uses of Color in org.eclipse.ui.part
-
Uses of Color in org.eclipse.ui.splash
Modifier and TypeMethodDescriptionprotected Color
BasicSplashHandler.getForeground()
Get the foreground text color. -
Uses of Color in org.eclipse.ui.views.properties
Modifier and TypeMethodDescriptionprotected Color
PropertySheetEntry.getBackground()
Returns the background color for the entry.protected Color
PropertySheetEntry.getForeground()
Returns the foreground color for the entry.
ResourceManager.create(DeviceResourceDescriptor)
instead