Package org.apache.fop.afp
Class GrayScaleColorConverter
java.lang.Object
org.apache.fop.afp.GrayScaleColorConverter
- All Implemented Interfaces:
org.apache.xmlgraphics.java2d.color.ColorConverter
final class GrayScaleColorConverter
extends Object
implements org.apache.xmlgraphics.java2d.color.ColorConverter
Converts to grayscale using the standard RED=30%, GREEN=59% and BLUE=11%
weights (see http://en.wikipedia.org/wiki/Grayscale)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final GrayScaleColorConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe color is converted to CMYK with just the K componentstatic GrayScaleColorConverter
static factory
-
Field Details
-
RED_WEIGHT
private static final int RED_WEIGHT- See Also:
-
GREEN_WEIGTH
private static final int GREEN_WEIGTH- See Also:
-
BLUE_WEIGHT
private static final int BLUE_WEIGHT- See Also:
-
SINGLETON
-
-
Constructor Details
-
GrayScaleColorConverter
private GrayScaleColorConverter()
-
-
Method Details
-
getInstance
static factory- Returns:
- singleton instance of GrayScaleColorConverter
-
convert
The color is converted to CMYK with just the K component- Specified by:
convert
in interfaceorg.apache.xmlgraphics.java2d.color.ColorConverter
-