File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
svg/src/main/java/com/itextpdf/svg/renderers/factories Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,7 @@ public class DefaultSvgNodeRendererFactory implements ISvgNodeRendererFactory {
67
67
private Collection <String > ignoredTags = new HashSet <>();
68
68
69
69
/**
70
- * Default constructor which uses the default {@link ISvgNodeRendererMapper}
71
- * implementation.
70
+ * Default constructor with default {@link ISvgNodeRenderer} creation logic.
72
71
*/
73
72
public DefaultSvgNodeRendererFactory () {
74
73
this (new DefaultSvgNodeRendererMapper ());
@@ -80,7 +79,11 @@ public DefaultSvgNodeRendererFactory() {
80
79
*
81
80
* @param mapper the custom mapper implementation - if null, then we fall
82
81
* back to the {@link DefaultSvgNodeRendererMapper}
82
+ * @deprecated Will be removed in 7.2. The user should use the custom
83
+ * {@link ISvgNodeRendererFactory} implementation (or the custom
84
+ * @link DefaultSvgNodeRendererFactory} extension) to create extensions of the factory.
83
85
*/
86
+ @ Deprecated
84
87
public DefaultSvgNodeRendererFactory (ISvgNodeRendererMapper mapper ) {
85
88
if (mapper != null ) {
86
89
rendererMap .putAll (mapper .getMapping ());
Original file line number Diff line number Diff line change @@ -73,7 +73,14 @@ This file is part of the iText (R) project.
73
73
* default in the {@link DefaultSvgNodeRendererFactory}. It contains the mapping
74
74
* of the default implementations, provided by this project for the standard SVG
75
75
* tags as defined in the SVG Specification.
76
+ *
77
+ * @deprecated The public access to this class will be removed in 7.2. The class itself can become
78
+ * either package private or the inner private static class for
79
+ * the {@link DefaultSvgNodeRendererFactory}. Users should override {@link ISvgNodeRendererFactory}
80
+ * (or at least {@link DefaultSvgNodeRendererFactory}) and should not deal with the mapping class
81
+ * as it's more of an implementation detail.
76
82
*/
83
+ @ Deprecated
77
84
public class DefaultSvgNodeRendererMapper implements ISvgNodeRendererMapper {
78
85
79
86
@ Override
Original file line number Diff line number Diff line change @@ -51,7 +51,13 @@ This file is part of the iText (R) project.
51
51
* Interface that will provide a mapping from SVG tag names to Renderers that
52
52
* will be able to draw them. It's used in {@link DefaultSvgNodeRendererFactory}
53
53
* to allow customizability in client code, and dependency injection in tests.
54
+ *
55
+ * @deprecated The interface will be removed in 7.2, while its implementation
56
+ * ({@link DefaultSvgNodeRendererMapper}) will be used as our internal class. Users should
57
+ * override {@link ISvgNodeRendererFactory} (or at least {@link DefaultSvgNodeRendererFactory})
58
+ * and should not deal with the mapping class as it's more of an implementation detail.
54
59
*/
60
+ @ Deprecated
55
61
public interface ISvgNodeRendererMapper {
56
62
57
63
/**
You can’t perform that action at this time.
0 commit comments