public class CustomSelectionColorCellRenderer
extends org.eclipse.nebula.widgets.grid.GridCellRenderer
Constructor and Description |
---|
CustomSelectionColorCellRenderer(org.eclipse.swt.graphics.Color selectionForegroundColor,
org.eclipse.swt.graphics.Color selectionBackgroundColor) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Point |
computeSize(org.eclipse.swt.graphics.GC gc,
int wHint,
int hHint,
Object value) |
org.eclipse.swt.graphics.Rectangle |
getTextBounds(org.eclipse.nebula.widgets.grid.GridItem item,
boolean preferred) |
boolean |
notify(int event,
org.eclipse.swt.graphics.Point point,
Object value) |
void |
paint(org.eclipse.swt.graphics.GC gc,
Object value) |
void |
setCheck(boolean check) |
void |
setSelectionBackgroundColor(org.eclipse.swt.graphics.Color selectionBackgroundColor) |
void |
setSelectionForegroundColor(org.eclipse.swt.graphics.Color selectionForegroundColor) |
void |
setTree(boolean tree) |
getAlignment, getColumn, getRow, isCellFocus, isCellSelected, isCheck, isColumnHover, isDragging, isRowFocus, isRowHover, isTree, isWordWrap, setAlignment, setCellFocus, setCellSelected, setColumn, setColumnHover, setDragging, setRow, setRowFocus, setRowHover, setWordWrap
getHoverDetail, setHoverDetail
getBounds, getDisplay, getSize, isExpanded, isFocus, isHover, isMouseDown, isSelected, setBounds, setBounds, setDisplay, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
public CustomSelectionColorCellRenderer(org.eclipse.swt.graphics.Color selectionForegroundColor, org.eclipse.swt.graphics.Color selectionBackgroundColor)
public void paint(org.eclipse.swt.graphics.GC gc, Object value)
public org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.graphics.GC gc, int wHint, int hHint, Object value)
public boolean notify(int event, org.eclipse.swt.graphics.Point point, Object value)
public void setTree(boolean tree)
setTree
in class org.eclipse.nebula.widgets.grid.GridCellRenderer
public void setCheck(boolean check)
setCheck
in class org.eclipse.nebula.widgets.grid.GridCellRenderer
public org.eclipse.swt.graphics.Rectangle getTextBounds(org.eclipse.nebula.widgets.grid.GridItem item, boolean preferred)
getTextBounds
in class org.eclipse.nebula.widgets.grid.GridCellRenderer
public void setSelectionForegroundColor(org.eclipse.swt.graphics.Color selectionForegroundColor)
selectionForegroundColor
- the selectionForegroundColor to setpublic void setSelectionBackgroundColor(org.eclipse.swt.graphics.Color selectionBackgroundColor)
selectionBackgroundColor
- the selectionBackgroundColor to setCopyright © 2019. All rights reserved.