public class TypeLabelProvider extends BaseLabelProvider implements IEditableCloudLabelProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeLabelProvider.Scaling |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.Float> |
angles |
protected java.util.List<Color> |
colorList |
protected java.util.List<Font> |
fontList |
| Constructor and Description |
|---|
TypeLabelProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
float |
getAngle(java.lang.Object element)
The angle of the element, which must be between -90 and 90, inclusive.
|
Color |
getColor(java.lang.Object element)
The
Color of the given element, which must not be
null. |
FontData[] |
getFontData(java.lang.Object element)
The
FontData-array which defines the font of the given element. |
java.lang.String |
getLabel(java.lang.Object element)
The label of the given element, which must not be
null. |
java.lang.String |
getToolTip(java.lang.Object element)
Return the tool tip of the element, or
null, if none. |
double |
getWeight(java.lang.Object element)
The weight of the given element, which must be between 0 and 1
(inclusive).
|
void |
setAngles(java.util.List<java.lang.Float> angles) |
void |
setColors(java.util.List<RGB> newColors) |
void |
setFonts(java.util.List<FontData> newFonts) |
void |
setMaxOccurrences(int occurrences) |
void |
setMinOccurrences(int occurrences) |
void |
setScale(TypeLabelProvider.Scaling scaling) |
addListener, fireLabelProviderChanged, isLabelProperty, removeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, isLabelProperty, removeListenerprotected java.util.List<Color> colorList
protected java.util.List<Font> fontList
protected java.util.List<java.lang.Float> angles
public java.lang.String getLabel(java.lang.Object element)
ICloudLabelProvidernull.getLabel in interface ICloudLabelProviderpublic double getWeight(java.lang.Object element)
ICloudLabelProvidergetWeight in interface ICloudLabelProviderpublic Color getColor(java.lang.Object element)
ICloudLabelProviderColor of the given element, which must not be
null.getColor in interface ICloudLabelProviderpublic FontData[] getFontData(java.lang.Object element)
ICloudLabelProviderFontData-array which defines the font of the given element.
Each element must be provided with a unique array. Must not return
null.getFontData in interface ICloudLabelProviderpublic void setMaxOccurrences(int occurrences)
public void setMinOccurrences(int occurrences)
public void dispose()
dispose in interface IBaseLabelProviderdispose in class BaseLabelProviderpublic void setAngles(java.util.List<java.lang.Float> angles)
setAngles in interface IEditableCloudLabelProviderpublic float getAngle(java.lang.Object element)
ICloudLabelProvidergetAngle in interface ICloudLabelProviderpublic void setColors(java.util.List<RGB> newColors)
setColors in interface IEditableCloudLabelProviderpublic void setFonts(java.util.List<FontData> newFonts)
setFonts in interface IEditableCloudLabelProviderpublic java.lang.String getToolTip(java.lang.Object element)
ICloudLabelProvidernull, if none.getToolTip in interface ICloudLabelProviderpublic void setScale(TypeLabelProvider.Scaling scaling)
Copyright (c) 2000, 2012 itemis AG and others. All rights reserved.