Uses of Class
com.itextpdf.svg.renderers.SvgDrawContext
Packages that use SvgDrawContext
Package
Description
-
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
Methods in com.itextpdf.svg.renderers.impl with parameters of type SvgDrawContextModifier and TypeMethodDescriptionprotected voidMarkerSvgNodeRenderer.applyViewBox(SvgDrawContext context) booleanTextSvgBranchRenderer.containsAbsolutePositionChange(SvgDrawContext context) Checks whether currentor element contains absolute position attributes. booleanTextSvgBranchRenderer.containsRelativeMove(SvgDrawContext context) Checks whether currentor 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) 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.voidLineSvgNodeRenderer.drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) voidPathSvgNodeRenderer.drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) voidPolylineSvgNodeRenderer.drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) float[][]TextSvgBranchRenderer.getAbsolutePositionChanges(SvgDrawContext context) Gets absolute position of the currentor element. 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) float[]TextSvgBranchRenderer.getRelativeTranslation(SvgDrawContext context) Gets relative translation of the currentor element. 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) protected voidEllipseSvgNodeRenderer.initCenter(SvgDrawContext context) Initialize ellipse cx and cy.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.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 respectively -
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 TypeMethodDescriptionstatic 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 RectangleSvgCssUtils.extractWidthAndHeight(ISvgNodeRenderer svgRenderer, float em, SvgDrawContext context) Extract width and height of the passed SVGNodeRenderer, defaulting togetCustomViewport()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
Constructors 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.