Class ColumnGroupExpandCollapseImagePainter

  • All Implemented Interfaces:
    ICellPainter

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

      • ColumnGroupExpandCollapseImagePainter

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

        public ColumnGroupExpandCollapseImagePainter​(boolean paintBg)
        Create a ColumnGroupExpandCollapseImagePainter 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.
      • ColumnGroupExpandCollapseImagePainter

        public ColumnGroupExpandCollapseImagePainter​(boolean paintBg,
                                                     boolean invertIcons)
        Create a ColumnGroupExpandCollapseImagePainter.
        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 column group expand/collapse state.
        Parameters:
        expandedImage - Image to be used to indicate that a column group is expanded.
        collapsedImage - Image to be used to indicate that a column group is collapsed.