Class SetColor
java.lang.Object
org.apache.pdfbox.contentstream.operator.OperatorProcessor
org.apache.pdfbox.contentstream.operator.color.SetColor
- Direct Known Subclasses:
SetNonStrokingColor
,SetStrokingColor
sc,scn,SC,SCN: Sets the color to use for stroking or non-stroking operations.
- Author:
- John Hewson
-
Field Summary
Fields inherited from class org.apache.pdfbox.contentstream.operator.OperatorProcessor
context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PDColor
getColor()
Returns either the stroking or non-stroking color value.protected abstract PDColorSpace
Returns either the stroking or non-stroking color space.void
Process the operator.protected abstract void
Sets either the stroking or non-stroking color value.Methods inherited from class org.apache.pdfbox.contentstream.operator.OperatorProcessor
checkArrayTypesClass, getContext, getName, setContext
-
Constructor Details
-
SetColor
public SetColor()
-
-
Method Details
-
process
Description copied from class:OperatorProcessor
Process the operator.- Specified by:
process
in classOperatorProcessor
- Parameters:
operator
- the operator to processarguments
- the operands to use when processing- Throws:
IOException
- if the operator cannot be processed
-
getColor
Returns either the stroking or non-stroking color value.- Returns:
- The stroking or non-stroking color value.
-
setColor
Sets either the stroking or non-stroking color value.- Parameters:
color
- The stroking or non-stroking color value.
-
getColorSpace
Returns either the stroking or non-stroking color space.- Returns:
- The stroking or non-stroking color space.
-