/// <exception cref="ArgumentNullException"><paramref name="fingerPrintTransformer" /> is <see langword="null" />.</exception> /// <exception cref="ArgumentNullException"><paramref name="fingerPrintCommands" /> is <see langword="null" />.</exception> public SvgImageTranslator([NotNull] FingerPrintTransformer fingerPrintTransformer, [NotNull] FingerPrintCommands fingerPrintCommands) : base(fingerPrintTransformer) { this.FingerPrintTransformer = fingerPrintTransformer ?? throw new ArgumentNullException(nameof(fingerPrintTransformer)); this.FingerPrintCommands = fingerPrintCommands ?? throw new ArgumentNullException(nameof(fingerPrintCommands)); }
/// <exception cref="ArgumentNullException"><paramref name="fingerPrintTransformer" /> is <see langword="null" />.</exception> /// <exception cref="ArgumentNullException"><paramref name="fingerPrintCommands" /> is <see langword="null" />.</exception> /// <exception cref="ArgumentNullException"><paramref name="svgUnitReader" /> is <see langword="null" />.</exception> public SvgRectangleTranslator([NotNull] FingerPrintTransformer fingerPrintTransformer, [NotNull] FingerPrintCommands fingerPrintCommands, [NotNull] SvgUnitReader svgUnitReader) { this.FingerPrintTransformer = fingerPrintTransformer ?? throw new ArgumentNullException(nameof(fingerPrintTransformer)); this.FingerPrintCommands = fingerPrintCommands ?? throw new ArgumentNullException(nameof(fingerPrintCommands)); this.SvgUnitReader = svgUnitReader ?? throw new ArgumentNullException(nameof(svgUnitReader)); }
protected virtual FingerPrintRenderer CreateFingerPrintRenderer([NotNull] FingerPrintCommands fingerPrintCommands, CharacterSet characterSet = CharacterSet.Utf8) { if (fingerPrintCommands == null) { throw new ArgumentNullException(nameof(fingerPrintCommands)); } var fingerPrintRenderer = new FingerPrintRenderer(fingerPrintCommands, characterSet); return(fingerPrintRenderer); }
protected virtual SvgLineTranslator CreateSvgLineTranslator([NotNull] FingerPrintTransformer fingerPrintTransformer, [NotNull] FingerPrintCommands fingerPrintCommands) { if (fingerPrintTransformer == null) { throw new ArgumentNullException(nameof(fingerPrintTransformer)); } if (fingerPrintCommands == null) { throw new ArgumentNullException(nameof(fingerPrintCommands)); } var svgLineTranslator = new SvgLineTranslator(fingerPrintTransformer, fingerPrintCommands); return(svgLineTranslator); }
/// <exception cref="ArgumentNullException"><paramref name="fingerPrintCommands" /> is <see langword="null" />.</exception> public FingerPrintRenderer([NotNull] FingerPrintCommands fingerPrintCommands, CharacterSet characterSet = CharacterSet.Utf8) { this.FingerPrintCommands = fingerPrintCommands ?? throw new ArgumentNullException(nameof(fingerPrintCommands)); this.CharacterSet = characterSet; }