Class StructuredViewer.ColorAndFontCollector

    • Constructor Detail

      • ColorAndFontCollector

        public ColorAndFontCollector()
        Create a new instance of the receiver with no color and font provider.
    • Method Detail

      • clear

        public void clear()
        Clear all of the results.
      • setFontsAndColors

        public void setFontsAndColors​(Object element)
        Set the initial fonts and colors for the element from the content providers.
        Parameters:
        element - Object
      • setUsedDecorators

        public void setUsedDecorators()
        Set that decorators were applied.
      • applyFontsAndColors

        public void applyFontsAndColors​(TableItem control)
        Apply the fonts and colors to the control if required.
        Parameters:
        control - control to apply font and color on
      • applyFontsAndColors

        public void applyFontsAndColors​(TreeItem control)
        Apply the fonts and colors to the control if required.
        Parameters:
        control - control to apply font and color on
      • setBackground

        public void setBackground​(Color background)
        Set the background color.
        Parameters:
        background - color to set
      • setFont

        public void setFont​(Font font)
        Set the font.
        Parameters:
        font - font to set
      • setForeground

        public void setForeground​(Color foreground)
        Set the foreground color.
        Parameters:
        foreground - color to set