org.apache.fop.util
Class ColorExt
Color
org.apache.fop.util.ColorExt
public final class ColorExt
extends Color
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.
static ColorExt | createFromFoRgbIcc(float redReplacement, float greenReplacement, float blueReplacement, String profileName, String profileSrc, ColorSpace colorSpace, float[] iccValues) - Create ColorExt object backup up FO's rgb-icc color function
|
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.
|
String | getIccProfileName() - Get ICC profile name
|
String | getIccProfileSrc() - Get ICC profile source
|
ColorSpace | getOrigColorSpace()
|
float[] | getOriginalColorComponents()
|
String | toFunctionCall() - Create string representation of fop-rgb-icc function call to map this
ColorExt settings
|
createFromFoRgbIcc
public static ColorExt createFromFoRgbIcc(float redReplacement,
float greenReplacement,
float blueReplacement,
String profileName,
String profileSrc,
ColorSpace colorSpace,
float[] iccValues)
Create ColorExt object backup up FO's rgb-icc color function
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
- 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)
Create ColorExt object backing up SVG's icc-color function.
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
- the requested color object
getIccProfileName
public String getIccProfileName()
Get ICC profile name
getIccProfileSrc
public String getIccProfileSrc()
Get ICC profile source
getOrigColorSpace
public ColorSpace getOrigColorSpace()
getOriginalColorComponents
public float[] getOriginalColorComponents()
- the original color values
toFunctionCall
public String toFunctionCall()
Create string representation of fop-rgb-icc function call to map this
ColorExt settings
- the string representing the internal fop-rgb-icc() function call
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.