Top Description Constructors Methods
org.apache.pdfbox.contentstream.operator.color

public abstract Class SetColor

extends OperatorProcessor
Class Inheritance
Known Direct Subclasses
org.apache.pdfbox.contentstream.operator.color.SetNonStrokingColor, org.apache.pdfbox.contentstream.operator.color.SetStrokingColor
Imports
java.io.IOException, java.util.List, org.apache.pdfbox.contentstream.PDFStreamEngine, org.apache.pdfbox.contentstream.operator.MissingOperandException, .Operator, .OperatorProcessor, org.apache.pdfbox.cos.COSArray, .COSBase, .COSNumber, org.apache.pdfbox.pdmodel.graphics.color.PDColor, .PDColorSpace, .PDPattern

sc,scn,SC,SCN: Sets the color to use for stroking or non-stroking operations.
Author
John Hewson

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract PDColor

Returns:

The stroking or non-stroking color value.
getColor
()

Returns either the stroking or non-stroking color value.

protected abstract PDColorSpace

Returns:

The stroking or non-stroking color space.
getColorSpace
()

Returns either the stroking or non-stroking color space.

public void
process(Operator
the operator to process
operator
,
List<COSBase>
the operands to use when processing
arguments
)

Implements abstract org.apache.pdfbox.contentstream.operator.OperatorProcessor.process.

Process the operator.

protected abstract void
setColor(PDColor
The stroking or non-stroking color value.
color
)

Sets either the stroking or non-stroking color value.

Inherited from org.apache.pdfbox.contentstream.operator.OperatorProcessor:
checkArrayTypesClassgetContextgetName

Constructor Detail

SetColorback to summary
protected SetColor(PDFStreamEngine context)

Method Detail

getColorback to summary
protected abstract PDColor getColor()

Returns either the stroking or non-stroking color value.

Returns:PDColor

The stroking or non-stroking color value.

getColorSpaceback to summary
protected abstract PDColorSpace getColorSpace()

Returns either the stroking or non-stroking color space.

Returns:PDColorSpace

The stroking or non-stroking color space.

processback to summary
public void process(Operator operator, List<COSBase> arguments) throws IOException

Implements abstract org.apache.pdfbox.contentstream.operator.OperatorProcessor.process.

Doc from org.apache.pdfbox.contentstream.operator.OperatorProcessor.process.

Process the operator.

Parameters
operator:Operator

the operator to process

arguments:List<COSBase>

the operands to use when processing

Annotations
@Override
Exceptions
IOException:
if the operator cannot be processed
setColorback to summary
protected abstract void setColor(PDColor color)

Sets either the stroking or non-stroking color value.

Parameters
color:PDColor

The stroking or non-stroking color value.