Uses of Class
org.eclipse.swt.graphics.Color

Packages that use Color
  • Uses of Color in org.eclipse.swt.custom

    Fields in org.eclipse.swt.custom declared as Color
    Modifier and Type
    Field
    Description
    LineBackgroundEvent.lineBackground
    line background color
    Methods in org.eclipse.swt.custom that return Color
    Modifier and Type
    Method
    Description
    StyledText.getBackground()
     
    TableCursor.getBackground()
    Returns the background color that the receiver will use to draw.
    TableTree.getBackground()
    Deprecated.
     
    TableTreeItem.getBackground()
    Deprecated.
    Returns the receiver's background color.
    TreeCursor.getBackground()
    Returns the background color that the receiver will use to draw.
    StyledText.getForeground()
     
    TableCursor.getForeground()
    Returns the foreground color that the receiver will use to draw.
    TableTree.getForeground()
    Deprecated.
     
    TableTreeItem.getForeground()
    Deprecated.
    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.
    Returns the receiver's selection background color.
    Returns the receiver's selection background color.
    Returns the receiver's selection foreground color.
    Returns the receiver's selection foreground color.
    Methods in org.eclipse.swt.custom with parameters of type Color
    Modifier and Type
    Method
    Description
    void
    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
    TableTree.setBackground(Color color)
    Deprecated.
     
    void
    TableTreeItem.setBackground(Color color)
    Deprecated.
    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
    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
    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
    TableTree.setForeground(Color color)
    Deprecated.
     
    void
    TableTreeItem.setForeground(Color color)
    Deprecated.
    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
    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
    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.
    Constructors in org.eclipse.swt.custom with parameters of type Color
    Modifier
    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
    TextStyle.background
    the background of the style
    TextStyle.borderColor
    the border color of the style
    TextStyle.foreground
    the foreground of the style
    TextStyle.strikeoutColor
    the strikeout color of the style
    TextStyle.underlineColor
    the underline color of the style
    Methods in org.eclipse.swt.graphics that return Color
    Modifier and Type
    Method
    Description
    Returns the background color.
    Returns the color to which to map the transparent pixel, or null if the receiver has no transparent pixel.
    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 class SWT.
    static Color
    Color.win32_new(Device device, int handle)
    Invokes platform specific functionality to allocate a new color.
    static Color
    Color.win32_new(Device device, int handle, 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
    void
    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.
    Constructors in org.eclipse.swt.graphics with parameters of type Color
    Modifier
    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.ole.win32

    Methods in org.eclipse.swt.ole.win32 that return Color
    Modifier and Type
    Method
    Description
    OleControlSite.getBackground()
     
    OleControlSite.getForeground()
     
    Methods in org.eclipse.swt.ole.win32 with parameters of type Color
    Modifier and Type
    Method
    Description
    void
    OleControlSite.setBackground(Color color)
     
    void
    OleControlSite.setForeground(Color color)
     
  • Uses of Color in org.eclipse.swt.widgets

    Methods in org.eclipse.swt.widgets that return Color
    Modifier and Type
    Method
    Description
    Button.getBackground()
     
    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.
    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.
    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.
    Returns the header background color.
    Returns the header background color.
    Returns the header foreground color.
    Returns the header foreground color.
    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 class SWT.
    Methods in org.eclipse.swt.widgets with parameters of type Color
    Modifier and Type
    Method
    Description
    void
    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
    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
    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
    Sets the header background color to the color specified by the argument, or to the default system color if the argument is null.
    void
    Sets the header background color to the color specified by the argument, or to the default system color if the argument is null.
    void
    Sets the header foreground color to the color specified by the argument, or to the default system color if the argument is null.
    void
    Sets the header foreground color to the color specified by the argument, or to the default system color if the argument is null.
    void
    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.