Class AbstractAnnotationColors

    • Field Detail

      • m_Enabled

        protected boolean m_Enabled
        whether the colorization is enabled.
    • Constructor Detail

      • AbstractAnnotationColors

        public AbstractAnnotationColors()
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean value)
        Sets whether the data cleaner is enabled.
        Parameters:
        value - true if enabled
      • getEnabled

        public boolean getEnabled()
        Returns whether the data cleaner is enabled.
        Returns:
        true if enabled
      • enabledTipText

        public String enabledTipText()
        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.
        Default implementation returns null.
        Returns:
        null if no info available, otherwise short string
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(LocatedObjects objects)
        Hook method for checks.
        Parameters:
        objects - the annotations to check
        Returns:
        null if checks passed, otherwise error message
      • doInitColors

        protected abstract void doInitColors​(LocatedObjects objects,
                                             MessageCollection errors)
        Initializes the colors with the annotations.
        Parameters:
        objects - the annotations to use for initialization
        errors - for collecting errors
      • initColors

        public void initColors​(LocatedObjects objects,
                               MessageCollection errors)
        Initializes the colors with the annotations.
        Specified by:
        initColors in interface AnnotationColors
        Parameters:
        objects - the annotations to use for initialization
        errors - for collecting errors
      • doGetColor

        protected abstract Color doGetColor​(LocatedObject object)
        Returns the color for the object.
        Parameters:
        object - the annotation to get the color for