Package com._1c.g5.v8.dt.theming.ui
Class StyledCTabRenderer
- java.lang.Object
-
- org.eclipse.swt.custom.CTabFolderRenderer
-
- com._1c.g5.v8.dt.theming.ui.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 Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOGGER
Logger for logging exceptions.
-
Constructor Summary
Constructors Constructor Description StyledCTabRenderer(org.eclipse.swt.custom.CTabFolder parent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.graphics.Point
computeSize(int part, int state, org.eclipse.swt.graphics.GC gc, int wHint, int hHint)
protected org.eclipse.swt.graphics.Rectangle
computeTrim(int part, int state, int x, int y, int width, int height)
protected void
draw(int part, int state, org.eclipse.swt.graphics.Rectangle bounds, org.eclipse.swt.graphics.GC gc)
void
setCornerRadius(int radius)
void
setDrawCustomTabContentBackground(boolean drawCustomTabContentBackground)
void
setInnerKeyline(org.eclipse.swt.graphics.Color color)
void
setOuterKeyline(org.eclipse.swt.graphics.Color color)
void
setSelectedTabFill(org.eclipse.swt.graphics.Color color)
void
setSelectedTabFill(org.eclipse.swt.graphics.Color[] colors, int[] percents)
void
setSelectedTabHighlight(org.eclipse.swt.graphics.Color color)
void
setSelectedTabHighlightTop(boolean drawTabHiglightOnTop)
void
setShadowColor(org.eclipse.swt.graphics.Color color)
void
setShadowVisible(boolean isVisible)
void
setTabOutline(org.eclipse.swt.graphics.Color color)
void
setUnselectedHotTabsColorBackground(org.eclipse.swt.graphics.Color color)
void
setUnselectedTabsColor(org.eclipse.swt.graphics.Color color)
void
setUnselectedTabsColor(org.eclipse.swt.graphics.Color[] colors, int[] percents)
-
-
-
Method Detail
-
setUnselectedHotTabsColorBackground
public void setUnselectedHotTabsColorBackground(org.eclipse.swt.graphics.Color color)
- Specified by:
setUnselectedHotTabsColorBackground
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setCornerRadius
public void setCornerRadius(int radius)
- Specified by:
setCornerRadius
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setShadowVisible
public void setShadowVisible(boolean isVisible)
- Specified by:
setShadowVisible
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setShadowColor
public void setShadowColor(org.eclipse.swt.graphics.Color color)
- Specified by:
setShadowColor
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setOuterKeyline
public void setOuterKeyline(org.eclipse.swt.graphics.Color color)
- Specified by:
setOuterKeyline
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setSelectedTabFill
public void setSelectedTabFill(org.eclipse.swt.graphics.Color color)
- Specified by:
setSelectedTabFill
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setSelectedTabFill
public void setSelectedTabFill(org.eclipse.swt.graphics.Color[] colors, int[] percents)
- Specified by:
setSelectedTabFill
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setUnselectedTabsColor
public void setUnselectedTabsColor(org.eclipse.swt.graphics.Color color)
- Specified by:
setUnselectedTabsColor
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setUnselectedTabsColor
public void setUnselectedTabsColor(org.eclipse.swt.graphics.Color[] colors, int[] percents)
- Specified by:
setUnselectedTabsColor
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setTabOutline
public void setTabOutline(org.eclipse.swt.graphics.Color color)
- Specified by:
setTabOutline
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setInnerKeyline
public void setInnerKeyline(org.eclipse.swt.graphics.Color color)
- Specified by:
setInnerKeyline
in interfaceorg.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 classorg.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 classorg.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 classorg.eclipse.swt.custom.CTabFolderRenderer
-
setSelectedTabHighlightTop
public void setSelectedTabHighlightTop(boolean drawTabHiglightOnTop)
- Specified by:
setSelectedTabHighlightTop
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setSelectedTabHighlight
public void setSelectedTabHighlight(org.eclipse.swt.graphics.Color color)
- Specified by:
setSelectedTabHighlight
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
setDrawCustomTabContentBackground
public void setDrawCustomTabContentBackground(boolean drawCustomTabContentBackground)
- Specified by:
setDrawCustomTabContentBackground
in interfaceorg.eclipse.e4.ui.internal.css.swt.ICTabRendering
-
-