Class TypeColorMapping

    • Field Detail

      • m_MetaDataKey

        protected String m_MetaDataKey
        the key in the meta-data that contains the type.
      • m_Types

        protected BaseString[] m_Types
        the types.
      • m_Colors

        protected BaseColor[] m_Colors
        the colors.
      • m_FallbackColor

        protected Color m_FallbackColor
        the fallback color for labels that have no color defined.
      • m_NoTypeColor

        protected Color m_NoTypeColor
        the color to use if no type present.
      • m_Mapping

        protected transient HashMap<String,​Color> m_Mapping
        the type/color mapping.
    • Constructor Detail

      • TypeColorMapping

        public TypeColorMapping()
    • Method Detail

      • setMetaDataKey

        public void setMetaDataKey​(String value)
        Sets the key in the meta-data of the object that contains the type.
        Parameters:
        value - the key
      • getMetaDataKey

        public String getMetaDataKey()
        Returns the key in the meta-data of the object that contains the type.
        Returns:
        the key
      • metaDataKeyTipText

        public String metaDataKeyTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setTypes

        public void setTypes​(BaseString[] value)
        Sets the types/labels.
        Parameters:
        value - the types
      • getTypes

        public BaseString[] getTypes()
        Returns the types/labels.
        Returns:
        the types
      • typesTipText

        public String typesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setColors

        public void setColors​(BaseColor[] value)
        Sets the colors associated with the types/labels.
        Parameters:
        value - the colors
      • getColors

        public BaseColor[] getColors()
        Returns the colors associated with the types/labels.
        Returns:
        the colors
      • colorsTipText

        public String colorsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setFallbackColor

        public void setFallbackColor​(Color value)
        Sets the color to use when a label has no color associated.
        Parameters:
        value - the color
      • getFallbackColor

        public Color getFallbackColor()
        Returns the color to use when a label has no color associated.
        Returns:
        the color
      • fallbackColorTipText

        public String fallbackColorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNoTypeColor

        public void setNoTypeColor​(Color value)
        Sets the color to use when no type information available.
        Parameters:
        value - the color
      • getNoTypeColor

        public Color getNoTypeColor()
        Returns the color to use when no type information available.
        Returns:
        the color
      • noTypeColorTipText

        public String noTypeColorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • generateQuickInfo

        protected String generateQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Overrides:
        generateQuickInfo in class AbstractAnnotationColors
        Returns:
        null if no info available, otherwise short string