Interface ColorFactory
-
- All Known Implementing Classes:
DefaultFactories
public interface ColorFactory
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Color
createColor(java.awt.color.ColorSpace space, float[] values)
Create a specific color in the colorspacejava.awt.color.ColorSpace
createColorSpace(int type, java.lang.Object params)
Create a colorspace object from one of the above space IDs.java.awt.Composite
createComposite(java.awt.color.ColorSpace sourcespace, int blendMode, boolean alphaIsShape, float alpha)
Create a Composite for the blend mode and alpha parameters.
-
-
-
Field Detail
-
DeviceGrayColorspace
static final int DeviceGrayColorspace
Colorspace constants- See Also:
- Constant Field Values
-
CalibratedGrayColorspace
static final int CalibratedGrayColorspace
- See Also:
- Constant Field Values
-
DeviceRGBColorspace
static final int DeviceRGBColorspace
- See Also:
- Constant Field Values
-
CalibratedRGBColorspace
static final int CalibratedRGBColorspace
- See Also:
- Constant Field Values
-
DeviceCMYKColorspace
static final int DeviceCMYKColorspace
- See Also:
- Constant Field Values
-
LabColorspace
static final int LabColorspace
- See Also:
- Constant Field Values
-
IndexedColorspace
static final int IndexedColorspace
- See Also:
- Constant Field Values
-
ICCBasedColorspace
static final int ICCBasedColorspace
- See Also:
- Constant Field Values
-
SeparationColorspace
static final int SeparationColorspace
- See Also:
- Constant Field Values
-
DeviceNColorspace
static final int DeviceNColorspace
- See Also:
- Constant Field Values
-
PatternColorspace
static final int PatternColorspace
- See Also:
- Constant Field Values
-
UnknownColorspace
static final int UnknownColorspace
- See Also:
- Constant Field Values
-
AbsoluteColorimetricIntent
static final int AbsoluteColorimetricIntent
Rendering intents- See Also:
- Constant Field Values
-
RelativeColorimetricIntent
static final int RelativeColorimetricIntent
- See Also:
- Constant Field Values
-
SaturationIntent
static final int SaturationIntent
- See Also:
- Constant Field Values
-
PerceptualIntent
static final int PerceptualIntent
- See Also:
- Constant Field Values
-
NormalBlendMode
static final int NormalBlendMode
Blend modes- See Also:
- Constant Field Values
-
MultiplyBlendMode
static final int MultiplyBlendMode
- See Also:
- Constant Field Values
-
ScreenBlendMode
static final int ScreenBlendMode
- See Also:
- Constant Field Values
-
OverlayBlendMode
static final int OverlayBlendMode
- See Also:
- Constant Field Values
-
DarkenBlendMode
static final int DarkenBlendMode
- See Also:
- Constant Field Values
-
LightenBlendMode
static final int LightenBlendMode
- See Also:
- Constant Field Values
-
ColorDodgeBlendMode
static final int ColorDodgeBlendMode
- See Also:
- Constant Field Values
-
ColorBurnBlendMode
static final int ColorBurnBlendMode
- See Also:
- Constant Field Values
-
HardLightBlendMode
static final int HardLightBlendMode
- See Also:
- Constant Field Values
-
SoftLightBlendMode
static final int SoftLightBlendMode
- See Also:
- Constant Field Values
-
DifferenceBlendMode
static final int DifferenceBlendMode
- See Also:
- Constant Field Values
-
ExclusionBlendMode
static final int ExclusionBlendMode
- See Also:
- Constant Field Values
-
HueBlendMode
static final int HueBlendMode
- See Also:
- Constant Field Values
-
SaturationBlendMode
static final int SaturationBlendMode
- See Also:
- Constant Field Values
-
ColorBlendMode
static final int ColorBlendMode
- See Also:
- Constant Field Values
-
LuminosityBlendMode
static final int LuminosityBlendMode
- See Also:
- Constant Field Values
-
-
Method Detail
-
createColorSpace
java.awt.color.ColorSpace createColorSpace(int type, java.lang.Object params)
Create a colorspace object from one of the above space IDs.The value of "params" can be as follows: Device spaces - ignored CIE spaces - a Map ICC spaces - a PDF Stream Indexed spaces - a Map with keys 'base", "hival", and "lookup" Pattern - null Separation - a Map with "Colorant", "Base", & "TintTransform" DeviceN - - a Map with "Colorants", "Base", "TintTransform", & "Attributes"
-
createColor
java.awt.Color createColor(java.awt.color.ColorSpace space, float[] values)
Create a specific color in the colorspace
-
createComposite
java.awt.Composite createComposite(java.awt.color.ColorSpace sourcespace, int blendMode, boolean alphaIsShape, float alpha)
Create a Composite for the blend mode and alpha parameters. The destination onto which things will be composited will always be 32bit argb, but the source colorspace can be arbitrary. The composite will need to do some conversions if the source colorspace is anything other than deviceRGB.
-
-