Uses of Class
org.eclipse.swt.graphics.Color
-
Packages that use Color Package Description org.eclipse.swt.custom org.eclipse.swt.graphics org.eclipse.swt.widgets -
-
Uses of Color in org.eclipse.swt.custom
Fields in org.eclipse.swt.custom declared as Color Modifier and Type Field Description ColorLineBackgroundEvent. lineBackgroundline background colorMethods in org.eclipse.swt.custom that return Color Modifier and Type Method Description ColorStyledText. getBackground()ColorTableCursor. getBackground()Returns the background color that the receiver will use to draw.ColorTreeCursor. getBackground()Returns the background color that the receiver will use to draw.ColorCTabItem. getForeground()Returns the foreground color that the receiver will use to paint textual information.ColorStyledText. getForeground()ColorTableCursor. getForeground()Returns the foreground color that the receiver will use to draw.ColorTreeCursor. getForeground()Returns the foreground color that the receiver will use to draw.ColorStyledText. getLineBackground(int index)Returns the background color of the line at the given index.ColorStyledText. getMarginColor()Returns the color of the margins.ColorCTabFolder. getSelectionBackground()Returns the receiver's selection background color.ColorStyledText. getSelectionBackground()Returns the receiver's selection background color.ColorCTabFolder. getSelectionForeground()Returns the receiver's selection foreground color.ColorCTabItem. getSelectionForeground()Returns the selection foreground color that the receiver will use to paint textual information.ColorStyledText. getSelectionForeground()Returns the receiver's selection foreground color.Methods in org.eclipse.swt.custom with parameters of type Color Modifier and Type Method Description 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.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.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.Constructors in org.eclipse.swt.custom with parameters of type Color Constructor Description StyleRange(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 Color Modifier and Type Field Description ColorTextStyle. backgroundthe background of the styleColorTextStyle. borderColorthe border color of the styleColorTextStyle. foregroundthe foreground of the styleColorTextStyle. strikeoutColorthe strikeout color of the styleColorTextStyle. underlineColorthe underline color of the styleMethods in org.eclipse.swt.graphics that return Color Modifier and Type Method Description ColorGC. getBackground()Returns the background color.ColorImage. getBackground()Returns the color to which to map the transparent pixel, or null if the receiver has no transparent pixel.ColorGC. getForeground()Returns the receiver's foreground color.ColorDevice. getSystemColor(int id)Returns the matching standard color for the given constant, which should be one of the color constants specified in classSWT.static ColorColor. gtk_new(Device device, GdkRGBA gdkRGBA)Invokes platform specific functionality to allocate a new color.static ColorColor. gtk_new(Device device, GdkRGBA gdkRGBA, int alpha)Invokes platform specific functionality to allocate a new color.Methods in org.eclipse.swt.graphics with parameters of type Color Modifier and Type Method Description voidTextLayout. 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.voidGC. setBackground(Color color)Sets the background color.voidImage. setBackground(Color color)Sets the color to which to map the transparent pixel.voidGC. setForeground(Color color)Sets the foreground color.Constructors in org.eclipse.swt.graphics with parameters of type Color Constructor Description Pattern(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.Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, Color color2)Constructs a new Pattern that represents a linear, two color gradient.TextStyle(Font font, Color foreground, Color background)Create a new text style with the specified font, foreground and background. -
Uses of Color in org.eclipse.swt.widgets
Methods in org.eclipse.swt.widgets that return Color Modifier and Type Method Description ColorControl. getBackground()Returns the receiver's background color.ColorTableItem. getBackground()Returns the receiver's background color.ColorTableItem. getBackground(int index)Returns the background color at the given column index in the receiver.ColorToolItem. getBackground()Returns the receiver's background color.ColorTreeItem. getBackground()Returns the receiver's background color.ColorTreeItem. getBackground(int index)Returns the background color at the given column index in the receiver.ColorControl. getForeground()Returns the foreground color that the receiver will use to draw.ColorTableItem. getForeground()Returns the foreground color that the receiver will use to draw.ColorTableItem. getForeground(int index)Returns the foreground color at the given column index in the receiver.ColorToolItem. getForeground()Returns the foreground color that the receiver will use to draw.ColorTreeItem. getForeground()Returns the foreground color that the receiver will use to draw.ColorTreeItem. getForeground(int index)Returns the foreground color at the given column index in the receiver.ColorTable. getHeaderBackground()Returns the header background color.ColorTree. getHeaderBackground()Returns the header background color.ColorTable. getHeaderForeground()Returns the header foreground color.ColorTree. getHeaderForeground()Returns the header foreground color.ColorLink. getLinkForeground()Returns the link foreground color.ColorDisplay. 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 Color Modifier and Type Method Description 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.
-