| java.lang.Object java.awt.Color org.apache.fop.util.ColorExt
ColorExt | final public class ColorExt extends Color (Code) | | 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.
|
Method Summary | |
public static ColorExt | createFromFoRgbIcc(float redReplacement, float greenReplacement, float blueReplacement, String profileName, String profileSrc, ColorSpace colorSpace, float[] iccValues) | public static ColorExt | createFromSvgIccColor(float red, float green, float blue, float opacity, String profileName, String profileHref, ColorSpace profileCS, float[] colorValues) Create ColorExt object backing up SVG's icc-color function. | public String | getIccProfileName() | public String | getIccProfileSrc() | public ColorSpace | getOrigColorSpace() | public float[] | getOriginalColorComponents() | public String | toFunctionCall() |
createFromFoRgbIcc | public static ColorExt createFromFoRgbIcc(float redReplacement, float greenReplacement, float blueReplacement, String profileName, String profileSrc, ColorSpace colorSpace, float[] iccValues)(Code) | | Create ColorExt object backup up FO's rgb-icc color function
Parameters: redReplacement - Red part of RGB replacement color that will be used when ICCprofile can not be loaded Parameters: greenReplacement - Green part of RGB replacement color that will be used when ICCprofile can not be loaded Parameters: blueReplacement - Blue part of RGB replacement color that will be used when ICCprofile can not be loaded Parameters: profileName - Name of ICC profile Parameters: profileSrc - Source of ICC profile Parameters: colorSpace - ICC ColorSpace for the ICC profile Parameters: iccValues - color values 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)(Code) | | 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 Parameters: green - Green value resulting from the conversion from the userprovided (icc) color values to the batik (rgb) color space Parameters: blue - Blue value resulting from the conversion from the userprovided (icc) color values to the batik (rgb) color space Parameters: opacity - Opacity Parameters: profileName - ICC profile name Parameters: profileHref - the URI to the color profile Parameters: profileCS - ICC ColorSpace profile Parameters: colorValues - ICC color values the requested color object |
getIccProfileName | public String getIccProfileName()(Code) | | Get ICC profile name
ICC profile name |
getIccProfileSrc | public String getIccProfileSrc()(Code) | | Get ICC profile source
ICC profile source |
getOrigColorSpace | public ColorSpace getOrigColorSpace()(Code) | | the original ColorSpace |
getOriginalColorComponents | public float[] getOriginalColorComponents()(Code) | | the original color values |
toFunctionCall | public String toFunctionCall()(Code) | | Create string representation of fop-rgb-icc function call to map this
ColorExt settings
the string representing the internal fop-rgb-icc() function call |
Methods inherited from java.awt.Color | public static int HSBtoRGB(float hue, float saturation, float brightness)(Code)(Java Doc) public static float[] RGBtoHSB(int r, int g, int b, float[] hsbvals)(Code)(Java Doc) public Color brighter()(Code)(Java Doc) public synchronized PaintContext createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)(Code)(Java Doc) public Color darker()(Code)(Java Doc) public static Color decode(String nm) throws NumberFormatException(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public int getAlpha()(Code)(Java Doc) public int getBlue()(Code)(Java Doc) public static Color getColor(String nm)(Code)(Java Doc) public static Color getColor(String nm, Color v)(Code)(Java Doc) public static Color getColor(String nm, int v)(Code)(Java Doc) public float[] getColorComponents(float[] compArray)(Code)(Java Doc) public float[] getColorComponents(ColorSpace cspace, float[] compArray)(Code)(Java Doc) public ColorSpace getColorSpace()(Code)(Java Doc) public float[] getComponents(float[] compArray)(Code)(Java Doc) public float[] getComponents(ColorSpace cspace, float[] compArray)(Code)(Java Doc) public int getGreen()(Code)(Java Doc) public static Color getHSBColor(float h, float s, float b)(Code)(Java Doc) public int getRGB()(Code)(Java Doc) public float[] getRGBColorComponents(float[] compArray)(Code)(Java Doc) public float[] getRGBComponents(float[] compArray)(Code)(Java Doc) public int getRed()(Code)(Java Doc) public int getTransparency()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|