Class RowGroupExpandCollapseImagePainter

  • All Implemented Interfaces:
    ICellPainter

    public class RowGroupExpandCollapseImagePainter
    extends ImagePainter
    Paints the triangular expand/collapse row header images. It is used to decorate row header cells to show the current row group expand/collapse state.
    • Constructor Detail

      • RowGroupExpandCollapseImagePainter

        public RowGroupExpandCollapseImagePainter()
        Create a RowGroupExpandCollapseImagePainter that uses the default icons (black triangles) and renders the background.
      • RowGroupExpandCollapseImagePainter

        public RowGroupExpandCollapseImagePainter​(boolean paintBg)
        Create a RowGroupExpandCollapseImagePainter that uses the default icons (black triangles).
        Parameters:
        paintBg - true if it should render the background itself, false if the background rendering should be skipped in here.
      • RowGroupExpandCollapseImagePainter

        public RowGroupExpandCollapseImagePainter​(boolean paintBg,
                                                  boolean invertIcons)
        Create a RowGroupExpandCollapseImagePainter.
        Parameters:
        paintBg - true if it should render the background itself, false if the background rendering should be skipped in here.
        invertIcons - Specify whether the default icons should be used (black triangles) or if inverted icons should be used (white triangles).
    • Method Detail

      • setExpandCollapseImages

        public void setExpandCollapseImages​(org.eclipse.swt.graphics.Image expandedImage,
                                            org.eclipse.swt.graphics.Image collapsedImage)
        Set the images that should be used to indicate the current row group expand/collapse state.
        Parameters:
        expandedImage - Image to be used to indicate that a row group is expanded.
        collapsedImage - Image to be used to indicate that a row group is collapsed.