public class Separation extends PColorSpace
Separation Color Space background:
Color output devices produce full color by combining primary or process colorants in varying amounts. On an additive color device such as a display, the primary colorants consist of red, green, and blue phosphors; on a subtractive device such as a printer, they typically consist of cyan, magenta, yellow, and sometimes black inks. In addition, some devices can apply special colorants, often called spot colorants, to produce effects that cannot be achieved with the standard process colorants alone. Examples include metallic and fluorescent colors and special textures.
A Separation color space (PDF 1.2) provides a means for specifying the use of additional colorants or for isolating the control of individual color components of a device color space for a subtractive device. When such a space is the current color space, the current color is a single-component value, called a tint, that controls the application of the given colorant or color components only.
A Separation color space is defined as follows:
[/Separation name alternateSpace tintTransform]
| Modifier and Type | Field and Description |
|---|---|
protected PColorSpace |
alternate |
static java.lang.String |
COLORANT_ALL |
static java.lang.String |
COLORANT_NONE |
protected java.awt.Color |
namedColor |
static Name |
SEPARATION_KEY |
protected Function |
tintTransform |
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Modifier | Constructor and Description |
|---|---|
protected |
Separation(Library l,
java.util.HashMap h,
java.lang.Object name,
java.lang.Object alternateSpace,
java.lang.Object tintTransform)
Create a new Seperation colour space.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor(float[] components,
boolean fillAndStroke)
Gets the colour in RGB represented by the array of colour components
|
int |
getNumComponents()
Returns the number of components in this colour space.
|
float |
getTint() |
boolean |
isNamedColor() |
getColor, getColorSpace, getColorSpace, getDescription, normaliseComponentsToFloats, reverse, reverseInPlace, reverseInPlacegetEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic static final Name SEPARATION_KEY
protected java.awt.Color namedColor
protected PColorSpace alternate
protected Function tintTransform
public static final java.lang.String COLORANT_ALL
public static final java.lang.String COLORANT_NONE
protected Separation(Library l, java.util.HashMap h, java.lang.Object name, java.lang.Object alternateSpace, java.lang.Object tintTransform)
l - libraryh - dictionary entriesname - name of colourspace, always seperationalternateSpace - name of alternative colour spacetintTransform - function which defines the tint transformpublic int getNumComponents()
getNumComponents in class PColorSpacepublic boolean isNamedColor()
public java.awt.Color getColor(float[] components,
boolean fillAndStroke)
getColor in class PColorSpacecomponents - array of component colour datafillAndStroke - true indicates a fill or stroke operation, so we
will try to used the named colour and tint. This
is generally not do for images.public float getTint()