public class Win7ColumnGroupHeaderRenderer extends DefaultColumnGroupHeaderRenderer
Modifier and Type | Field and Description |
---|---|
(package private) int |
bottomMargin |
(package private) int |
imageSpacing |
(package private) int |
leftMargin |
(package private) int |
rightMargin |
(package private) int |
topMargin |
LeftMouseButtonDown, MouseMove
Constructor and Description |
---|
Win7ColumnGroupHeaderRenderer(Win7PaletteProvider palette) |
Modifier and Type | Method and Description |
---|---|
int |
getTruncationStyle()
Get the truncation style
|
void |
paint(org.eclipse.swt.graphics.GC gc,
java.lang.Object value)
Paints the visual representation of the given value on the given GC.
|
void |
setDisplay(org.eclipse.swt.widgets.Display display)
Sets the display.
|
void |
setTruncationStyle(int truncationStyle)
Set the truncation style to use when cell content is too large.
|
computeSize, getTextBounds, getToggleBounds, notify
getControlBounds, getHorizontalAlignment, isWordWrap, setHorizontalAlignment, setWordWrap
getHoverDetail, setHoverDetail
getBounds, getDisplay, getSize, isExpanded, isFocus, isHover, isMouseDown, isSelected, setBounds, setBounds, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBounds, setBounds, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
int leftMargin
int rightMargin
int topMargin
int bottomMargin
int imageSpacing
public Win7ColumnGroupHeaderRenderer(Win7PaletteProvider palette)
palette
- public void paint(org.eclipse.swt.graphics.GC gc, java.lang.Object value)
Implementors need to respect the bounds values that may have been
specified. The bounds values may affect the x and y values for all
drawing operations as well as the width and heights. Implementors may use
a Transform
to translate the coordinates of all the
drawing operations, otherwise they will need to offset each draw.
paint
in interface IRenderer
paint
in class DefaultColumnGroupHeaderRenderer
gc
- GC to paint withvalue
- the value being paintedpublic void setDisplay(org.eclipse.swt.widgets.Display display)
setDisplay
in interface IRenderer
setDisplay
in class DefaultColumnGroupHeaderRenderer
display
- Display.public int getTruncationStyle()
getTruncationStyle
in class GridHeaderRenderer
public void setTruncationStyle(int truncationStyle)
setTruncationStyle
in class GridHeaderRenderer
truncationStyle
- SWT.LEFT
,
SWT.CENTER
,
SWT.RIGHT