| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
org.eclipse.nebula.widgets.nattable.group.painter.RowGroupHeaderTextPainter
public class RowGroupHeaderTextPainter
| Constructor Summary | |
|---|---|
RowGroupHeaderTextPainter()
Creates the default RowGroupHeaderTextPainter that uses a
 TextPainter as base ICellPainter and decorate it with the
 RowGroupExpandCollapseImagePainter on the bottom edge of the
 cell. | 
|
RowGroupHeaderTextPainter(ICellPainter interiorPainter)
Creates a RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the RowGroupExpandCollapseImagePainter on the bottom edge of the
 cell. | 
|
RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                          boolean paintBg,
                          boolean interiorPainterToSpanFullWidth)
Creates a RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the RowGroupExpandCollapseImagePainter on the bottom edge of the
 cell. | 
|
RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                          CellEdgeEnum cellEdge)
Creates a RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the RowGroupExpandCollapseImagePainter on the specified edge of
 the cell. | 
|
RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                          CellEdgeEnum cellEdge,
                          boolean paintBg,
                          int spacing,
                          boolean paintDecorationDependent)
Creates a RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter. | 
|
RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                          CellEdgeEnum cellEdge,
                          ICellPainter decoratorPainter)
Creates a RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the given ICellPainter to use for sort related decoration on the
 specified edge of the cell. | 
|
RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                          CellEdgeEnum cellEdge,
                          ICellPainter decoratorPainter,
                          boolean paintBg,
                          int spacing,
                          boolean paintDecorationDependent)
Creates a RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter. | 
|
RowGroupHeaderTextPainter(IRowGroupModel rowGroupModel)
Deprecated. Use constructor without IRowGroupModel reference  | 
|
RowGroupHeaderTextPainter(IRowGroupModel rowGroupModel,
                          ICellPainter interiorPainter)
Deprecated. Use constructor without IRowGroupModel reference  | 
|
| Method Summary | |
|---|---|
 int | 
getPreferredWidth(ILayerCell cell,
                  org.eclipse.swt.graphics.GC gc,
                  IConfigRegistry configRegistry)
Get the preferred width of the cell when rendered by this painter.  | 
| Methods inherited from class org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper | 
|---|
getCellPainterAt, getPreferredHeight, getWrappedPainter, getWrappedPainterBounds, paintCell, setWrappedPainter | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
@Deprecated public RowGroupHeaderTextPainter(IRowGroupModel rowGroupModel)
RowGroupHeaderTextPainter that uses a
 TextPainter as base ICellPainter and decorate it with the
 RowGroupExpandCollapseImagePainter on the bottom edge of the
 cell.
rowGroupModel - the row group model that is used by the grid
@Deprecated
public RowGroupHeaderTextPainter(IRowGroupModel rowGroupModel,
                                            ICellPainter interiorPainter)
RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the RowGroupExpandCollapseImagePainter on the bottom edge of the
 cell.
rowGroupModel - the row group model that is used by the gridinteriorPainter - the base ICellPainter to usepublic RowGroupHeaderTextPainter()
RowGroupHeaderTextPainter that uses a
 TextPainter as base ICellPainter and decorate it with the
 RowGroupExpandCollapseImagePainter on the bottom edge of the
 cell.
public RowGroupHeaderTextPainter(ICellPainter interiorPainter)
RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the RowGroupExpandCollapseImagePainter on the bottom edge of the
 cell.
interiorPainter - the base ICellPainter to use
public RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                                 CellEdgeEnum cellEdge)
RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the RowGroupExpandCollapseImagePainter on the specified edge of
 the cell.
interiorPainter - the base ICellPainter to usecellEdge - the edge of the cell on which the sort indicator decoration
            should be applied
public RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                                 CellEdgeEnum cellEdge,
                                 ICellPainter decoratorPainter)
RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the given ICellPainter to use for sort related decoration on the
 specified edge of the cell.
interiorPainter - the base ICellPainter to usecellEdge - the edge of the cell on which the sort indicator decoration
            should be applieddecoratorPainter - the ICellPainter that should be used to paint the sort
            related decoration (by default the
            RowGroupExpandCollapseImagePainter will be used)
public RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                                 CellEdgeEnum cellEdge,
                                 boolean paintBg,
                                 int spacing,
                                 boolean paintDecorationDependent)
RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter. It will use the
 RowGroupExpandCollapseImagePainter as decorator for sort related
 decorations at the specified cell edge, which can be configured to render
 the background or not via method parameter. With the additional
 parameters, the behaviour of the created CellPainterDecorator can
 be configured in terms of rendering.
interiorPainter - the base ICellPainter to usecellEdge - the edge of the cell on which the sort indicator decoration
            should be appliedpaintBg - flag to configure whether the
            RowGroupExpandCollapseImagePainter should paint the
            background or notspacing - the number of pixels that should be used as spacing between
            cell edge and decorationpaintDecorationDependent - flag to configure if the base ICellPainter should
            render decoration dependent or not. If it is set to
            false, the base painter will always paint at the
            same coordinates, using the whole cell bounds,
            true will cause the bounds of the cell to shrink
            for the base painter.
public RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                                 CellEdgeEnum cellEdge,
                                 ICellPainter decoratorPainter,
                                 boolean paintBg,
                                 int spacing,
                                 boolean paintDecorationDependent)
RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter. It will use the given
 ICellPainter as decorator for row group related decorations at
 the specified cell edge, which can be configured to render the background
 or not via method parameter. With the additional parameters, the
 behaviour of the created CellPainterDecorator can be configured
 in terms of rendering.
interiorPainter - the base ICellPainter to usecellEdge - the edge of the cell on which the row group indicator
            decoration should be applieddecoratorPainter - the ICellPainter that should be used to paint the row
            group related decorationpaintBg - flag to configure whether the CellPainterDecorator
            should paint the background or notspacing - the number of pixels that should be used as spacing between
            cell edge and decorationpaintDecorationDependent - flag to configure if the base ICellPainter should
            render decoration dependent or not. If it is set to
            false, the base painter will always paint at the
            same coordinates, using the whole cell bounds,
            true will cause the bounds of the cell to shrink
            for the base painter.
public RowGroupHeaderTextPainter(ICellPainter interiorPainter,
                                 boolean paintBg,
                                 boolean interiorPainterToSpanFullWidth)
RowGroupHeaderTextPainter that uses the given
 ICellPainter as base ICellPainter and decorate it with
 the RowGroupExpandCollapseImagePainter on the bottom edge of the
 cell. This constructor gives the opportunity to configure the behaviour
 of the RowGroupExpandCollapseImagePainter and the
 CellPainterDecorator for some attributes. Remains because of
 downwards compatibility.
interiorPainter - the base ICellPainter to usepaintBg - flag to configure whether the
            RowGroupExpandCollapseImagePainter should paint the
            background or notinteriorPainterToSpanFullWidth - flag to configure how the bounds of the base painter should be
            calculated| Method Detail | 
|---|
public int getPreferredWidth(ILayerCell cell,
                             org.eclipse.swt.graphics.GC gc,
                             IConfigRegistry configRegistry)
ICellPainter
getPreferredWidth in interface ICellPaintergetPreferredWidth in class CellPainterWrappercell - The cell for which the preferred width is requested.gc - The GC that is used for rendering.configRegistry - The IConfigRegistry that contains the configuration used for
            rendering.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||