return this.selectionAnchorCellPainter;
}
@Override
protected IStyle getSelectionAnchorSelectionStyle() {
IStyle cellStyle = new Style();
cellStyle.setAttributeValue(CellStyleAttributes.BACKGROUND_COLOR,
selectionAnchorSelectionBgColor);
cellStyle.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR,
selectionAnchorSelectionFgColor);
cellStyle.setAttributeValue(
CellStyleAttributes.GRADIENT_BACKGROUND_COLOR,
selectionAnchorSelectionGradientBgColor);
cellStyle.setAttributeValue(
CellStyleAttributes.GRADIENT_FOREGROUND_COLOR,
selectionAnchorSelectionGradientFgColor);
cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT,
selectionAnchorSelectionHAlign);
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT,
selectionAnchorSelectionVAlign);
cellStyle.setAttributeValue(CellStyleAttributes.FONT,
selectionAnchorSelectionFont);
cellStyle.setAttributeValue(CellStyleAttributes.IMAGE,
selectionAnchorSelectionImage);
// if there is not explicitly another border style configured use the
// same as in getSelectionAnchorStyle()
BorderStyle border = selectionAnchorSelectionBorderStyle != null ? selectionAnchorSelectionBorderStyle
: selectionAnchorBorderStyle;
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, border);
cellStyle.setAttributeValue(CellStyleAttributes.PASSWORD_ECHO_CHAR,
selectionAnchorSelectionPWEchoChar);
cellStyle.setAttributeValue(CellStyleAttributes.TEXT_DECORATION,
selectionAnchorSelectionTextDecoration);
return cellStyle;
}