Package org.yamcs.studio.core.utils
Class CenteredImageLabelProvider
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jface.viewers.CellLabelProvider
org.eclipse.jface.viewers.OwnerDrawLabelProvider
org.yamcs.studio.core.utils.CenteredImageLabelProvider
- All Implemented Interfaces:
IBaseLabelProvider
,IToolTipProvider
A table column with SWT.CENTER and just an image, will not be centered on at least Windows platforms. Work around
this issue by custom drawing.
FDI's note: reconsider implementation. It causes the default selection color to be limited to the width of the actual columns, rather than the full table width. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=26045
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.jface.viewers.OwnerDrawLabelProvider
dispose, initialize, initialize, setOwnerDrawEnabled, setUpOwnerDraw, update
Methods inherited from class org.eclipse.jface.viewers.CellLabelProvider
getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, useNativeToolTip
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
CenteredImageLabelProvider
public CenteredImageLabelProvider()
-
-
Method Details
-
measure
- Specified by:
measure
in classOwnerDrawLabelProvider
-
paint
- Specified by:
paint
in classOwnerDrawLabelProvider
-
erase
- Overrides:
erase
in classOwnerDrawLabelProvider
-
getImage
-