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 PDColorgetColor()Returns either the stroking or non-stroking color value.protected abstract PDColorSpaceReturns either the stroking or non-stroking color space.voidProcess the operator.protected abstract voidSets 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:OperatorProcessorProcess the operator.- Specified by:
processin 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.
-