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 Object implements IValidationContext, IContentStreamValidationParameter, IGraphicStateValidationParameter
Abstract class for color validation context.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractColorValidationContext(CanvasGraphicsState graphicsState, PdfResources resources, PdfStream contentStream) Instantiates a newAbstractColorValidationContextbased on graphic state, resources and content stream. -
Method Summary
Modifier and TypeMethodDescriptionGets the content stream.Gets the current color space.Gets the graphics state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.itextpdf.kernel.validation.IValidationContext
getType
-
Constructor Details
-
AbstractColorValidationContext
protected AbstractColorValidationContext(CanvasGraphicsState graphicsState, PdfResources resources, PdfStream contentStream) Instantiates a newAbstractColorValidationContextbased on graphic state, resources and content stream.- Parameters:
-
graphicsState- the graphical state -
resources- the resources -
contentStream- the content stream
-
-
Method Details
-
getCurrentColorSpaces
Gets the current color space.- Returns:
- the color space dictionary
-
getGraphicsState
Description copied from interface:IGraphicStateValidationParameterGets the graphics state.- Specified by:
-
getGraphicsStatein interfaceIGraphicStateValidationParameter - Returns:
- the graphics state
-
getContentStream
Description copied from interface:IContentStreamValidationParameterGets the content stream.- Specified by:
-
getContentStreamin interfaceIContentStreamValidationParameter - Returns:
- the content stream
-