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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()floatThe angle of the element, which must be between -90 and 90, inclusive.TheColorof the given element, which must not benull.FontData[]getFontData(Object element) TheFontData-array which defines the font of the given element.The label of the given element, which must not benull.getToolTip(Object element) Return the tool tip of the element, ornull, if none.doubleThe weight of the given element, which must be between 0 and 1 (inclusive).voidvoidvoidvoidsetMaxOccurrences(int occurrences) voidsetMinOccurrences(int occurrences) voidsetScale(TypeLabelProvider.Scaling scaling) Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, fireLabelProviderChanged, isLabelProperty, removeListenerMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, isLabelProperty, removeListener
-
Field Details
-
colorList
-
fontList
-
angles
-
-
Constructor Details
-
TypeLabelProvider
public TypeLabelProvider()
-
-
Method Details
-
getLabel
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
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
Description copied from interface:ICloudLabelProviderTheColorof the given element, which must not benull.- Specified by:
getColorin interfaceICloudLabelProvider- Returns:
- the color of the given element
-
getFontData
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
- Specified by:
setAnglesin interfaceIEditableCloudLabelProvider
-
getAngle
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
- Specified by:
setColorsin interfaceIEditableCloudLabelProvider
-
setFonts
- Specified by:
setFontsin interfaceIEditableCloudLabelProvider
-
getToolTip
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
-