Class StyledCTabRenderer

  • All Implemented Interfaces:
    org.eclipse.e4.ui.internal.css.swt.ICTabRendering

    public class StyledCTabRenderer
    extends org.eclipse.swt.custom.CTabFolderRenderer
    implements org.eclipse.e4.ui.internal.css.swt.ICTabRendering
    CTabFolder tabs renderer for EDT dark theme.
    • Field Detail

      • LOGGER

        protected static final org.slf4j.Logger LOGGER
        Logger for logging exceptions.
    • Constructor Detail

      • StyledCTabRenderer

        public StyledCTabRenderer​(org.eclipse.swt.custom.CTabFolder parent)
        Constructor.
        Parameters:
        parent - - CTabFolder to create rendered for. Can't be null.
    • Method Detail

      • setUnselectedHotTabsColorBackground

        public void setUnselectedHotTabsColorBackground​(org.eclipse.swt.graphics.Color color)
        Specified by:
        setUnselectedHotTabsColorBackground in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setCornerRadius

        public void setCornerRadius​(int radius)
        Specified by:
        setCornerRadius in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setShadowVisible

        public void setShadowVisible​(boolean isVisible)
        Specified by:
        setShadowVisible in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setShadowColor

        public void setShadowColor​(org.eclipse.swt.graphics.Color color)
        Specified by:
        setShadowColor in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setOuterKeyline

        public void setOuterKeyline​(org.eclipse.swt.graphics.Color color)
        Specified by:
        setOuterKeyline in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setSelectedTabFill

        public void setSelectedTabFill​(org.eclipse.swt.graphics.Color color)
        Specified by:
        setSelectedTabFill in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setSelectedTabFill

        public void setSelectedTabFill​(org.eclipse.swt.graphics.Color[] colors,
                                       int[] percents)
        Specified by:
        setSelectedTabFill in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setUnselectedTabsColor

        public void setUnselectedTabsColor​(org.eclipse.swt.graphics.Color color)
        Specified by:
        setUnselectedTabsColor in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setUnselectedTabsColor

        public void setUnselectedTabsColor​(org.eclipse.swt.graphics.Color[] colors,
                                           int[] percents)
        Specified by:
        setUnselectedTabsColor in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setTabOutline

        public void setTabOutline​(org.eclipse.swt.graphics.Color color)
        Specified by:
        setTabOutline in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setInnerKeyline

        public void setInnerKeyline​(org.eclipse.swt.graphics.Color color)
        Specified by:
        setInnerKeyline in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • computeTrim

        protected org.eclipse.swt.graphics.Rectangle computeTrim​(int part,
                                                                 int state,
                                                                 int x,
                                                                 int y,
                                                                 int width,
                                                                 int height)
        Overrides:
        computeTrim in class org.eclipse.swt.custom.CTabFolderRenderer
      • computeSize

        protected org.eclipse.swt.graphics.Point computeSize​(int part,
                                                             int state,
                                                             org.eclipse.swt.graphics.GC gc,
                                                             int wHint,
                                                             int hHint)
        Overrides:
        computeSize in class org.eclipse.swt.custom.CTabFolderRenderer
      • draw

        protected void draw​(int part,
                            int state,
                            org.eclipse.swt.graphics.Rectangle bounds,
                            org.eclipse.swt.graphics.GC gc)
        Overrides:
        draw in class org.eclipse.swt.custom.CTabFolderRenderer
      • setSelectedTabHighlightTop

        public void setSelectedTabHighlightTop​(boolean drawTabHiglightOnTop)
        Specified by:
        setSelectedTabHighlightTop in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setSelectedTabHighlight

        public void setSelectedTabHighlight​(org.eclipse.swt.graphics.Color color)
        Specified by:
        setSelectedTabHighlight in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering
      • setDrawCustomTabContentBackground

        public void setDrawCustomTabContentBackground​(boolean drawCustomTabContentBackground)
        Specified by:
        setDrawCustomTabContentBackground in interface org.eclipse.e4.ui.internal.css.swt.ICTabRendering