Uses of Class
com.itextpdf.svg.renderers.SvgDrawContext
Packages that use SvgDrawContext
Package
Description
-
Uses of SvgDrawContext in com.itextpdf.svg.converter
Methods in com.itextpdf.svg.converter with parameters of type SvgDrawContextModifier and TypeMethodDescriptionprivate static PdfFormXObjectSvgConverter.convertToXObject(ISvgNodeRenderer topSvgRenderer, PdfDocument document, SvgDrawContext context) This method draws a NodeRenderer tree to a canvas that is tied to the passed document. -
Uses of SvgDrawContext in com.itextpdf.svg.css
Methods in com.itextpdf.svg.css with parameters of type SvgDrawContextModifier and TypeMethodDescriptionSvgStrokeParameterConverter.convertStrokeDashParameters(String strokeDashArray, String strokeDashOffset, float fontSize, SvgDrawContext context) Convert stroke related SVG parameters and attributes into PDF line dash parameters. -
Uses of SvgDrawContext in com.itextpdf.svg.renderers
Methods in com.itextpdf.svg.renderers with parameters of type SvgDrawContextModifier and TypeMethodDescriptionISvgPaintServer.createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) Creates theColorthat represents the corresponding paint server for specified object box.voidISvgNodeRenderer.draw(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.voidIMarkerCapable.drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) Draws a marker in the specified context.ISvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) Calculates the current object bounding box. -
Uses of SvgDrawContext in com.itextpdf.svg.renderers.impl
Fields in com.itextpdf.svg.renderers.impl declared as SvgDrawContextModifier and TypeFieldDescriptionprivate final SvgDrawContextTextSvgBranchRenderer.ClippedElementDrawer.contextMethods in com.itextpdf.svg.renderers.impl with parameters of type SvgDrawContextModifier and TypeMethodDescription(package private) voidTextSvgBranchRenderer.addTextChild(Text text, SvgDrawContext drawContext) private voidPdfRootSvgNodeRenderer.applyBackgroundColor(SvgDrawContext context) private voidMarkerSvgNodeRenderer.applyCoordinatesTranslation(SvgDrawContext context) (package private) voidAbstractSvgNodeRenderer.applyFillAndStrokeProperties(AbstractSvgNodeRenderer.FillProperties fillProperties, AbstractSvgNodeRenderer.StrokeProperties strokeProperties, SvgDrawContext context) (package private) voidTextSvgBranchRenderer.applyFillAndStrokeProperties(AbstractSvgNodeRenderer.FillProperties fillProperties, AbstractSvgNodeRenderer.StrokeProperties strokeProperties, SvgDrawContext context) (package private) voidTextSvgBranchRenderer.applyFontProperties(IElement element, SvgDrawContext context) private voidTextLeafSvgNodeRenderer.applyGraphicsState(SvgDrawContext context) (package private) voidMarkerSvgNodeRenderer.applyMarkerAttributes(SvgDrawContext context) (package private) AffineTransformAbstractSvgNodeRenderer.applyNonScalingStrokeTransform(SvgDrawContext context) Applies non-scaling-stroke vector-effect to this renderer by concatenating all transformations applied from the top level of the svg to the current one, inverting it and applying to the current canvas.private voidMarkerSvgNodeRenderer.applyRotation(SvgDrawContext context) private voidTextLeafSvgNodeRenderer.applyTransform(SvgDrawContext context) private voidMarkerSvgNodeRenderer.applyUserSpaceScaling(SvgDrawContext context) (package private) voidAbstractBranchSvgNodeRenderer.applyViewBox(SvgDrawContext context) Applies a transformation based on a viewBox for a given branch node.protected voidMarkerSvgNodeRenderer.applyViewBox(SvgDrawContext context) private voidAbstractBranchSvgNodeRenderer.applyViewportClip(SvgDrawContext context) Applies a clipping operation based on the view port.(package private) voidAbstractBranchSvgNodeRenderer.calculateAndApplyViewBox(SvgDrawContext context, float[] values, Rectangle currentViewPort) AbstractSvgNodeRenderer.calculateFillProperties(SvgDrawContext context) private RectanglePatternSvgNodeRenderer.calculateOriginalPatternRectangle(SvgDrawContext context, boolean isObjectBoundingBoxInPatternUnits) AbstractSvgNodeRenderer.calculateStrokeProperties(SvgDrawContext context) (package private) AffineTransformPdfRootSvgNodeRenderer.calculateTransformation(SvgDrawContext context) (package private) RectangleAbstractContainerSvgNodeRenderer.calculateViewPort(SvgDrawContext context) Calculate the viewport based on the context.(package private) static RectanglePdfRootSvgNodeRenderer.calculateViewPort(SvgDrawContext context) (package private) AffineTransformAbstractSvgNodeRenderer.calculateViewPortTranslation(SvgDrawContext context) Calculate the transformation for the viewport based on the context.private voidAbstractBranchSvgNodeRenderer.cleanUp(SvgDrawContext context) Cleans up the SvgDrawContext by removing the current viewport and by popping the current canvas.booleanTextSvgBranchRenderer.containsAbsolutePositionChange(SvgDrawContext context) Checks whether current <text> or <tspan> element contains absolute position attributes.booleanTextSvgBranchRenderer.containsRelativeMove(SvgDrawContext context) Checks whether current <text> or <tspan> element contains relative position change.LinearGradientSvgNodeRenderer.createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) PatternSvgNodeRenderer.createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) private PdfPattern.TilingPatternSvgNodeRenderer.createTilingPattern(SvgDrawContext context, Rectangle objectBoundingBox) protected voidAbstractBranchSvgNodeRenderer.doDraw(SvgDrawContext context) Method that will set properties to be inherited by this branch renderer's children and will iterate over all children in order to draw them.protected voidAbstractContainerSvgNodeRenderer.doDraw(SvgDrawContext context) protected voidAbstractGradientSvgNodeRenderer.doDraw(SvgDrawContext context) protected abstract voidAbstractSvgNodeRenderer.doDraw(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.protected voidClipPathSvgNodeRenderer.doDraw(SvgDrawContext context) protected voidDefsSvgNodeRenderer.doDraw(SvgDrawContext context) protected voidEllipseSvgNodeRenderer.doDraw(SvgDrawContext context) protected voidGroupSvgNodeRenderer.doDraw(SvgDrawContext context) protected voidImageSvgNodeRenderer.doDraw(SvgDrawContext context) voidLineSvgNodeRenderer.doDraw(SvgDrawContext context) voidPathSvgNodeRenderer.doDraw(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.protected voidPolylineSvgNodeRenderer.doDraw(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.protected voidRectangleSvgNodeRenderer.doDraw(SvgDrawContext context) protected voidStopSvgNodeRenderer.doDraw(SvgDrawContext context) protected voidTextLeafSvgNodeRenderer.doDraw(SvgDrawContext context) protected voidTextSvgBranchRenderer.doDraw(SvgDrawContext context) Method that will set properties to be inherited by this branch renderer's children and will iterate over all children in order to draw them.protected voidTextSvgTSpanBranchRenderer.doDraw(SvgDrawContext context) protected voidUseSvgNodeRenderer.doDraw(SvgDrawContext context) final voidAbstractSvgNodeRenderer.draw(SvgDrawContext context) Applies transformations set to this object, if any, and delegates the drawing of this element and its children to thedoDrawmethod.voidPdfRootSvgNodeRenderer.draw(SvgDrawContext context) voidClipPathSvgNodeRenderer.drawClippedRenderer(SvgDrawContext context) Draw the clipped renderer.private booleanAbstractSvgNodeRenderer.drawInClipPath(SvgDrawContext context) private voidTextSvgBranchRenderer.drawLastTextChunk(SvgDrawContext context) voidLineSvgNodeRenderer.drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) (package private) static voidMarkerSvgNodeRenderer.drawMarker(SvgDrawContext context, String moveX, String moveY, MarkerVertexType markerToUse, AbstractSvgNodeRenderer parent) voidPathSvgNodeRenderer.drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) voidPolylineSvgNodeRenderer.drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) (package private) static voidMarkerSvgNodeRenderer.drawMarkers(SvgDrawContext context, int startIndex, List<Point> markerPoints, MarkerVertexType markerToUse, AbstractSvgNodeRenderer parent) private voidPatternSvgNodeRenderer.drawPatternContent(SvgDrawContext context, PdfPattern.Tiling pattern) float[][]TextSvgBranchRenderer.getAbsolutePositionChanges(SvgDrawContext context) Gets absolute position of the current <text> or <tspan> element.private static RectangleAbstractBranchSvgNodeRenderer.getBBoxAccordingToVisibleOverflow(SvgDrawContext context) When in the svg elementoverflowisvisiblethe corresponding formXObject should have a BBox (form XObject’s bounding box; see PDF 32000-1:2008 - 8.10.2 Form Dictionaries) that should cover the entire svg space (page in pdf) in order to be able to show parts of the element which are outside the current element viewPort.private TransparentColorAbstractSvgNodeRenderer.getColorFromAttributeValue(SvgDrawContext context, String rawColorValue, float objectBoundingBoxMargin, float parentOpacity) private Point[]LinearGradientSvgNodeRenderer.getCoordinates(SvgDrawContext context, boolean isObjectBoundingBox) floatAbstractSvgNodeRenderer.getCurrentFontSize(SvgDrawContext context) Return font-size of the current element in px.AbstractSvgNodeRenderer.getCurrentViewBox(SvgDrawContext context) Gets the viewbox from the first parent element which can define it.ClipPathSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) DefsSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) EllipseSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) GroupSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) ImageSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) LinearGradientSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) LineSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) MarkerSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) PathSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) PatternSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) PdfRootSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) PolylineSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) RectangleSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) StopSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) SvgTagSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) SymbolSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) TextLeafSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) TextSvgBranchRenderer.getObjectBoundingBox(SvgDrawContext context) UseSvgNodeRenderer.getObjectBoundingBox(SvgDrawContext context) private float[]TextSvgBranchRenderer.getPositionsFromString(String rawValuesString, SvgDrawContext context, boolean isHorizontal) float[]TextSvgBranchRenderer.getRelativeTranslation(SvgDrawContext context) Gets relative translation of the current <text> or <tspan> element.private PointTextSvgBranchRenderer.getStartPoint(SvgDrawContext context, Point basePoint) ISvgTextNodeRenderer.getTextRectangle(SvgDrawContext context, Point basePoint) Return the bounding rectangle of the text element.TextLeafSvgNodeRenderer.getTextRectangle(SvgDrawContext context, Point startPoint) TextSvgBranchRenderer.getTextRectangle(SvgDrawContext context, Point startPoint) private static AffineTransformTextSvgBranchRenderer.getTextTransform(float[][] absolutePositions, SvgDrawContext context) protected voidEllipseSvgNodeRenderer.initCenter(SvgDrawContext context) Initialize ellipse cx and cy.private LineRendererTextLeafSvgNodeRenderer.layoutText(SvgDrawContext context) protected floatAbstractSvgNodeRenderer.parseAbsoluteLength(String length, float percentBaseValue, float defaultValue, SvgDrawContext context) Deprecated.protected floatAbstractSvgNodeRenderer.parseHorizontalLength(String length, SvgDrawContext context) Parse x-axis length value.protected floatAbstractSvgNodeRenderer.parseVerticalLength(String length, SvgDrawContext context) Parse y-axis length value.(package private) voidTextSvgBranchRenderer.performDrawing(SvgDrawContext context) (package private) voidAbstractBranchSvgNodeRenderer.postDraw(SvgDrawContext context) (package private) voidAbstractSvgNodeRenderer.postDraw(SvgDrawContext context) Operations to be performed after drawing the element.(package private) voidUseSvgNodeRenderer.postDraw(SvgDrawContext context) (package private) voidAbstractSvgNodeRenderer.preDraw(SvgDrawContext context) Operations to perform before drawing an element.(package private) voidClipPathSvgNodeRenderer.preDraw(SvgDrawContext context) (package private) voidMarkerSvgNodeRenderer.preDraw(SvgDrawContext context) (package private) voidTextSvgBranchRenderer.preDraw(SvgDrawContext context) private voidTextSvgBranchRenderer.resolveAbsoluteTextPosition(SvgDrawContext context) private voidTextSvgBranchRenderer.resolveRelativeTextMove(SvgDrawContext context) protected booleanCircleSvgNodeRenderer.setParameters(SvgDrawContext context) protected booleanEllipseSvgNodeRenderer.setParameters(SvgDrawContext context) Fetches a map of String values by calling getAttribute(String s) method and maps it's values to arc parameter cx, cy , rx, ry respectivelyprivate booleanLineSvgNodeRenderer.setParameters(SvgDrawContext context) private voidRectangleSvgNodeRenderer.setParameters(SvgDrawContext context) private voidTextSvgBranchRenderer.startNewTextChunk(SvgDrawContext context, AffineTransform newTransform) Constructors in com.itextpdf.svg.renderers.impl with parameters of type SvgDrawContextModifierConstructorDescriptionClippedElementDrawer(ClipPathSvgNodeRenderer clipPathSvgNodeRenderer, SvgDrawContext context) -
Uses of SvgDrawContext in com.itextpdf.svg.renderers.path.impl
Fields in com.itextpdf.svg.renderers.path.impl declared as SvgDrawContextMethods in com.itextpdf.svg.renderers.path.impl with parameters of type SvgDrawContextModifier and TypeMethodDescriptionvoidAbstractPathShape.setContext(SvgDrawContext context) Set svg draw context for this shape. -
Uses of SvgDrawContext in com.itextpdf.svg.utils
Methods in com.itextpdf.svg.utils with parameters of type SvgDrawContextModifier and TypeMethodDescriptionprivate static voidSvgTextUtil.addUnderline(SvgDrawContext context, List<Underline> underlineList, Color strokeColor, float strokeOpacity, Color fillColor, float fillOpacity, float textDecorationLine, boolean doFill, boolean doStroke) static voidSvgTextUtil.applyTextDecoration(ISvgTextNodeRenderer renderer, boolean doFill, boolean doStroke, SvgDrawContext context) Processes text-decoration attribute which is shorthand for text-decoration-line and text-decoration-style.static floatSvgCoordinateUtils.calculateNormalizedDiagonalLength(SvgDrawContext context) Calculate normalized diagonal length.private static floatSvgCssUtils.calculatePercentBaseValueIfNeeded(AbstractSvgNodeRenderer svgNodeRenderer, SvgDrawContext context, String length, boolean isXAxis) static RectangleSvgCssUtils.extractWidthAndHeight(ISvgNodeRenderer svgRenderer, float em, SvgDrawContext context) Extract width and height of the passed SVGNodeRenderer, defaulting toSvgDrawContext.getCustomViewport()if either one is not present.static floatSvgCssUtils.parseAbsoluteHorizontalLength(AbstractSvgNodeRenderer svgNodeRenderer, String length, float defaultValue, SvgDrawContext context) Parses horizontal length attribute and converts it to an absolute value.static floatSvgCssUtils.parseAbsoluteLength(AbstractSvgNodeRenderer svgNodeRenderer, String length, float percentBaseValue, float defaultValue, SvgDrawContext context) Parse length attribute and convert it to an absolute value.static floatSvgCssUtils.parseAbsoluteVerticalLength(AbstractSvgNodeRenderer svgNodeRenderer, String length, float defaultValue, SvgDrawContext context) Parses vertical length attribute and converts it to an absolute value.static voidSvgTextUtil.processWhiteSpace(TextSvgBranchRenderer root, boolean isLeadingElement, SvgDrawContext context) Process the whitespace inside the Text Tree.static voidTemplateResolveUtils.resolve(IBranchSvgNodeRenderer renderer, SvgDrawContext context) Resolve href to other object within svg and fills renderer with its properties and children if needed. -
Uses of SvgDrawContext in com.itextpdf.svg.xobject
Fields in com.itextpdf.svg.xobject declared as SvgDrawContextConstructors in com.itextpdf.svg.xobject with parameters of type SvgDrawContextModifierConstructorDescriptionSvgImageXObject(ISvgProcessorResult result, SvgDrawContext svgContext, float em, PdfDocument pdfDocument) Creates a new instance of Form XObject for the relative sized SVG image.