Class PerType

    • Field Detail

      • m_MetaDataKey

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

        protected BaseRegExp m_TypeRegExp
        the regular expression for the types to draw.
      • m_ColorProvider

        protected ColorProvider m_ColorProvider
        the color provider to use.
      • m_NoTypeColor

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

        protected BaseString[] m_PredefinedTypes
        predefined types.
      • m_TypeColors

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

      • PerType

        public PerType()
    • 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.
      • setTypeRegExp

        public void setTypeRegExp​(BaseRegExp value)
        Sets the regular expression that the types must match in order to get drawn.
        Parameters:
        value - the expression
      • getTypeRegExp

        public BaseRegExp getTypeRegExp()
        Returns the regular expression that the types must match in order to get drawn.
        Returns:
        the expression
      • typeRegExpTipText

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

        public String colorProviderTipText()
        Returns the tip text for this property.
        Specified by:
        colorProviderTipText in interface ColorProviderHandler
        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.
      • setPredefinedTypes

        public void setPredefinedTypes​(BaseString[] value)
        Sets the predefined types.
        Parameters:
        value - the types
      • getPredefinedTypes

        public BaseString[] getPredefinedTypes()
        Returns the predefined types.
        Returns:
        the types
      • predefinedTypesTipText

        public String predefinedTypesTipText()
        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