public class ColumnGroupHeaderTextPainter extends CellPainterWrapper
Constructor and Description |
---|
ColumnGroupHeaderTextPainter(ColumnGroupModel columnGroupModel) |
ColumnGroupHeaderTextPainter(ColumnGroupModel columnGroupModel,
ICellPainter interiorPainter) |
Modifier and Type | Method and Description |
---|---|
int |
getPreferredHeight(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
IConfigRegistry configRegistry)
Get the preferred height of the cell when rendered by this painter.
|
int |
getPreferredWidth(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
IConfigRegistry configRegistry)
Preferred width is used during auto resize.
|
getCellPainterAt, getWrappedPainter, getWrappedPainterBounds, paintCell, setWrappedPainter
public ColumnGroupHeaderTextPainter(ColumnGroupModel columnGroupModel)
public ColumnGroupHeaderTextPainter(ColumnGroupModel columnGroupModel, ICellPainter interiorPainter)
columnGroupModel
- Column group model used by the gridinteriorPainter
- for painting the text portionpublic int getPreferredWidth(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
getPreferredWidth
in interface ICellPainter
getPreferredWidth
in class CellPainterWrapper
public int getPreferredHeight(ILayerCell cell, org.eclipse.swt.graphics.GC gc, IConfigRegistry configRegistry)
ICellPainter
getPreferredHeight
in interface ICellPainter
getPreferredHeight
in class CellPainterWrapper
Copyright © 2013. All Rights Reserved.