Package com.itextpdf.svg.css
Class SvgStrokeParameterConverter
- java.lang.Object
-
- com.itextpdf.svg.css.SvgStrokeParameterConverter
-
public final class SvgStrokeParameterConverter extends java.lang.Object
This class converts stroke related SVG parameters and attributes into those from PDF specification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SvgStrokeParameterConverter.PdfLineDashParameters
This class represents PDF dash parameters.
-
Constructor Summary
Constructors Modifier Constructor Description private
SvgStrokeParameterConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SvgStrokeParameterConverter.PdfLineDashParameters
convertStrokeDashParameters(java.lang.String strokeDashArray, java.lang.String strokeDashOffset, float fontSize, SvgDrawContext context)
Convert stroke related SVG parameters and attributes into PDF line dash parameters.
-
-
-
Method Detail
-
convertStrokeDashParameters
public static SvgStrokeParameterConverter.PdfLineDashParameters convertStrokeDashParameters(java.lang.String strokeDashArray, java.lang.String strokeDashOffset, float fontSize, SvgDrawContext context)
Convert stroke related SVG parameters and attributes into PDF line dash parameters.- Parameters:
strokeDashArray
- 'stroke-dasharray' css property value.strokeDashOffset
- 'stroke-dashoffset' css property value.fontSize
- font size of the current element.context
- the svg draw context.- Returns:
- PDF line dash parameters represented by
SvgStrokeParameterConverter.PdfLineDashParameters
.
-
-