CTabFolder. This class can be subclassed in order to
customize the look of a CTabFolder.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final String | |
| private static final int | |
| private Font | |
| pack-priv static final RGB | |
| pack-priv int[] | |
| pack-priv int | |
| pack-priv int | |
| pack-priv static final String | |
| pack-priv Color | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv Color | |
| pack-priv int | |
| public static final int | |
| protected CTabFolder | |
| public static final int | PART_BACKGROUND
Part constant indicating the background of the tab folder. |
| public static final int | PART_BODY
Part constant indicating the body of the tab folder. |
| public static final int | PART_BORDER
Part constant indicating the border of the tab folder. |
| public static final int | PART_CHEVRON_BUTTON
Part constant indicating the chevron button of the tab folder. |
| public static final int | PART_CLOSE_BUTTON
Part constant indicating the close button of a tab item. |
| public static final int | PART_HEADER
Part constant indicating the tab header of the folder (value is -2). |
| public static final int | PART_MAX_BUTTON
Part constant indicating the maximize button of the tab folder. |
| public static final int | PART_MIN_BUTTON
Part constant indicating the minimize button of the tab folder. |
| pack-priv Color | |
| pack-priv Color | |
| pack-priv Color | |
| pack-priv Color[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv Color | |
| pack-priv static final int | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv static final int[] | |
| pack-priv int[] | |
| pack-priv int[] |
| Access | Constructor and Description |
|---|---|
| protected | CTabFolderRenderer(CTabFolder
CTabFolder parent)Constructs a new instance of this class given its parent. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| protected Point | Returns: the preferred size of the parta part constant part, int current state state, GC the gc to use for measuring gc, int the width hint (can be wHint, int SWT.DEFAULT)the height hint (can be hHint)SWT.DEFAULT)Returns the preferred size of a part. |
| protected Rectangle | Returns: the required bounds to produce the given client areaone of the part constants part, int the state of the part state, int the desired x coordinate of the client area x, int the desired y coordinate of the client area y, int the desired width of the client area width, int the desired height of the client area height)Given a desired client area for the part (as described by the arguments), returns the bounding rectangle which would be required to produce that client area. |
| pack-priv void | |
| pack-priv void | |
| protected void | |
| pack-priv void | |
| pack-priv void | |
| protected void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | drawBackground(GC gc, int[] shape, int x, int y, int width, int height, Color defaultBackground, Image image, Color[] colors, int[] percents, boolean vertical)
|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private Font | |
| pack-priv Color | |
| private int | getLargeTextPadding(CTabItem item)
Returns padding for the text of a tab item when showing images is disabled for the tab folder. |
| private int | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv String | |
| pack-priv String | |
| private boolean | |
| private boolean | |
| pack-priv void | |
| pack-priv boolean |
| BORDER1_COLOR | back to summary |
|---|---|
| pack-priv static final int BORDER1_COLOR | |
| BOTTOM_LEFT_CORNER | back to summary |
|---|---|
| pack-priv static final int[] BOTTOM_LEFT_CORNER | |
| BOTTOM_LEFT_CORNER_BORDERLESS | back to summary |
|---|---|
| pack-priv static final int[] BOTTOM_LEFT_CORNER_BORDERLESS | |
| BOTTOM_RIGHT_CORNER | back to summary |
|---|---|
| pack-priv static final int[] BOTTOM_RIGHT_CORNER | |
| BOTTOM_RIGHT_CORNER_BORDERLESS | back to summary |
|---|---|
| pack-priv static final int[] BOTTOM_RIGHT_CORNER_BORDERLESS | |
| BUTTON_BORDER | back to summary |
|---|---|
| pack-priv static final int BUTTON_BORDER | |
| BUTTON_FILL | back to summary |
|---|---|
| pack-priv static final int BUTTON_FILL | |
| BUTTON_SIZE | back to summary |
|---|---|
| pack-priv static final int BUTTON_SIZE | |
| BUTTON_TRIM | back to summary |
|---|---|
| pack-priv static final int BUTTON_TRIM | |
| CHEVRON_ELLIPSIS | back to summary |
|---|---|
| private static final String CHEVRON_ELLIPSIS | |
| CHEVRON_FONT_HEIGHT | back to summary |
|---|---|
| private static final int CHEVRON_FONT_HEIGHT | |
| chevronFont | back to summary |
|---|---|
| private Font chevronFont | |
| CLOSE_FILL | back to summary |
|---|---|
| pack-priv static final RGB CLOSE_FILL | |
| curve | back to summary |
|---|---|
| pack-priv int[] curve | |
| curveIndent | back to summary |
|---|---|
| pack-priv int curveIndent | |
| curveWidth | back to summary |
|---|---|
| pack-priv int curveWidth | |
| ELLIPSIS | back to summary |
|---|---|
| pack-priv static final String ELLIPSIS | |
| fillColor | back to summary |
|---|---|
| pack-priv Color fillColor | |
| FLAGS | back to summary |
|---|---|
| pack-priv static final int FLAGS | |
| INTERNAL_SPACING | back to summary |
|---|---|
| pack-priv static final int INTERNAL_SPACING | |
| ITEM_BOTTOM_MARGIN | back to summary |
|---|---|
| pack-priv static final int ITEM_BOTTOM_MARGIN | |
| ITEM_LEFT_MARGIN | back to summary |
|---|---|
| pack-priv static final int ITEM_LEFT_MARGIN | |
| ITEM_RIGHT_MARGIN | back to summary |
|---|---|
| pack-priv static final int ITEM_RIGHT_MARGIN | |
| ITEM_TOP_MARGIN | back to summary |
|---|---|
| pack-priv static final int ITEM_TOP_MARGIN | |
| lastBorderColor | back to summary |
|---|---|
| pack-priv Color lastBorderColor | |
| lastTabHeight | back to summary |
|---|---|
| pack-priv int lastTabHeight | |
| MINIMUM_SIZE | back to summary |
|---|---|
| public static final int MINIMUM_SIZE | |
| parent | back to summary |
|---|---|
| protected CTabFolder parent | |
| PART_BACKGROUND | back to summary |
|---|---|
| public static final int PART_BACKGROUND Part constant indicating the background of the tab folder. (value is -4). | |
| PART_BODY | back to summary |
|---|---|
| public static final int PART_BODY Part constant indicating the body of the tab folder. The body is the underlying container for all of the tab folder and all other parts are drawn on top of it. (value is -1). | |
| PART_BORDER | back to summary |
|---|---|
| public static final int PART_BORDER Part constant indicating the border of the tab folder. (value is -3). The border is drawn around the body and is part of the body trim. | |
| PART_CHEVRON_BUTTON | back to summary |
|---|---|
| public static final int PART_CHEVRON_BUTTON Part constant indicating the chevron button of the tab folder. (value is -7). | |
| PART_CLOSE_BUTTON | back to summary |
|---|---|
| public static final int PART_CLOSE_BUTTON Part constant indicating the close button of a tab item. (value is -8). | |
| PART_HEADER | back to summary |
|---|---|
| public static final int PART_HEADER Part constant indicating the tab header of the folder (value is -2). The header is drawn on top of the body and provides an area for the tabs and other tab folder buttons to be rendered. | |
| PART_MAX_BUTTON | back to summary |
|---|---|
| public static final int PART_MAX_BUTTON Part constant indicating the maximize button of the tab folder. (value is -5). | |
| PART_MIN_BUTTON | back to summary |
|---|---|
| public static final int PART_MIN_BUTTON Part constant indicating the minimize button of the tab folder. (value is -6). | |
| selectedInnerColor | back to summary |
|---|---|
| pack-priv Color selectedInnerColor | |
| selectedOuterColor | back to summary |
|---|---|
| pack-priv Color selectedOuterColor | |
| selectionHighlightGradientBegin | back to summary |
|---|---|
| pack-priv Color selectionHighlightGradientBegin | |
| selectionHighlightGradientColorsCache | back to summary |
|---|---|
| pack-priv Color[] selectionHighlightGradientColorsCache | |
| SIMPLE_BOTTOM_LEFT_CORNER | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_BOTTOM_LEFT_CORNER | |
| SIMPLE_BOTTOM_LEFT_CORNER_BORDERLESS | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_BOTTOM_LEFT_CORNER_BORDERLESS | |
| SIMPLE_BOTTOM_RIGHT_CORNER | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_BOTTOM_RIGHT_CORNER | |
| SIMPLE_BOTTOM_RIGHT_CORNER_BORDERLESS | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_BOTTOM_RIGHT_CORNER_BORDERLESS | |
| SIMPLE_TOP_LEFT_CORNER | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_TOP_LEFT_CORNER | |
| SIMPLE_TOP_LEFT_CORNER_BORDERLESS | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_TOP_LEFT_CORNER_BORDERLESS | |
| SIMPLE_TOP_RIGHT_CORNER | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_TOP_RIGHT_CORNER | |
| SIMPLE_TOP_RIGHT_CORNER_BORDERLESS | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_TOP_RIGHT_CORNER_BORDERLESS | |
| SIMPLE_UNSELECTED_INNER_CORNER | back to summary |
|---|---|
| pack-priv static final int[] SIMPLE_UNSELECTED_INNER_CORNER | |
| tabAreaColor | back to summary |
|---|---|
| pack-priv Color tabAreaColor | |
| TABS_WITHOUT_ICONS_PADDING | back to summary |
|---|---|
| pack-priv static final int TABS_WITHOUT_ICONS_PADDING | |
| TOP_LEFT_CORNER | back to summary |
|---|---|
| pack-priv static final int[] TOP_LEFT_CORNER | |
| TOP_LEFT_CORNER_BORDERLESS | back to summary |
|---|---|
| pack-priv static final int[] TOP_LEFT_CORNER_BORDERLESS | |
| TOP_LEFT_CORNER_HILITE | back to summary |
|---|---|
| pack-priv static final int[] TOP_LEFT_CORNER_HILITE | |
| TOP_RIGHT_CORNER | back to summary |
|---|---|
| pack-priv static final int[] TOP_RIGHT_CORNER | |
| TOP_RIGHT_CORNER_BORDERLESS | back to summary |
|---|---|
| pack-priv static final int[] TOP_RIGHT_CORNER_BORDERLESS | |
| topCurveHighlightEnd | back to summary |
|---|---|
| pack-priv int[] topCurveHighlightEnd | |
| topCurveHighlightStart | back to summary |
|---|---|
| pack-priv int[] topCurveHighlightStart | |
| CTabFolderRenderer | back to summary |
|---|---|
| protected CTabFolderRenderer(CTabFolder parent) Constructs a new instance of this class given its parent.
| |
| antialias | back to summary |
|---|---|
| pack-priv void antialias(int[] shape, Color innerColor, Color outerColor, GC gc) | |
| computeSize | back to summary |
|---|---|
| protected Point computeSize(int part, int state, GC gc, int wHint, int hHint) Returns the preferred size of a part.
The preferred size of a part is the size that it would
best be displayed at. The width hint and height hint arguments
allow the caller to ask a control questions such as "Given a particular
width, how high does the part need to be to show all of the contents?"
To indicate that the caller does not wish to constrain a particular
dimension, the constant
The
The
| |
| computeTrim | back to summary |
|---|---|
| protected Rectangle computeTrim(int part, int state, int x, int y, int width, int height) Given a desired client area for the part (as described by the arguments), returns the bounding rectangle which would be required to produce that client area. In other words, it returns a rectangle such that, if the part's bounds were set to that rectangle, the area of the part which is capable of displaying data (that is, not covered by the "trimmings") would be the rectangle described by the arguments (relative to the receiver's parent).
| |
| createAntialiasColors | back to summary |
|---|---|
| pack-priv void createAntialiasColors() | |
| createSelectionHighlightGradientColors | back to summary |
|---|---|
| pack-priv void createSelectionHighlightGradientColors(Color start) | |
| dispose | back to summary |
|---|---|
| protected void dispose() Dispose of any operating system resources associated with the renderer. Called by the CTabFolder parent upon receiving the dispose event or when changing the renderer.
| |
| disposeAntialiasColors | back to summary |
|---|---|
| pack-priv void disposeAntialiasColors() | |
| disposeSelectionHighlightGradientColors | back to summary |
|---|---|
| pack-priv void disposeSelectionHighlightGradientColors() | |
| draw | back to summary |
|---|---|
| protected void draw(int part, int state, Rectangle bounds, GC gc) Draw a specified The valid CTabFolder
The
| |
| drawBackground | back to summary |
|---|---|
| pack-priv void drawBackground(GC gc, Rectangle bounds, int state) | |
| drawBackground | back to summary |
|---|---|
| pack-priv void drawBackground(GC gc, int[] shape, boolean selected) | |
| drawBackground | back to summary |
|---|---|
| pack-priv void drawBackground(GC gc, int[] shape, int x, int y, int width, int height, Color defaultBackground, Image image, Color[] colors, int[] percents, boolean vertical) | |
| drawBody | back to summary |
|---|---|
| pack-priv void drawBody(GC gc, Rectangle bounds, int state) | |
| drawBorder | back to summary |
|---|---|
| pack-priv void drawBorder(GC gc, int[] shape) | |
| drawChevron | back to summary |
|---|---|
| pack-priv void drawChevron(GC gc, Rectangle chevronRect, int chevronImageState) | |
| drawChevronContent | back to summary |
|---|---|
| private void drawChevronContent(GC gc, int x, int y, String chevronString) | |
| drawClose | back to summary |
|---|---|
| pack-priv void drawClose(GC gc, Rectangle closeRect, int closeImageState) | |
| drawCloseLines | back to summary |
|---|---|
| private void drawCloseLines(GC gc, int x, int y, int lineLength, boolean hot) | |
| drawHighlight | back to summary |
|---|---|
| pack-priv void drawHighlight(GC gc, Rectangle bounds, int state, int rightEdge) | |
| drawLeftUnselectedBorder | back to summary |
|---|---|
| pack-priv void drawLeftUnselectedBorder(GC gc, Rectangle bounds, int state) | |
| drawMaximize | back to summary |
|---|---|
| pack-priv void drawMaximize(GC gc, Rectangle maxRect, int maxImageState) | |
| drawMinimize | back to summary |
|---|---|
| pack-priv void drawMinimize(GC gc, Rectangle minRect, int minImageState) | |
| drawRightUnselectedBorder | back to summary |
|---|---|
| pack-priv void drawRightUnselectedBorder(GC gc, Rectangle bounds, int state) | |
| drawRoundRectangle | back to summary |
|---|---|
| private void drawRoundRectangle(GC gc, Rectangle chevronRect) | |
| drawSelected | back to summary |
|---|---|
| pack-priv void drawSelected(int itemIndex, GC gc, Rectangle bounds, int state) | |
| drawTabArea | back to summary |
|---|---|
| pack-priv void drawTabArea(GC gc, Rectangle bounds, int state) | |
| drawUnselected | back to summary |
|---|---|
| pack-priv void drawUnselected(int index, GC gc, Rectangle bounds, int state) | |
| fillRegion | back to summary |
|---|---|
| pack-priv void fillRegion(GC gc, Region region) | |
| getChevronFont | back to summary |
|---|---|
| private Font getChevronFont(Display display) | |
| getFillColor | back to summary |
|---|---|
| pack-priv Color getFillColor() | |
| getLargeTextPadding | back to summary |
|---|---|
| private int getLargeTextPadding(CTabItem item) Returns padding for the text of a tab item when showing images is disabled for the tab folder. | |
| getLeftTextMargin | back to summary |
|---|---|
| private int getLeftTextMargin(CTabItem item) | |
| isSelectionHighlightColorsCacheHit | back to summary |
|---|---|
| pack-priv boolean isSelectionHighlightColorsCacheHit(Color start) | |
| resetChevronFont | back to summary |
|---|---|
| pack-priv void resetChevronFont() | |
| setSelectionHighlightGradientColor | back to summary |
|---|---|
| pack-priv void setSelectionHighlightGradientColor(Color start) | |
| shortenText | back to summary |
|---|---|
| pack-priv String shortenText(GC gc, String text, int width) | |
| shortenText | back to summary |
|---|---|
| pack-priv String shortenText(GC gc, String text, int width, String ellipses) | |
| shouldApplyLargeTextPadding | back to summary |
|---|---|
| private boolean shouldApplyLargeTextPadding(CTabFolder tabFolder) | |
| shouldDrawCloseIcon | back to summary |
|---|---|
| private boolean shouldDrawCloseIcon(CTabItem item) | |
| updateCurves | back to summary |
|---|---|
| pack-priv void updateCurves() | |
| useEllipses | back to summary |
|---|---|
| pack-priv boolean useEllipses() | |