Class TypeLabelProvider

    • Field Detail

      • colorList

        protected java.util.List<Color> colorList
      • fontList

        protected java.util.List<Font> fontList
      • angles

        protected java.util.List<java.lang.Float> angles
    • Constructor Detail

      • TypeLabelProvider

        public TypeLabelProvider()
    • Method Detail

      • getLabel

        public java.lang.String getLabel​(java.lang.Object element)
        Description copied from interface: ICloudLabelProvider
        The label of the given element, which must not be null.
        Specified by:
        getLabel in interface ICloudLabelProvider
        Returns:
        the label of the given element
      • getWeight

        public double getWeight​(java.lang.Object element)
        Description copied from interface: ICloudLabelProvider
        The weight of the given element, which must be between 0 and 1 (inclusive).
        Specified by:
        getWeight in interface ICloudLabelProvider
        Returns:
        the weight of the given element
      • getFontData

        public FontData[] getFontData​(java.lang.Object element)
        Description copied from interface: ICloudLabelProvider
        The FontData-array which defines the font of the given element. Each element must be provided with a unique array. Must not return null.
        Specified by:
        getFontData in interface ICloudLabelProvider
        Returns:
        the font data for the given element
      • setMaxOccurrences

        public void setMaxOccurrences​(int occurrences)
      • setMinOccurrences

        public void setMinOccurrences​(int occurrences)
      • getAngle

        public float getAngle​(java.lang.Object element)
        Description copied from interface: ICloudLabelProvider
        The angle of the element, which must be between -90 and 90, inclusive.
        Specified by:
        getAngle in interface ICloudLabelProvider
        Returns:
        the angle of the given element
      • getToolTip

        public java.lang.String getToolTip​(java.lang.Object element)
        Description copied from interface: ICloudLabelProvider
        Return the tool tip of the element, or null, if none.
        Specified by:
        getToolTip in interface ICloudLabelProvider
        Returns:
        the tooltip of the given element