Class AbstractColorValidationContext
- java.lang.Object
-
- com.itextpdf.kernel.validation.context.AbstractColorValidationContext
-
- All Implemented Interfaces:
IContentStreamValidationParameter,IGraphicStateValidationParameter,IValidationContext
- Direct Known Subclasses:
FillColorValidationContext,StrokeColorValidationContext
public abstract class AbstractColorValidationContext extends java.lang.Object implements IValidationContext, IContentStreamValidationParameter, IGraphicStateValidationParameter
Abstract class for color validation context.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfStreamcontentStreamprivate PdfDictionarycurrentColorSpacesprivate CanvasGraphicsStategraphicsState
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractColorValidationContext(CanvasGraphicsState graphicsState, PdfResources resources, PdfStream contentStream)Instantiates a newAbstractColorValidationContextbased on graphic state, resources and content stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfStreamgetContentStream()Gets the content stream.PdfDictionarygetCurrentColorSpaces()Gets the current color space.CanvasGraphicsStategetGraphicsState()Gets the graphics state.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.itextpdf.kernel.validation.IValidationContext
getType
-
-
-
-
Field Detail
-
graphicsState
private final CanvasGraphicsState graphicsState
-
currentColorSpaces
private final PdfDictionary currentColorSpaces
-
contentStream
private final PdfStream contentStream
-
-
Constructor Detail
-
AbstractColorValidationContext
protected AbstractColorValidationContext(CanvasGraphicsState graphicsState, PdfResources resources, PdfStream contentStream)
Instantiates a newAbstractColorValidationContextbased on graphic state, resources and content stream.- Parameters:
graphicsState- the graphical stateresources- the resourcescontentStream- the content stream
-
-
Method Detail
-
getCurrentColorSpaces
public PdfDictionary getCurrentColorSpaces()
Gets the current color space.- Returns:
- the color space dictionary
-
getGraphicsState
public CanvasGraphicsState getGraphicsState()
Description copied from interface:IGraphicStateValidationParameterGets the graphics state.- Specified by:
getGraphicsStatein interfaceIGraphicStateValidationParameter- Returns:
- the graphics state
-
getContentStream
public PdfStream getContentStream()
Description copied from interface:IContentStreamValidationParameterGets the content stream.- Specified by:
getContentStreamin interfaceIContentStreamValidationParameter- Returns:
- the content stream
-
-