NamedColorSpace Class Documentation

classNamedColorSpace : ColorSpace

Namespace:com::datalogics::PDFL

Inherits from:
ColorSpace

Detailed Description

Class used to define the color space in use.

Referenced by

Constructor & Destructor Documentation

NamedColorSpace

NamedColorSpace(Stringname)

Parameters

name: String

the name of the color space.

Create a named color space with the given name, e.g. DeviceRGB

NamedColorSpace

NamedColorSpace(Stringname, booleanarg1)

Parameters

name: String
arg1: boolean

Special constructor with bool flag; calling this one makes a global named color space. Used in the ColorSpace class constructor in Java.

Member Function Documentation

DisposeChildren

voidDisposeChildren()

Returns:

void

[static initializer]

static void[static initializer]()

delete

synchronized voiddelete(Booleandisposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized voiddelete()

Returns:

synchronized void

equals

booleanequals(Objectrhs)

Parameters

rhs: Object

Returns:

boolean

finalize

voidfinalize()

Returns:

void

getName

StringgetName()

Returns:

String

The name of the color space. A named color space may be named something like DeviceRGB. More complicated color spaces may have a name like Indexed or ICCBased.

getNumComponents

intgetNumComponents()

Returns:

The number of color components.

The number of components in the color space. For example, DeviceGray has 1 component, DeviceRGB has 3, and DeviceCMYK has 4.

getPDFObject

PDFObjectgetPDFObject()

Returns:

The PDFObject associated with the color space.

Get the PDFObject associated with the color space. This may be a PDFName, PDFDict, PDFStream, or PDFArray.

makeDeviceCMYK

static NamedColorSpacemakeDeviceCMYK()

Returns:

A new NamedColorSpace for DeviceCMYK (4 components).

Creates a NamedColorSpace representing the DeviceCMYK color space.

makeDeviceGray

static NamedColorSpacemakeDeviceGray()

Returns:

A new NamedColorSpace for DeviceGray (1 component).

Creates a NamedColorSpace representing the DeviceGray color space.

makeDeviceRGB

static NamedColorSpacemakeDeviceRGB()

Returns:

A new NamedColorSpace for DeviceRGB (3 components).

Creates a NamedColorSpace representing the DeviceRGB color space.

makeDeviceRGBA

static NamedColorSpacemakeDeviceRGBA()

Returns:

A new NamedColorSpace for DeviceRGBA (4 components: red, green, blue, alpha).

Creates a NamedColorSpace representing the DeviceRGBA color space.

private_delete

synchronized voidprivate_delete()

Returns:

synchronized void

sameTypeEquals

booleansameTypeEquals(ColorSpaceother)

Parameters

other: ColorSpace

Returns:

boolean

toString

StringtoString()

Returns:

A string describing this ColorSpace.

Convert a ColorSpace to a string representation.