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 PdfFormXObject
SvgConverter.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 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 TypeMethodDescriptionprivate void
MarkerSvgNodeRenderer.applyCoordinatesTranslation
(SvgDrawContext context) (package private) void
MarkerSvgNodeRenderer.applyMarkerAttributes
(SvgDrawContext context) private void
MarkerSvgNodeRenderer.applyRotation
(SvgDrawContext context) private void
AbstractSvgNodeRenderer.applyStrokeProperties
(SvgDrawContext context, PdfCanvas currentCanvas, PdfExtGState opacityGraphicsState) private void
MarkerSvgNodeRenderer.applyUserSpaceScaling
(SvgDrawContext context) (package private) void
AbstractBranchSvgNodeRenderer.applyViewBox
(SvgDrawContext context) Applies a transformation based on a viewBox for a given branch node.protected void
MarkerSvgNodeRenderer.applyViewBox
(SvgDrawContext context) private void
AbstractBranchSvgNodeRenderer.applyViewportClip
(SvgDrawContext context) Applies a clipping operation based on the view port.private void
AbstractBranchSvgNodeRenderer.applyViewportTranslationCorrection
(SvgDrawContext context) (package private) void
AbstractBranchSvgNodeRenderer.calculateAndApplyViewBox
(SvgDrawContext context, float[] values, Rectangle currentViewPort) private Rectangle
PatternSvgNodeRenderer.calculateOriginalPatternRectangle
(SvgDrawContext context, boolean isObjectBoundingBoxInPatternUnits) (package private) AffineTransform
PdfRootSvgNodeRenderer.calculateTransformation
(SvgDrawContext context) (package private) Rectangle
AbstractContainerSvgNodeRenderer.calculateViewPort
(SvgDrawContext context) Calculate the viewport based on the context.(package private) Rectangle
PdfRootSvgNodeRenderer.calculateViewPort
(SvgDrawContext context) (package private) AffineTransform
AbstractSvgNodeRenderer.calculateViewPortTranslation
(SvgDrawContext context) Calculate the transformation for the viewport based on the context.private void
AbstractBranchSvgNodeRenderer.cleanUp
(SvgDrawContext context) Cleans up the SvgDrawContext by removing the current viewport and by popping the current canvas.LinearGradientSvgNodeRenderer.createColor
(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) PatternSvgNodeRenderer.createColor
(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) private PdfPattern.Tiling
PatternSvgNodeRenderer.createTilingPattern
(SvgDrawContext context, Rectangle objectBoundingBox) 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) 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) private boolean
AbstractSvgNodeRenderer.drawInClipPath
(SvgDrawContext context) void
LineSvgNodeRenderer.drawMarker
(SvgDrawContext context, MarkerVertexType markerVertexType) (package private) static void
MarkerSvgNodeRenderer.drawMarker
(SvgDrawContext context, String moveX, String moveY, MarkerVertexType markerToUse, AbstractSvgNodeRenderer parent) void
PathSvgNodeRenderer.drawMarker
(SvgDrawContext context, MarkerVertexType markerVertexType) void
PolylineSvgNodeRenderer.drawMarker
(SvgDrawContext context, MarkerVertexType markerVertexType) private void
PatternSvgNodeRenderer.drawPatternContent
(SvgDrawContext context, PdfPattern.Tiling pattern) private TransparentColor
AbstractSvgNodeRenderer.getColorFromAttributeValue
(SvgDrawContext context, String rawColorValue, float objectBoundingBoxMargin, float parentOpacity) private Point[]
LinearGradientSvgNodeRenderer.getCoordinates
(SvgDrawContext context, boolean isObjectBoundingBox) 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) TextSvgTSpanBranchRenderer.getObjectBoundingBox
(SvgDrawContext context) UseSvgNodeRenderer.getObjectBoundingBox
(SvgDrawContext context) ISvgTextNodeRenderer.getTextRectangle
(SvgDrawContext context, Point basePoint) Return the bounding rectangle of the text element.TextLeafSvgNodeRenderer.getTextRectangle
(SvgDrawContext context, Point basePoint) TextSvgBranchRenderer.getTextRectangle
(SvgDrawContext context, Point basePoint) (package private) static AffineTransform
TextSvgBranchRenderer.getTextTransform
(float[][] absolutePositions, SvgDrawContext context) protected float
AbstractSvgNodeRenderer.parseAbsoluteLength
(String length, float percentBaseValue, float defaultValue, SvgDrawContext context) Parse length attributes.(package private) void
TextSvgBranchRenderer.performRootTransformations
(PdfCanvas currentCanvas, SvgDrawContext context) (package private) void
AbstractBranchSvgNodeRenderer.postDraw
(SvgDrawContext context) (package private) void
AbstractSvgNodeRenderer.postDraw
(SvgDrawContext context) Operations to be performed after drawing the element.(package private) void
UseSvgNodeRenderer.postDraw
(SvgDrawContext context) (package private) void
AbstractSvgNodeRenderer.preDraw
(SvgDrawContext context) Operations to perform before drawing an element.(package private) void
ClipPathSvgNodeRenderer.preDraw
(SvgDrawContext context) (package private) void
MarkerSvgNodeRenderer.preDraw
(SvgDrawContext context) (package private) AffineTransform
AbstractBranchSvgNodeRenderer.processAspectRatioPosition
(SvgDrawContext context, float[] viewBoxValues, String align, float scaleWidth, float scaleHeight) If present, process the preserveAspectRatio position.(package private) void
TextSvgBranchRenderer.resolveFont
(SvgDrawContext context) private static void
AbstractBranchSvgNodeRenderer.writeBBoxAccordingToVisibleOverflow
(SvgDrawContext context, PdfStream stream) When in the svg elementoverflow
isvisible
the 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.