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 PdfStream
contentStream
private PdfDictionary
currentColorSpaces
private CanvasGraphicsState
graphicsState
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractColorValidationContext(CanvasGraphicsState graphicsState, PdfResources resources, PdfStream contentStream)
Instantiates a newAbstractColorValidationContext
based on graphic state, resources and content stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfStream
getContentStream()
Gets the content stream.PdfDictionary
getCurrentColorSpaces()
Gets the current color space.CanvasGraphicsState
getGraphicsState()
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 newAbstractColorValidationContext
based 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:IGraphicStateValidationParameter
Gets the graphics state.- Specified by:
getGraphicsState
in interfaceIGraphicStateValidationParameter
- Returns:
- the graphics state
-
getContentStream
public PdfStream getContentStream()
Description copied from interface:IContentStreamValidationParameter
Gets the content stream.- Specified by:
getContentStream
in interfaceIContentStreamValidationParameter
- Returns:
- the content stream
-
-