Class CenterImageLabelProvider

    • Constructor Detail

      • CenterImageLabelProvider

        public CenterImageLabelProvider()
    • Method Detail

      • getRectangle

        protected 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.
        item - the widget item to get rectangle for, cannot be null
        itemIndex - the item index where the paint event occurred
        Rectangle for the given widget item or null if cannot get
      • getImage

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