public class TypeLabelProvider extends org.eclipse.jface.viewers.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<org.eclipse.swt.graphics.Color> |
colorList |
protected java.util.List<org.eclipse.swt.graphics.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.
|
org.eclipse.swt.graphics.Color |
getColor(java.lang.Object element)
The
Color of the given element, which must not be
null . |
org.eclipse.swt.graphics.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<org.eclipse.swt.graphics.RGB> newColors) |
void |
setFonts(java.util.List<org.eclipse.swt.graphics.FontData> newFonts) |
void |
setMaxOccurrences(int occurrences) |
void |
setMinOccurrences(int occurrences) |
void |
setScale(TypeLabelProvider.Scaling scaling) |
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
protected java.util.List<org.eclipse.swt.graphics.Color> colorList
protected java.util.List<org.eclipse.swt.graphics.Font> fontList
protected java.util.List<java.lang.Float> angles
public java.lang.String getLabel(java.lang.Object element)
ICloudLabelProvider
null
.getLabel
in interface ICloudLabelProvider
public double getWeight(java.lang.Object element)
ICloudLabelProvider
getWeight
in interface ICloudLabelProvider
public org.eclipse.swt.graphics.Color getColor(java.lang.Object element)
ICloudLabelProvider
Color
of the given element, which must not be
null
.getColor
in interface ICloudLabelProvider
public org.eclipse.swt.graphics.FontData[] getFontData(java.lang.Object element)
ICloudLabelProvider
FontData
-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 ICloudLabelProvider
public void setMaxOccurrences(int occurrences)
public void setMinOccurrences(int occurrences)
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IBaseLabelProvider
dispose
in class org.eclipse.jface.viewers.BaseLabelProvider
public void setAngles(java.util.List<java.lang.Float> angles)
setAngles
in interface IEditableCloudLabelProvider
public float getAngle(java.lang.Object element)
ICloudLabelProvider
getAngle
in interface ICloudLabelProvider
public void setColors(java.util.List<org.eclipse.swt.graphics.RGB> newColors)
setColors
in interface IEditableCloudLabelProvider
public void setFonts(java.util.List<org.eclipse.swt.graphics.FontData> newFonts)
setFonts
in interface IEditableCloudLabelProvider
public java.lang.String getToolTip(java.lang.Object element)
ICloudLabelProvider
null
, if none.getToolTip
in interface ICloudLabelProvider
public void setScale(TypeLabelProvider.Scaling scaling)
Copyright (c) 2000, 2012 itemis AG and others. All rights reserved.