Package org.apache.fop.util
Class ColorExt
- java.lang.Object
-
- java.awt.Color
-
- org.apache.fop.util.ColorExt
-
- All Implemented Interfaces:
java.awt.Paint
,java.awt.Transparency
,java.io.Serializable
@Deprecated public final class ColorExt extends java.awt.Color
Deprecated.Replaced byColorWithAlternatives
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.color.ColorSpace
colorSpace
Deprecated.private float[]
colorValues
Deprecated.private java.lang.String
iccProfileName
Deprecated.private java.lang.String
iccProfileSrc
Deprecated.private float
rgbReplacementBlue
Deprecated.private float
rgbReplacementGreen
Deprecated.private float
rgbReplacementRed
Deprecated.private static long
serialVersionUID
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ColorExt
createFromFoRgbIcc(float redReplacement, float greenReplacement, float blueReplacement, java.lang.String profileName, java.lang.String profileSrc, java.awt.color.ColorSpace colorSpace, float[] iccValues)
Deprecated.Create ColorExt object backup up FO's rgb-icc color functionstatic ColorExt
createFromSvgIccColor(float red, float green, float blue, float opacity, java.lang.String profileName, java.lang.String profileHref, java.awt.color.ColorSpace profileCS, float[] colorValues)
Deprecated.Create ColorExt object backing up SVG's icc-color function.boolean
equals(java.lang.Object obj)
Deprecated.java.lang.String
getIccProfileName()
Deprecated.Get ICC profile namejava.lang.String
getIccProfileSrc()
Deprecated.Get ICC profile sourcejava.awt.color.ColorSpace
getOrigColorSpace()
Deprecated.float[]
getOriginalColorComponents()
Deprecated.Returns the original color values.int
hashCode()
Deprecated.java.lang.String
toFunctionCall()
Deprecated.Create string representation of fop-rgb-icc function call to map this ColorExt settings-
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSB, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.- See Also:
- Constant Field Values
-
rgbReplacementRed
private float rgbReplacementRed
Deprecated.
-
rgbReplacementGreen
private float rgbReplacementGreen
Deprecated.
-
rgbReplacementBlue
private float rgbReplacementBlue
Deprecated.
-
iccProfileName
private java.lang.String iccProfileName
Deprecated.
-
iccProfileSrc
private java.lang.String iccProfileSrc
Deprecated.
-
colorSpace
private java.awt.color.ColorSpace colorSpace
Deprecated.
-
colorValues
private float[] colorValues
Deprecated.
-
-
Method Detail
-
createFromFoRgbIcc
public static ColorExt createFromFoRgbIcc(float redReplacement, float greenReplacement, float blueReplacement, java.lang.String profileName, java.lang.String profileSrc, java.awt.color.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 loadedgreenReplacement
- Green part of RGB replacement color that will be used when ICC profile can not be loadedblueReplacement
- Blue part of RGB replacement color that will be used when ICC profile can not be loadedprofileName
- Name of ICC profileprofileSrc
- Source of ICC profilecolorSpace
- ICC ColorSpace for the ICC profileiccValues
- color values- Returns:
- the requested color object
-
createFromSvgIccColor
public static ColorExt createFromSvgIccColor(float red, float green, float blue, float opacity, java.lang.String profileName, java.lang.String profileHref, java.awt.color.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 spacegreen
- Green value resulting from the conversion from the user provided (icc) color values to the batik (rgb) color spaceblue
- Blue value resulting from the conversion from the user provided (icc) color values to the batik (rgb) color spaceopacity
- OpacityprofileName
- ICC profile nameprofileHref
- the URI to the color profileprofileCS
- ICC ColorSpace profilecolorValues
- ICC color values- Returns:
- the requested color object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.awt.Color
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equals
in classjava.awt.Color
-
getIccProfileName
public java.lang.String getIccProfileName()
Deprecated.Get ICC profile name- Returns:
- ICC profile name
-
getIccProfileSrc
public java.lang.String getIccProfileSrc()
Deprecated.Get ICC profile source- Returns:
- ICC profile source
-
getOrigColorSpace
public java.awt.color.ColorSpace getOrigColorSpace()
Deprecated.- Returns:
- the original ColorSpace
-
getOriginalColorComponents
public float[] getOriginalColorComponents()
Deprecated.Returns the original color values.- Returns:
- the original color values
-
toFunctionCall
public java.lang.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
-
-