public class BlendedBackgroundPainter extends TextPainter
A cell painter that can blend multiple background colours together when more than one has been registered for a given cell.
For example, if using the alternating row colour style, when multiple rows are selected, with a normal painter, a single selection colour is applied to all the selected cell's backgrounds.
With this painter, the selection background colour blends with the alternating colour rather than just replacing it leaving two alternating selection colours.
calculateByTextHeight, calculateByTextLength, DOT, EMPTY, LINE_SEPARATOR, NEW_LINE_REGEX, paintBg, paintFg, spacing, wrapText| Constructor and Description |
|---|
BlendedBackgroundPainter(org.eclipse.swt.graphics.RGB gridBackgroundColour) |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.swt.graphics.Color |
blendBackgroundColour(ILayerCell cell,
IConfigRegistry configRegistry,
org.eclipse.swt.graphics.RGB baseColor)
Returns a background colour for the specified cell.
|
protected org.eclipse.swt.graphics.Color |
getBackgroundColour(ILayerCell cell,
IConfigRegistry configRegistry) |
calculatePadding, getPreferredHeight, getPreferredWidth, paintCell, performRowResize, setNewMinLengthconvertDataType, getLengthFromCache, getNumberOfNewLines, getTextToDisplay, renderStrikethrough, renderUnderlined, setStrikethrough, setUnderline, setupGCFromConfiggetCellPainterAt, getWrappedPainter, getWrappedPainterBounds, setWrappedPainterpublic BlendedBackgroundPainter(org.eclipse.swt.graphics.RGB gridBackgroundColour)
protected org.eclipse.swt.graphics.Color getBackgroundColour(ILayerCell cell, IConfigRegistry configRegistry)
getBackgroundColour in class BackgroundPainterpublic static org.eclipse.swt.graphics.Color blendBackgroundColour(ILayerCell cell, IConfigRegistry configRegistry, org.eclipse.swt.graphics.RGB baseColor)
cell - the LayerCell to get a background colour for.configRegistry - an IConfigRegistry.baseColor - Colours are not blended with this colour.Copyright © 2013. All Rights Reserved.