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
ModifierConstructorDescriptionprotected
AbstractColorValidationContext
(CanvasGraphicsState graphicsState, PdfResources resources, PdfStream contentStream) Instantiates a newAbstractColorValidationContext
based 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, wait
Methods inherited from interface com.itextpdf.kernel.validation.IValidationContext
getType
-
Constructor Details
-
AbstractColorValidationContext
protected AbstractColorValidationContext(CanvasGraphicsState graphicsState, PdfResources resources, PdfStream contentStream) Instantiates a newAbstractColorValidationContext
based 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:IGraphicStateValidationParameter
Gets the graphics state.- Specified by:
-
getGraphicsState
in interfaceIGraphicStateValidationParameter
- Returns:
- the graphics state
-
getContentStream
Description copied from interface:IContentStreamValidationParameter
Gets the content stream.- Specified by:
-
getContentStream
in interfaceIContentStreamValidationParameter
- Returns:
- the content stream
-