Class CenterImageLabelProvider

    • Constructor Detail

      • CenterImageLabelProvider

        public CenterImageLabelProvider()
    • Method Detail

      • getRectangle

        protected org.eclipse.swt.graphics.Rectangle getRectangle​(org.eclipse.swt.widgets.Widget item,
                                                                  int itemIndex)
        Returns Rectangle for the given widget item. Can return null the no image will be painted.
        Parameters:
        item - the widget item to get rectangle for, cannot be null
        itemIndex - the item index where the paint event occurred
        Returns:
        Rectangle for the given widget item or null if cannot get
      • getImage

        protected abstract org.eclipse.swt.graphics.Image getImage​(Object element)
        Returns the image for the label of the given element.
        Parameters:
        element - the element for which to provide the label image, cannot be null
        Returns:
        the image used to label the element or null if none