| 1 |
package org.kravemir.svg.labels; |
| 2 |
|
| 3 |
import org.kravemir.svg.labels.annotations.ToBePublicApi; |
| 4 |
import org.kravemir.svg.labels.model.LabelTemplateDescriptor; |
| 5 |
|
| 6 |
import java.util.Map; |
| 7 |
|
| 8 |
@ToBePublicApi |
| 9 |
public interface InstanceRenderer { |
| 10 |
|
| 11 |
/** |
| 12 |
* Renders instance as SVG from provided SVG template, template descriptor, and instance content |
| 13 |
* |
| 14 |
* @param svgTemplate template to use for rendering |
| 15 |
* @param templateDescriptor descriptor for {@code svgTemplate} input argument |
| 16 |
* @param instanceContent map containing instance values for attributes in template |
| 17 |
* @return rendered SVG |
| 18 |
*/ |
| 19 |
@ToBePublicApi |
| 20 |
String render(String svgTemplate, |
| 21 |
LabelTemplateDescriptor templateDescriptor, |
| 22 |
Map<String, String> instanceContent); |
| 23 |
} |