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 TypeMethodDescriptionvoid
dispose()
float
The angle of the element, which must be between -90 and 90, inclusive.TheColor
of 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.double
The weight of the given element, which must be between 0 and 1 (inclusive).void
void
void
void
setMaxOccurrences
(int occurrences) void
setMinOccurrences
(int occurrences) void
setScale
(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
-
Field Details
-
colorList
-
fontList
-
angles
-
-
Constructor Details
-
TypeLabelProvider
public TypeLabelProvider()
-
-
Method Details
-
getLabel
Description copied from interface:ICloudLabelProvider
The label of the given element, which must not benull
.- Specified by:
getLabel
in interfaceICloudLabelProvider
- Returns:
- the label of the given element
-
getWeight
Description copied from interface:ICloudLabelProvider
The weight of the given element, which must be between 0 and 1 (inclusive).- Specified by:
getWeight
in interfaceICloudLabelProvider
- Returns:
- the weight of the given element
-
getColor
Description copied from interface:ICloudLabelProvider
TheColor
of the given element, which must not benull
.- Specified by:
getColor
in interfaceICloudLabelProvider
- Returns:
- the color of the given element
-
getFontData
Description copied from interface:ICloudLabelProvider
TheFontData
-array which defines the font of the given element. Each element must be provided with a unique array. Must not returnnull
.- Specified by:
getFontData
in 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:
dispose
in interfaceIBaseLabelProvider
- Overrides:
dispose
in classBaseLabelProvider
-
setAngles
- Specified by:
setAngles
in interfaceIEditableCloudLabelProvider
-
getAngle
Description copied from interface:ICloudLabelProvider
The angle of the element, which must be between -90 and 90, inclusive.- Specified by:
getAngle
in interfaceICloudLabelProvider
- Returns:
- the angle of the given element
-
setColors
- Specified by:
setColors
in interfaceIEditableCloudLabelProvider
-
setFonts
- Specified by:
setFonts
in interfaceIEditableCloudLabelProvider
-
getToolTip
Description copied from interface:ICloudLabelProvider
Return the tool tip of the element, ornull
, if none.- Specified by:
getToolTip
in interfaceICloudLabelProvider
- Returns:
- the tooltip of the given element
-
setScale
-