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 theColor
that represents the corresponding paint server for specified object box.void
ISvgNodeRenderer.draw
(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.void
IMarkerCapable.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 void
MarkerSvgNodeRenderer.applyViewBox
(SvgDrawContext context) boolean
TextSvgBranchRenderer.containsAbsolutePositionChange
(SvgDrawContext context) Checks whether currentor element contains absolute position attributes. boolean
TextSvgBranchRenderer.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 void
AbstractBranchSvgNodeRenderer.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 void
AbstractContainerSvgNodeRenderer.doDraw
(SvgDrawContext context) protected void
AbstractGradientSvgNodeRenderer.doDraw
(SvgDrawContext context) protected abstract void
AbstractSvgNodeRenderer.doDraw
(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.protected void
ClipPathSvgNodeRenderer.doDraw
(SvgDrawContext context) protected void
DefsSvgNodeRenderer.doDraw
(SvgDrawContext context) protected void
EllipseSvgNodeRenderer.doDraw
(SvgDrawContext context) protected void
GroupSvgNodeRenderer.doDraw
(SvgDrawContext context) protected void
ImageSvgNodeRenderer.doDraw
(SvgDrawContext context) void
LineSvgNodeRenderer.doDraw
(SvgDrawContext context) void
PathSvgNodeRenderer.doDraw
(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.protected void
PolylineSvgNodeRenderer.doDraw
(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.protected void
RectangleSvgNodeRenderer.doDraw
(SvgDrawContext context) protected void
StopSvgNodeRenderer.doDraw
(SvgDrawContext context) protected void
TextLeafSvgNodeRenderer.doDraw
(SvgDrawContext context) protected void
TextSvgBranchRenderer.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 void
TextSvgTSpanBranchRenderer.doDraw
(SvgDrawContext context) protected void
UseSvgNodeRenderer.doDraw
(SvgDrawContext context) final void
AbstractSvgNodeRenderer.draw
(SvgDrawContext context) Applies transformations set to this object, if any, and delegates the drawing of this element and its children to thedoDraw
method.void
PdfRootSvgNodeRenderer.draw
(SvgDrawContext context) void
ClipPathSvgNodeRenderer.drawClippedRenderer
(SvgDrawContext context) Draw the clipped renderer.void
LineSvgNodeRenderer.drawMarker
(SvgDrawContext context, MarkerVertexType markerVertexType) void
PathSvgNodeRenderer.drawMarker
(SvgDrawContext context, MarkerVertexType markerVertexType) void
PolylineSvgNodeRenderer.drawMarker
(SvgDrawContext context, MarkerVertexType markerVertexType) float[][]
TextSvgBranchRenderer.getAbsolutePositionChanges
(SvgDrawContext context) Gets absolute position of the currentor element. float
AbstractSvgNodeRenderer.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 void
EllipseSvgNodeRenderer.initCenter
(SvgDrawContext context) Initialize ellipse cx and cy.protected float
AbstractSvgNodeRenderer.parseAbsoluteLength
(String length, float percentBaseValue, float defaultValue, SvgDrawContext context) Deprecated.protected float
AbstractSvgNodeRenderer.parseHorizontalLength
(String length, SvgDrawContext context) Parse x-axis length value.protected float
AbstractSvgNodeRenderer.parseVerticalLength
(String length, SvgDrawContext context) Parse y-axis length value.protected boolean
CircleSvgNodeRenderer.setParameters
(SvgDrawContext context) protected boolean
EllipseSvgNodeRenderer.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 TypeMethodDescriptionvoid
AbstractPathShape.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 void
SvgTextUtil.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 Rectangle
SvgCssUtils.extractWidthAndHeight
(ISvgNodeRenderer svgRenderer, float em, SvgDrawContext context) Extract width and height of the passed SVGNodeRenderer, defaulting togetCustomViewport()
if either one is not present.static float
SvgCssUtils.parseAbsoluteHorizontalLength
(AbstractSvgNodeRenderer svgNodeRenderer, String length, float defaultValue, SvgDrawContext context) Parses horizontal length attribute and converts it to an absolute value.static float
SvgCssUtils.parseAbsoluteLength
(AbstractSvgNodeRenderer svgNodeRenderer, String length, float percentBaseValue, float defaultValue, SvgDrawContext context) Parse length attribute and convert it to an absolute value.static float
SvgCssUtils.parseAbsoluteVerticalLength
(AbstractSvgNodeRenderer svgNodeRenderer, String length, float defaultValue, SvgDrawContext context) Parses vertical length attribute and converts it to an absolute value.static void
SvgTextUtil.processWhiteSpace
(TextSvgBranchRenderer root, boolean isLeadingElement, SvgDrawContext context) Process the whitespace inside the Text Tree.static void
TemplateResolveUtils.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.