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 Details

    • 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 Details

    • getImage

      protected org.eclipse.swt.graphics.Image getImage(ILayerCell cell, IConfigRegistry configRegistry)
      Overrides:
      getImage in class ImagePainter
      Parameters:
      cell - The ILayerCell for which this ImagePainter is called.
      configRegistry - The current IConfigRegistry to retrieve the cell style information from.
      Returns:
      The Image that should be painted by this ImagePainter.
    • 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.