Class DefaultColorProvider

java.lang.Object
com.inet.pdfc.print.DefaultColorProvider
All Implemented Interfaces:
ColorProvider, Serializable

public class DefaultColorProvider extends 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:
  • Constructor Details

    • DefaultColorProvider

      public DefaultColorProvider()
  • Method Details

    • getMarkerColor

      @Nonnull public @Nonnull 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 @Nonnull 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