Class SetColor
- java.lang.Object
-
- com.tom_roush.pdfbox.contentstream.operator.OperatorProcessor
-
- com.tom_roush.pdfbox.contentstream.operator.color.SetColor
-
- Direct Known Subclasses:
SetNonStrokingColor,SetStrokingColor
public abstract class SetColor extends OperatorProcessor
sc,scn,SC,SCN: Sets the color to use for stroking or non-stroking operations.
-
-
Field Summary
-
Fields inherited from class com.tom_roush.pdfbox.contentstream.operator.OperatorProcessor
context
-
-
Constructor Summary
Constructors Constructor Description SetColor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract PDColorgetColor()Returns either the stroking or non-stroking color value.protected abstract PDColorSpacegetColorSpace()Returns either the stroking or non-stroking color space.voidprocess(Operator operator, List<COSBase> arguments)Process the operator.protected abstract voidsetColor(PDColor color)Sets either the stroking or non-stroking color value.-
Methods inherited from class com.tom_roush.pdfbox.contentstream.operator.OperatorProcessor
checkArrayTypesClass, getContext, getName, setContext
-
-
-
-
Method Detail
-
process
public void process(Operator operator, List<COSBase> arguments) throws IOException
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
protected abstract PDColor getColor()
Returns either the stroking or non-stroking color value.- Returns:
- The stroking or non-stroking color value.
-
setColor
protected abstract void setColor(PDColor color)
Sets either the stroking or non-stroking color value.- Parameters:
color- The stroking or non-stroking color value.
-
getColorSpace
protected abstract PDColorSpace getColorSpace()
Returns either the stroking or non-stroking color space.- Returns:
- The stroking or non-stroking color space.
-
-