ColorWithAlternatives@Deprecated
public final class ColorExt
extends java.awt.Color
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.
| Modifier and Type | Method and 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 function
|
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.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
java.lang.String |
getIccProfileName()
Deprecated.
Get ICC profile name
|
java.lang.String |
getIccProfileSrc()
Deprecated.
Get ICC profile source
|
java.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
|
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSB, toStringpublic static ColorExt createFromFoRgbIcc(float redReplacement, float greenReplacement, float blueReplacement, java.lang.String profileName, java.lang.String profileSrc, java.awt.color.ColorSpace colorSpace, float[] iccValues)
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 valuespublic 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)
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 valuespublic int hashCode()
hashCode in class java.awt.Colorpublic boolean equals(java.lang.Object obj)
equals in class java.awt.Colorpublic java.lang.String getIccProfileName()
public java.lang.String getIccProfileSrc()
public java.awt.color.ColorSpace getOrigColorSpace()
public float[] getOriginalColorComponents()
public java.lang.String toFunctionCall()
Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.