Class TypeLabelProvider
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.viewers.BaseLabelProvider
-
- org.eclipse.gef.cloudio.internal.ui.view.TypeLabelProvider
-
- All Implemented Interfaces:
ICloudLabelProvider,IEditableCloudLabelProvider,IBaseLabelProvider
public class TypeLabelProvider extends BaseLabelProvider implements IEditableCloudLabelProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeLabelProvider.Scaling
-
Constructor Summary
Constructors Constructor Description TypeLabelProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()floatgetAngle(java.lang.Object element)The angle of the element, which must be between -90 and 90, inclusive.ColorgetColor(java.lang.Object element)TheColorof the given element, which must not benull.FontData[]getFontData(java.lang.Object element)TheFontData-array which defines the font of the given element.java.lang.StringgetLabel(java.lang.Object element)The label of the given element, which must not benull.java.lang.StringgetToolTip(java.lang.Object element)Return the tool tip of the element, ornull, if none.doublegetWeight(java.lang.Object element)The weight of the given element, which must be between 0 and 1 (inclusive).voidsetAngles(java.util.List<java.lang.Float> angles)voidsetColors(java.util.List<RGB> newColors)voidsetFonts(java.util.List<FontData> newFonts)voidsetMaxOccurrences(int occurrences)voidsetMinOccurrences(int occurrences)voidsetScale(TypeLabelProvider.Scaling scaling)-
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, isLabelProperty, removeListener
-
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel(java.lang.Object element)
Description copied from interface:ICloudLabelProviderThe label of the given element, which must not benull.- Specified by:
getLabelin interfaceICloudLabelProvider- Returns:
- the label of the given element
-
getWeight
public double getWeight(java.lang.Object element)
Description copied from interface:ICloudLabelProviderThe weight of the given element, which must be between 0 and 1 (inclusive).- Specified by:
getWeightin interfaceICloudLabelProvider- Returns:
- the weight of the given element
-
getColor
public Color getColor(java.lang.Object element)
Description copied from interface:ICloudLabelProviderTheColorof the given element, which must not benull.- Specified by:
getColorin interfaceICloudLabelProvider- Returns:
- the color of the given element
-
getFontData
public FontData[] getFontData(java.lang.Object element)
Description copied from interface:ICloudLabelProviderTheFontData-array which defines the font of the given element. Each element must be provided with a unique array. Must not returnnull.- Specified by:
getFontDatain interfaceICloudLabelProvider- Returns:
- the font data for the given element
-
setMaxOccurrences
public void setMaxOccurrences(int occurrences)
-
setMinOccurrences
public void setMinOccurrences(int occurrences)
-
dispose
public void dispose()
- Specified by:
disposein interfaceIBaseLabelProvider- Overrides:
disposein classBaseLabelProvider
-
setAngles
public void setAngles(java.util.List<java.lang.Float> angles)
- Specified by:
setAnglesin interfaceIEditableCloudLabelProvider
-
getAngle
public float getAngle(java.lang.Object element)
Description copied from interface:ICloudLabelProviderThe angle of the element, which must be between -90 and 90, inclusive.- Specified by:
getAnglein interfaceICloudLabelProvider- Returns:
- the angle of the given element
-
setColors
public void setColors(java.util.List<RGB> newColors)
- Specified by:
setColorsin interfaceIEditableCloudLabelProvider
-
setFonts
public void setFonts(java.util.List<FontData> newFonts)
- Specified by:
setFontsin interfaceIEditableCloudLabelProvider
-
getToolTip
public java.lang.String getToolTip(java.lang.Object element)
Description copied from interface:ICloudLabelProviderReturn the tool tip of the element, ornull, if none.- Specified by:
getToolTipin interfaceICloudLabelProvider- Returns:
- the tooltip of the given element
-
setScale
public void setScale(TypeLabelProvider.Scaling scaling)
-
-