Class ColorExt

java.lang.Object
java.awt.Color
org.apache.fop.util.ColorExt
All Implemented Interfaces:
Paint, Transparency, Serializable

@Deprecated public final class ColorExt extends Color
Deprecated.
Replaced by ColorWithAlternatives
Color helper class.

This class extends java.awt.Color class keeping track of the original color property values specified by the fo user in a rgb-icc call.

See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Deprecated.
      See Also:
    • rgbReplacementRed

      private float rgbReplacementRed
      Deprecated.
    • rgbReplacementGreen

      private float rgbReplacementGreen
      Deprecated.
    • rgbReplacementBlue

      private float rgbReplacementBlue
      Deprecated.
    • iccProfileName

      private String iccProfileName
      Deprecated.
    • iccProfileSrc

      private String iccProfileSrc
      Deprecated.
    • colorSpace

      private ColorSpace colorSpace
      Deprecated.
    • colorValues

      private float[] colorValues
      Deprecated.
  • Constructor Details

    • ColorExt

      private ColorExt(ColorSpace colorSpace, float[] colorValues, float opacity)
      Deprecated.
    • ColorExt

      private ColorExt(float red, float green, float blue, float opacity)
      Deprecated.
  • Method Details

    • createFromFoRgbIcc

      public static ColorExt createFromFoRgbIcc(float redReplacement, float greenReplacement, float blueReplacement, String profileName, String profileSrc, ColorSpace colorSpace, float[] iccValues)
      Deprecated.
      Create ColorExt object backup up FO's rgb-icc color function
      Parameters:
      redReplacement - Red part of RGB replacement color that will be used when ICC profile can not be loaded
      greenReplacement - Green part of RGB replacement color that will be used when ICC profile can not be loaded
      blueReplacement - Blue part of RGB replacement color that will be used when ICC profile can not be loaded
      profileName - Name of ICC profile
      profileSrc - Source of ICC profile
      colorSpace - ICC ColorSpace for the ICC profile
      iccValues - color values
      Returns:
      the requested color object
    • createFromSvgIccColor

      public static ColorExt createFromSvgIccColor(float red, float green, float blue, float opacity, String profileName, String profileHref, ColorSpace profileCS, float[] colorValues)
      Deprecated.
      Create ColorExt object backing up SVG's icc-color function.
      Parameters:
      red - Red value resulting from the conversion from the user provided (icc) color values to the batik (rgb) color space
      green - Green value resulting from the conversion from the user provided (icc) color values to the batik (rgb) color space
      blue - Blue value resulting from the conversion from the user provided (icc) color values to the batik (rgb) color space
      opacity - Opacity
      profileName - ICC profile name
      profileHref - the URI to the color profile
      profileCS - ICC ColorSpace profile
      colorValues - ICC color values
      Returns:
      the requested color object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Color
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Color
    • getIccProfileName

      public String getIccProfileName()
      Deprecated.
      Get ICC profile name
      Returns:
      ICC profile name
    • getIccProfileSrc

      public String getIccProfileSrc()
      Deprecated.
      Get ICC profile source
      Returns:
      ICC profile source
    • getOrigColorSpace

      public ColorSpace getOrigColorSpace()
      Deprecated.
      Returns:
      the original ColorSpace
    • getOriginalColorComponents

      public float[] getOriginalColorComponents()
      Deprecated.
      Returns the original color values.
      Returns:
      the original color values
    • toFunctionCall

      public String toFunctionCall()
      Deprecated.
      Create string representation of fop-rgb-icc function call to map this ColorExt settings
      Returns:
      the string representing the internal fop-rgb-icc() function call