Package com.itextpdf.svg.css
Class SvgStrokeParameterConverter
- java.lang.Object
-
- com.itextpdf.svg.css.SvgStrokeParameterConverter
-
public final class SvgStrokeParameterConverter extends java.lang.ObjectThis class converts stroke related SVG parameters and attributes into those from PDF specification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSvgStrokeParameterConverter.PdfLineDashParametersThis class represents PDF dash parameters.
-
Constructor Summary
Constructors Modifier Constructor Description privateSvgStrokeParameterConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SvgStrokeParameterConverter.PdfLineDashParametersconvertStrokeDashParameters(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.
-
-