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 @Deprecated public @Nonnull Color getMarkerColor(DiffGroup.GroupType t)
      Deprecated.
      As of i-net PDFC 25.10, use instead getMarkerColor(ModificationType)
      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 @Deprecated public @Nonnull Color getOutlineColor(DiffGroup.GroupType t)
      Deprecated.
      As of i-net PDFC 25.10, use instead getOutlineColor(ModificationType)
      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
    • getOutlineColor

      @Nonnull public @Nonnull Color getOutlineColor(Modification.ModificationType t)
      Returns the outline color for the given modification type.
      Specified by:
      getOutlineColor in interface ColorProvider
      Parameters:
      t - the modification type for which the outline color is requested
      Returns:
      the outline color for the specified modification type, must not be null
      Since:
      25.10
    • getMarkerColor

      @Nonnull public @Nonnull Color getMarkerColor(Modification.ModificationType t)
      Returns the color used to mark elements for a given modification type.
      Specified by:
      getMarkerColor in interface ColorProvider
      Parameters:
      t - the modification type for which the marker color is requested
      Returns:
      the color for marking elements of the specified modification type, must not be null
      Since:
      25.10