PostScriptCalculatorFunction Class Documentation

classPostScriptCalculatorFunction : Function

Namespace:com::datalogics::PDFL

Inherits from:
Function

Detailed Description

A function represented as a stream containing code written in a small subset of the PostScript language.

Uses types

Constructor & Destructor Documentation

PostScriptCalculatorFunction

PostScriptCalculatorFunction(java.util.List< Double >domain, java.util.List< Double >range, Stringcode)

Parameters

domain: java.util.List< Double >

an array of 2 * m numbers, where m is the number of input values

range: java.util.List< Double >

an array of 2 * n numbers, where n is the number of output values

code: String

the code of the function, written in a subset of the PostScript language

Create PostScript calculator function, represented as a stream containing code written in a small subset of the PostScript language.

Member Function Documentation

DisposeChildren

voidDisposeChildren()

Returns:

void

[static initializer]

static void[static initializer]()

apply

java.util.List< Double >apply(java.util.List< Double >args)

Parameters

args: java.util.List< Double >

input values for the function. The number of input values must agree with the number of inputs the function takes.

Returns:

a list of the result values from the function

Apply the function to supplied input values

delete

synchronized voiddelete(Booleandisposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized voiddelete()

Returns:

synchronized void

finalize

voidfinalize()

Returns:

void

getCode

StringgetCode()

Returns:

String

The code of the function, written in a subset of the PostScript language.

getDomain

java.util.List< Double >getDomain()

Returns:

java.util.List< Double >

The domain of the function. 2 * m elements, where m is the number of inputs to the function.

Each successive pair of elements gives the minimum and maximum values for one of the inputs.

Input values to the function are clamped to these minimum and maximum values.

getNInputs

intgetNInputs()

Returns:

int

The number of inputs to the function.

getNOutputs

intgetNOutputs()

Returns:

int

The number of outputs from the function.

getRange

java.util.List< Double >getRange()

Returns:

java.util.List< Double >

The range of the function. 2 * n elements, where n is the number of outputs from the function.

Each successive pair of elements gives the minimum and maximum values for one of the outputs.

Output values from the function are clamped to these minimum and maximum values.

getStream

PDFStreamgetStream()

Returns:

PDFStream

The underlying stream for this PostScriptCalculatorFunction.

setDomain

voidsetDomain(java.util.List< Double >domain)

Parameters

domain: java.util.List< Double >

Returns:

void

The domain of the function. 2 * m elements, where m is the number of inputs to the function.

Each successive pair of elements gives the minimum and maximum values for one of the inputs.

Input values to the function are clamped to these minimum and maximum values.

setRange

voidsetRange(java.util.List< Double >range)

Parameters

range: java.util.List< Double >

Returns:

void

The range of the function. 2 * n elements, where n is the number of outputs from the function.

Each successive pair of elements gives the minimum and maximum values for one of the outputs.

Output values from the function are clamped to these minimum and maximum values.

toString

StringtoString()

Returns:

String

A string value describing the function.