Interface SVGElementTranslator<E extends Element,O>
-
- Type Parameters:
E- The SVG element.O- The SVG view definition.
- All Superinterfaces:
Translator<E>
- All Known Implementing Classes:
AbstractSVGPrimitiveTranslator,AbstractSVGShapeTranslator,SVGCircleTranslator,SVGGroupTranslator,SVGImageTranslator,SVGMultiPathTranslator,SVGRectTranslator,SVGUseTranslator
public interface SVGElementTranslator<E extends Element,O> extends Translator<E>
Translates a given SVG element into the view definition type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetTagName()The name for the tag that this translator is able to process.Otranslate(E input, SVGTranslatorContext context)Process the given input and generates the SVG view definition instance for it.-
Methods inherited from interface org.kie.workbench.common.stunner.svg.gen.translator.Translator
getInputType
-
-
-
-
Method Detail
-
getTagName
String getTagName()
The name for the tag that this translator is able to process.
-
translate
O translate(E input, SVGTranslatorContext context) throws TranslatorException
Process the given input and generates the SVG view definition instance for it.- Parameters:
input- The source element.context- The translator context.- Throws:
TranslatorException
-
-