All Implemented Interfaces:

public class GroupByCellTextPainter extends TextPainter
Specialized TextPainter that is used for grouping rows. It will only render text in the tree column and in columns that contain group by summary values.

Extracted to a separate class to be able to create theme configurations where you are able to wrap this painter easily, instead of creating similar inner classes all the time.

  • Constructor Details

    • GroupByCellTextPainter

      public GroupByCellTextPainter()
  • Method Details

    • getTextToDisplay

      protected String getTextToDisplay(ILayerCell cell, gc, int availableLength, String text)
      Description copied from class: AbstractTextPainter
      Computes dependent on the configuration of the TextPainter the text to display. If word wrapping is enabled new lines are inserted if the available space is not enough. If calculation of available space is enabled, the space is automatically widened for the text to display, and if no calculation is enabled the text is cut and modified to end with "..." to fit into the available space
      getTextToDisplay in class AbstractTextPainter
      cell - the current cell to paint
      gc - the current GC
      availableLength - the available space for the text to display
      text - the text that should be modified for display
      the modified text