Uses of Class
org.eclipse.swt.graphics.Color
Packages that use Color
Package
Description
SWT Accessibility.
SWT Custom widgets.
SWT graphics classes.
SWT internal classes
SWT widget public API classes.
-
Uses of Color in org.eclipse.swt.accessibility
Methods in org.eclipse.swt.accessibility that return ColorModifier and TypeMethodDescription(package private) static ColorAccessibleObject.colorFromString(Display display, String rgbString) -
Uses of Color in org.eclipse.swt.custom
Fields in org.eclipse.swt.custom declared as ColorModifier and TypeFieldDescription(package private) ColorCCombo.backgroundprivate ColorCLabel.background(package private) ColorSashForm.background(package private) ColorStyledText.background(package private) ColorStyledTextRenderer.LineInfo.background(package private) ColorTableCursor.background(package private) ColorTreeCursor.background(package private) ColorCTabFolderRenderer.fillColor(package private) ColorCCombo.foreground(package private) ColorCTabItem.foreground(package private) ColorSashForm.foreground(package private) ColorStyledText.foreground(package private) ColorTableCursor.foreground(package private) ColorTreeCursor.foregroundprivate Color[]CLabel.gradientColors(package private) Color[]CTabFolder.gradientColors(package private) ColorCTabFolderRenderer.lastBorderColorLineBackgroundEvent.lineBackgroundline background color(package private) ColorStyledTextEvent.lineBackground(package private) ColorStyledText.marginColor(package private) ColorCTabFolderRenderer.selectedInnerColor(package private) ColorCTabFolderRenderer.selectedOuterColor(package private) ColorCTabFolder.selectionBackground(package private) ColorStyledText.selectionBackground(package private) ColorViewForm.selectionBackground(package private) ColorCTabFolder.selectionForeground(package private) ColorCTabItem.selectionForeground(package private) ColorStyledText.selectionForeground(package private) Color[]CTabFolder.selectionGradientColors(package private) ColorCTabFolderRenderer.selectionHighlightGradientBegin(package private) Color[]CTabFolderRenderer.selectionHighlightGradientColorsCache(package private) ColorCTabFolderRenderer.tabAreaColorFields in org.eclipse.swt.custom with type parameters of type ColorMethods in org.eclipse.swt.custom that return ColorModifier 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.(package private) ColorCTabFolderRenderer.getFillColor()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.(package private) ColorStyledTextRenderer.getLineBackground(int index, Color defaultBackground) 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.Methods in org.eclipse.swt.custom with parameters of type ColorModifier and TypeMethodDescription(package private) voidprivate static voidHTMLWriter.appendStyle(StringBuilder buffer, String prefix, Color value, String postfix) private static StringHTMLWriter.colorToHex(Color color) (package private) voidCTabFolderRenderer.createSelectionHighlightGradientColors(Color start) (package private) voidCTabFolderRenderer.drawBackground(GC gc, int[] shape, int x, int y, int width, int height, Color defaultBackground, Image image, Color[] colors, int[] percents, boolean vertical) private voidAnimatedProgress.drawBevelRect(GC gc, int x, int y, int w, int h, Color topleft, Color bottomright) Deprecated.private voidCLabel.drawBevelRect(GC gc, int x, int y, int w, int h, Color topleft, Color bottomright) Draw a rectangle in the given colors.private voidStyledTextRenderer.drawLineBackground(StyledTextRenderer.LineDrawInfo lineInfo, int paintY, GC gc, Color widgetBackground) private voidStyledTextRenderer.drawLineForeground(StyledTextRenderer.LineDrawInfo lineInfo, int paintX, int paintY, GC gc, Color widgetForeground) (package private) intStyledTextRenderer.drawLines(int startLine, int endLine, int begX, int begY, int endY, GC gc, Color widgetBackground, Color widgetForeground) private intRTFWriter.getColorIndex(Color color, int defaultIndex) Returns the index of the specified color in the RTF color table.(package private) ColorStyledTextRenderer.getLineBackground(int index, Color defaultBackground) (package private) booleanCTabFolderRenderer.isSelectionHighlightColorsCacheHit(Color start) (package private) voidStyledText.Printing.printLine(int x, int y, GC gc, Color foreground, Color background, TextLayout layout, TextLayout printLayout, int index) voidCCombo.setBackground(Color color) voidCLabel.setBackground(Color color) voidCLabel.setBackground(Color[] colors, int[] percents) Specify a gradient of colours to be drawn in the background of the CLabel.voidCLabel.setBackground(Color[] colors, int[] percents, boolean vertical) Specify a gradient of colours to be drawn in the background of the CLabel.voidCTabFolder.setBackground(Color color) voidCTabFolder.setBackground(Color[] colors, int[] percents) Specify a gradient of colors to be drawn in the background of the unselected tabs.voidCTabFolder.setBackground(Color[] colors, int[] percents, boolean vertical) Specify a gradient of colors to be drawn in the background of the unselected tab.voidSashForm.setBackground(Color color) voidStyledText.setBackground(Color color) voidTableCursor.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.voidTreeCursor.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.voidCCombo.setForeground(Color color) voidCTabFolder.setForeground(Color color) voidCTabItem.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.voidSashForm.setForeground(Color color) voidStyledText.setForeground(Color color) voidTableCursor.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.voidTreeCursor.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.voidStyledText.setLineBackground(int startLine, int lineCount, Color background) Sets the background color of the specified lines.(package private) voidStyledTextRenderer.setLineBackground(int startLine, int count, Color background) voidStyledText.setMarginColor(Color color) Sets the color of the margins.voidCTabFolder.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.voidCTabFolder.setSelectionBackground(Color[] colors, int[] percents) Specify a gradient of colours to be draw in the background of the selected tab.voidCTabFolder.setSelectionBackground(Color[] colors, int[] percents, boolean vertical) Specify a gradient of colours to be draw in the background of the selected tab.voidStyledText.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.(package private) voidViewForm.setSelectionBackground(Color color) voidCTabFolder.setSelectionForeground(Color color) Set the foreground color of the selected tab.voidCTabItem.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.voidStyledText.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.(package private) voidCTabFolder.setSelectionHighlightGradientColor(Color start) (package private) voidCTabFolderRenderer.setSelectionHighlightGradientColor(Color start) (package private) StringHTMLWriter.writeLineStart(Color lineBackground, int indent, int verticalIndent, int alignment, boolean justify) (package private) StringRTFWriter.writeLineStart(Color lineBackground, int indent, int verticalIndent, int alignment, boolean justify) (package private) abstract StringStyledTextWriterBase.writeLineStart(Color lineBackground, int indent, int verticalIndent, int alignment, boolean justify) Invoked at the beginning of each line in the original widget.(package private) voidStyledTextWriterBase.writeStyledLine(String line, int lineOffset, int[] ranges, StyleRange[] styles, Color lineBackground, int indent, int verticalIndent, int alignment, boolean justify) Appends the specified line text to the output data.Constructors in org.eclipse.swt.custom with parameters of type ColorModifierConstructorDescriptionStyleRange(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
Fields in org.eclipse.swt.graphics declared as ColorModifier and TypeFieldDescriptionTextStyle.backgroundthe background of the styleTextStyle.borderColorthe border color of the style(package private) static final ColorDevice.COLOR_BLACK(package private) static final ColorDevice.COLOR_BLUE(package private) static final ColorDevice.COLOR_CYAN(package private) static final ColorDevice.COLOR_DARK_BLUE(package private) static final ColorDevice.COLOR_DARK_CYAN(package private) static final ColorDevice.COLOR_DARK_GRAY(package private) static final ColorDevice.COLOR_DARK_GREEN(package private) static final ColorDevice.COLOR_DARK_MAGENTA(package private) static final ColorDevice.COLOR_DARK_RED(package private) static final ColorDevice.COLOR_DARK_YELLOW(package private) static final ColorDevice.COLOR_GRAY(package private) static final ColorDevice.COLOR_GREEN(package private) static final ColorDevice.COLOR_MAGENTA(package private) static final ColorDevice.COLOR_RED(package private) static final ColorDevice.COLOR_TRANSPARENT(package private) static final ColorDevice.COLOR_WHITE(package private) static final ColorDevice.COLOR_YELLOWTextStyle.foregroundthe foreground of the styleTextStyle.strikeoutColorthe strikeout color of the styleTextStyle.underlineColorthe underline color of the styleMethods in org.eclipse.swt.graphics that return ColorModifier 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 ColorInvokes platform specific functionality to allocate a new color.static ColorInvokes platform specific functionality to allocate a new color.Methods in org.eclipse.swt.graphics with parameters of type ColorModifier and TypeMethodDescriptionvoidTextLayout.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.voidTextLayout.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.(package private) voidTextLayout.drawInPixels(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground) (package private) voidTextLayout.drawInPixels(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground, int flags) voidGC.setBackground(Color color) Sets the background color.voidImage.setBackground(Color color) Sets the color to which to map the transparent pixel.(package private) static voidGC.setCairoPatternColor(long pattern, int offset, Color c, int alpha) voidGC.setForeground(Color color) Sets the foreground color.Constructors in org.eclipse.swt.graphics with parameters of type ColorModifierConstructorDescriptionPattern(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.internal
Fields in org.eclipse.swt.internal declared as ColorModifier and TypeFieldDescriptionprivate final ColorTransparencyColorImageGcDrawer.transparencyColorConstructors in org.eclipse.swt.internal with parameters of type Color -
Uses of Color in org.eclipse.swt.widgets
Fields in org.eclipse.swt.widgets declared as ColorModifier and TypeFieldDescription(package private) ColorToolItem.background(package private) ColorDateTime.bg(package private) ColorLink.disabledColor(package private) ColorDateTime.fg(package private) ColorToolItem.foreground(package private) ColorTable.headerBackground(package private) ColorTree.headerBackground(package private) ColorTable.headerForeground(package private) ColorTree.headerForeground(package private) ColorLink.linkColorMethods in org.eclipse.swt.widgets that return ColorModifier and TypeMethodDescription(package private) ColorTableItem._getBackground()(package private) ColorTableItem._getBackground(int index) (package private) ColorTreeItem._getBackground()(package private) ColorTreeItem._getBackground(int index) (package private) ColorTableItem._getForeground()(package private) ColorTableItem._getForeground(int index) (package private) ColorTreeItem._getForeground()(package private) ColorTreeItem._getForeground(int index) Control.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.Methods in org.eclipse.swt.widgets with parameters of type ColorModifier and TypeMethodDescriptionprivate voidControl._setBackground(Color color) voidControl.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.voidCoolBar.setBackground(Color color) voidDateTime.setBackground(Color color) voidTableItem.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.voidTableItem.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.voidToolItem.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.voidTreeItem.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.voidTreeItem.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.voidControl.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.voidDateTime.setForeground(Color color) voidTableItem.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.voidTableItem.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.voidToolItem.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.voidTreeItem.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.voidTreeItem.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.voidTable.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.voidTree.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.voidTable.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.voidTree.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.voidLink.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.