Interface ColorProvider

  • All Superinterfaces:
    java.io.Serializable
    All Known Subinterfaces:
    Settings, UserSettings
    All Known Implementing Classes:
    DefaultColorProvider, DefaultSetting

    public interface ColorProvider
    extends java.io.Serializable
    Provides the colors used by the Painter to paint the Markers for the Difference Groups and their modifications.
    Since:
    3.20
    • Method Detail

      • getMarkerColor

        @Nonnull
        java.awt.Color getMarkerColor​(DiffGroup.GroupType t)
        Returns the color of the marker for a difference group of the given type
        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
        java.awt.Color getOutlineColor​(DiffGroup.GroupType t)
        Returns the color to mark the difference elements inside a difference group of the given type
        Parameters:
        t - the type of the difference group
        Returns:
        the color to mark the difference elements, should not be null
        Since:
        3.20