Class DefaultColorProvider

  • All Implemented Interfaces:
    ColorProvider, java.io.Serializable

    public class DefaultColorProvider
    extends java.lang.Object
    implements ColorProvider
    Provides the colors used by the Painter to paint the Markers for the Difference Groups and their modifications.
    Since:
    4.1
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultColorProvider

        public DefaultColorProvider()
    • Method Detail

      • getMarkerColor

        @Nonnull
        public java.awt.Color getMarkerColor​(DiffGroup.GroupType t)
        Returns the color of the marker for a difference group of the given type
        Specified by:
        getMarkerColor in interface ColorProvider
        Parameters:
        t - the type of the difference group
        Returns:
        the color of the marker for a difference group, should not be null
        Since:
        3.20
      • getOutlineColor

        @Nonnull
        public java.awt.Color getOutlineColor​(DiffGroup.GroupType t)
        Returns the color to mark the difference elements inside a difference group of the given type
        Specified by:
        getOutlineColor in interface ColorProvider
        Parameters:
        t - the type of the difference group
        Returns:
        the color to mark the difference elements, should not be null
        Since:
        3.20