public class LabelImageProvider extends org.eclipse.jface.viewers.LabelProvider implements IPinPointProvider, IToolTipProvider
| Constructor and Description |
|---|
LabelImageProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.jface.resource.ImageRegistry |
createImageRegistry()
Creates the ImageRegistry
|
void |
dispose() |
org.eclipse.swt.graphics.RGB |
getFillColor()
Gets the setting for the fillColor argument provided to
GoogleIconDescriptor
|
java.lang.String |
getFrameStyle()
Gets the setting for the frameStyle argument provided to
GoogleIconDescriptor
|
java.lang.String |
getIconStyle()
Gets the setting for the iconStyle argument provided to
GoogleIconDescriptor
|
org.eclipse.swt.graphics.Image |
getImage(java.lang.Object element) |
protected org.eclipse.jface.resource.ImageRegistry |
getImageRegistry()
Gets the ImageRegistry use by this LabelImageProvider
|
protected org.eclipse.swt.graphics.Image |
getLabelImage(java.lang.Object element)
Gets the label image for the provided element
|
org.eclipse.swt.graphics.Point |
getPinPoint(java.lang.Object element)
Provides the relative position of the hot spot for the an image of an
element, e.g.
|
protected org.eclipse.swt.graphics.Point |
getPinPoint(java.lang.Object element,
float alignX,
float alignY)
Helper method for computing the point based on the size of the image.
|
org.eclipse.swt.graphics.RGB |
getTextColor()
Gets the setting for the textColor argument provided to
GoogleIconDescriptor
|
java.lang.Object |
getToolTip(java.lang.Object element)
Gets the tool tip for the given element
|
boolean |
hasShadow()
Gets the setting for the shadow argument provided to GoogleIconDescriptor
|
void |
setFillColor(org.eclipse.swt.graphics.RGB fillColor)
Sets the fillColor argument provided to GoogleIconDescriptor
|
void |
setFrameStyle(java.lang.String frameStyle)
Sets the frameStyle argument provided to GoogleIconDescriptor
|
void |
setHasShadow(boolean hasShadow)
Sets the shadow argument provided to GoogleIconDescriptor
|
void |
setIconStyle(java.lang.String iconStyle)
Sets the iconStyle argument provided to GoogleIconDescriptor
|
void |
setTextColor(org.eclipse.swt.graphics.RGB textColor)
Sets the textColor argument provided to GoogleIconDescriptor
|
createImageProvider, createTextImageProvider, createTextProvider, getTextaddListener, fireLabelProviderChanged, isLabelProperty, removeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectprotected org.eclipse.jface.resource.ImageRegistry getImageRegistry()
protected org.eclipse.jface.resource.ImageRegistry createImageRegistry()
public void dispose()
dispose in interface org.eclipse.jface.viewers.IBaseLabelProviderdispose in class org.eclipse.jface.viewers.BaseLabelProviderpublic boolean hasShadow()
public void setHasShadow(boolean hasShadow)
hasShadow - the new shadow valuepublic org.eclipse.swt.graphics.RGB getTextColor()
public void setTextColor(org.eclipse.swt.graphics.RGB textColor)
textColor - the new textColor valuepublic org.eclipse.swt.graphics.RGB getFillColor()
public void setFillColor(org.eclipse.swt.graphics.RGB fillColor)
fillColor - the new fillColor valuepublic java.lang.String getIconStyle()
public void setIconStyle(java.lang.String iconStyle)
iconStyle - the new iconStyle valuepublic java.lang.String getFrameStyle()
public void setFrameStyle(java.lang.String frameStyle)
frameStyle - the new frameStyle valueprotected org.eclipse.swt.graphics.Image getLabelImage(java.lang.Object element)
element - the elementpublic org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
getImage in interface org.eclipse.jface.viewers.ILabelProvidergetImage in class org.eclipse.jface.viewers.LabelProviderpublic org.eclipse.swt.graphics.Point getPinPoint(java.lang.Object element)
IPinPointProvidergetPinPoint in interface IPinPointProviderelement - the element for which to find the hot spotprotected org.eclipse.swt.graphics.Point getPinPoint(java.lang.Object element,
float alignX,
float alignY)
element - the element to provide the point foralignX - a float that is multiplied with the width of the image, to
give the x coordinate of the pointalignY - a float that is multiplied with the height of the image, to
give the y coordinate of the pointpublic java.lang.Object getToolTip(java.lang.Object element)
IToolTipProvidergetToolTip in interface IToolTipProvider