java.lang.Object
org.sejda.sambox.contentstream.operator.OperatorProcessor
org.sejda.sambox.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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PDColorgetColor()abstract PDColorSpacevoidProcess the operator.protected abstract voidSets either the stroking or non-stroking color value.Methods inherited from class org.sejda.sambox.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:
- 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:
- The stroking or non-stroking color space.
-