org.foray.ps
Class PsColorSpace

java.lang.Object
  extended by org.foray.ps.PsObjectComposite
      extended by org.foray.ps.PsArray
          extended by org.foray.ps.PsColorSpace
All Implemented Interfaces:
PsObject

public class PsColorSpace
extends PsArray

A PostScript Color Space. Color Spaces are described at PSLRM 2nd Edition, Section 4.8.


Field Summary
static int CIEBASED_A
          Constant indicating a CIE-based 1-channel colorspace.
static int CIEBASED_ABC
          Constant indicating a CIE-based 3-channel colorspace.
static int DEVICE_CMYK
          Constant indicating a Device CMYK colorspace.
static int DEVICE_GRAY
          Constant indicating a Device Gray colorspace.
static int DEVICE_RGB
          Constant indicating a Device RGB colorspace.
static int INDEXED
          Constant indicating the special "indexed" colorspace.
static int PATTERN
          Constant indicating the special "pattern" colorspace.
static int SEPARATION
          Constant indicating the special "separation" colorspace.
 
Constructor Summary
PsColorSpace(Object[] value)
          Standard constructor.
 
Method Summary
static PsColorSpace makeColorSpace(int type)
          Factory method for creating new colorspace instances.
 
Methods inherited from class org.foray.ps.PsArray
convertToMatrix, duplicate, get, getTypeName, isComparable, isComposite, isExecutable, set, setExecutable, size
 
Methods inherited from class org.foray.ps.PsObjectComposite
getAccess, setAccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVICE_GRAY

public static final int DEVICE_GRAY
Constant indicating a Device Gray colorspace.

See Also:
Constant Field Values

DEVICE_RGB

public static final int DEVICE_RGB
Constant indicating a Device RGB colorspace.

See Also:
Constant Field Values

DEVICE_CMYK

public static final int DEVICE_CMYK
Constant indicating a Device CMYK colorspace.

See Also:
Constant Field Values

CIEBASED_ABC

public static final int CIEBASED_ABC
Constant indicating a CIE-based 3-channel colorspace.

See Also:
Constant Field Values

CIEBASED_A

public static final int CIEBASED_A
Constant indicating a CIE-based 1-channel colorspace.

See Also:
Constant Field Values

PATTERN

public static final int PATTERN
Constant indicating the special "pattern" colorspace.

See Also:
Constant Field Values

INDEXED

public static final int INDEXED
Constant indicating the special "indexed" colorspace.

See Also:
Constant Field Values

SEPARATION

public static final int SEPARATION
Constant indicating the special "separation" colorspace.

See Also:
Constant Field Values
Constructor Detail

PsColorSpace

public PsColorSpace(Object[] value)
Standard constructor.

Parameters:
value - The colorspace value.
Method Detail

makeColorSpace

public static PsColorSpace makeColorSpace(int type)
Factory method for creating new colorspace instances.

Parameters:
type - The type of colorspace that should be created, one of DEVICE_GRAY, DEVICE_RGB, DEVICE_CMYK, CIEBASED_ABC, CIEBASED_A, PATTERN, INDEXED, or SEPARATION.
Returns:
The appropriate colorspace instance.


Copyright © 2017. All rights reserved.